Squid is a popular caching web proxy. There is a docker image https://hub.docker.com/r/ubuntu/squid that we can use to deploy one to a ContainerApp Environment.

How?

  1. Create a VNET environment

  2. Create an external TCP app

az containerapp create \
  --name squid-proxy \
  --resource-group $RESOURCE_GROUP \
  --environment $CONTAINERAPPS_ENVIRONMENT  \
  --image docker.io/ubuntu/squid:5.2-22.04_beta \
  --transport tcp \
  --target-port 3128 \
  --exposed-port 3128 \
  --ingress external \
  --query properties.configuration.ingress.fqdn

squid-proxy.mellowmushroom-424ed5ab.westeu.azurecontainerapps.io
  1. Use the proxy to make a request
curl --proxy squid-proxy.mellowmushroom-424ed5ab.westeu.azurecontainerapps.io:3128 https://ifconfig.io