az containerapp update: Roll Out Container Apps in CI
Update an Azure Container App, typically rolling to a new container image.
az containerapp update changes a Container App, most often to deploy a new image, which creates a new revision. In CI you push an image to ACR, then update the app to that tag. Flags also let you adjust env vars and scaling.
Common flags
-n NAMEand-g RESOURCE_GROUP- target app--image IMAGE- new container image--set-env-vars KEY=VALUE- set or update env vars--revision-suffix SUFFIX- label the new revision
Example in CI
Roll the app to a freshly pushed image tag.
shell
az containerapp update \
-n my-app -g my-rg \
--image myregistry.azurecr.io/app:${GITHUB_SHA}Common errors in CI
- ContainerAppOperationError: ... failed provisioning state - new revision crashed on startup
- ERROR: ... was not found - wrong app name or resource group
- UNAUTHORIZED: ... registry - Container App cannot pull the image (registry credentials/managed identity)
Key takeaways
- Updates a Container App and creates a new revision, commonly for a new image.
- Ensure the app can pull from ACR (registry creds or managed identity).
- A failed revision usually means the container crashed on startup.
Related guides
az acr login: Authenticate to ACR in CILog Docker into Azure Container Registry from CI: flags, a push example, and the registry authentication erro…
az webapp deploy: Deploy App Service in CIDeploy a zip or artifact to Azure App Service from CI: source and type flags, an example, and the deploy erro…
az aks get-credentials: AKS kubeconfig in CIFetch AKS cluster credentials into kubeconfig from CI: the key flags, a pipeline example, and the auth and ac…