az containerapp
Manage Azure Container Apps.
Commands
| az containerapp auth |
Manage containerapp authentication and authorization. |
| az containerapp auth apple |
Manage containerapp authentication and authorization of the Apple identity provider. |
| az containerapp auth apple show |
Show the authentication settings for the Apple identity provider. |
| az containerapp auth apple update |
Update the client id and client secret for the Apple identity provider. |
| az containerapp auth facebook |
Manage containerapp authentication and authorization of the Facebook identity provider. |
| az containerapp auth facebook show |
Show the authentication settings for the Facebook identity provider. |
| az containerapp auth facebook update |
Update the app id and app secret for the Facebook identity provider. |
| az containerapp auth github |
Manage containerapp authentication and authorization of the GitHub identity provider. |
| az containerapp auth github show |
Show the authentication settings for the GitHub identity provider. |
| az containerapp auth github update |
Update the client id and client secret for the GitHub identity provider. |
| az containerapp auth google |
Manage containerapp authentication and authorization of the Google identity provider. |
| az containerapp auth google show |
Show the authentication settings for the Google identity provider. |
| az containerapp auth google update |
Update the client id and client secret for the Google identity provider. |
| az containerapp auth microsoft |
Manage containerapp authentication and authorization of the Microsoft identity provider. |
| az containerapp auth microsoft show |
Show the authentication settings for the Azure Active Directory identity provider. |
| az containerapp auth microsoft update |
Update the client id and client secret for the Azure Active Directory identity provider. |
| az containerapp auth openid-connect |
Manage containerapp authentication and authorization of the custom OpenID Connect identity providers. |
| az containerapp auth openid-connect add |
Configure a new custom OpenID Connect identity provider. |
| az containerapp auth openid-connect remove |
Removes an existing custom OpenID Connect identity provider. |
| az containerapp auth openid-connect show |
Show the authentication settings for the custom OpenID Connect identity provider. |
| az containerapp auth openid-connect update |
Update the client id and client secret setting name for an existing custom OpenID Connect identity provider. |
| az containerapp auth show |
Show the authentication settings for the containerapp. |
| az containerapp auth twitter |
Manage containerapp authentication and authorization of the Twitter identity provider. |
| az containerapp auth twitter show |
Show the authentication settings for the Twitter identity provider. |
| az containerapp auth twitter update |
Update the consumer key and consumer secret for the Twitter identity provider. |
| az containerapp auth update |
Update the authentication settings for the containerapp. |
| az containerapp browse |
Open a containerapp in the browser, if possible. |
| az containerapp compose |
Commands to create Azure Container Apps from Compose specifications. |
| az containerapp compose create |
Create one or more Container Apps in a new or existing Container App Environment from a Compose specification. |
| az containerapp connection |
Commands to manage containerapp connections. |
| az containerapp connection create |
Create a connection between a containerapp and a target resource. |
| az containerapp connection create appconfig |
Create a containerapp connection to appconfig. |
| az containerapp connection create confluent-cloud |
Create a containerapp connection to confluent-cloud. |
| az containerapp connection create cosmos-cassandra |
Create a containerapp connection to cosmos-cassandra. |
| az containerapp connection create cosmos-gremlin |
Create a containerapp connection to cosmos-gremlin. |
| az containerapp connection create cosmos-mongo |
Create a containerapp connection to cosmos-mongo. |
| az containerapp connection create cosmos-sql |
Create a containerapp connection to cosmos-sql. |
| az containerapp connection create cosmos-table |
Create a containerapp connection to cosmos-table. |
| az containerapp connection create eventhub |
Create a containerapp connection to eventhub. |
| az containerapp connection create keyvault |
Create a containerapp connection to keyvault. |
| az containerapp connection create mysql |
Create a containerapp connection to mysql. |
| az containerapp connection create mysql-flexible |
Create a containerapp connection to mysql-flexible. |
| az containerapp connection create postgres |
Create a containerapp connection to postgres. |
| az containerapp connection create postgres-flexible |
Create a containerapp connection to postgres-flexible. |
| az containerapp connection create redis |
Create a containerapp connection to redis. |
| az containerapp connection create redis-enterprise |
Create a containerapp connection to redis-enterprise. |
| az containerapp connection create servicebus |
Create a containerapp connection to servicebus. |
| az containerapp connection create signalr |
Create a containerapp connection to signalr. |
| az containerapp connection create sql |
Create a containerapp connection to sql. |
| az containerapp connection create storage-blob |
Create a containerapp connection to storage-blob. |
| az containerapp connection create storage-file |
Create a containerapp connection to storage-file. |
| az containerapp connection create storage-queue |
Create a containerapp connection to storage-queue. |
| az containerapp connection create storage-table |
Create a containerapp connection to storage-table. |
| az containerapp connection create webpubsub |
Create a containerapp connection to webpubsub. |
| az containerapp connection delete |
Delete a containerapp connection. |
| az containerapp connection list |
List connections of a containerapp. |
| az containerapp connection list-configuration |
List source configurations of a containerapp connection. |
| az containerapp connection list-support-types |
List client types and auth types supported by containerapp connections. |
| az containerapp connection show |
Get the details of a containerapp connection. |
| az containerapp connection update |
Update a containerapp connection. |
| az containerapp connection update appconfig |
Update a containerapp to appconfig connection. |
| az containerapp connection update confluent-cloud |
Update a containerapp to confluent-cloud connection. |
| az containerapp connection update cosmos-cassandra |
Update a containerapp to cosmos-cassandra connection. |
| az containerapp connection update cosmos-gremlin |
Update a containerapp to cosmos-gremlin connection. |
| az containerapp connection update cosmos-mongo |
Update a containerapp to cosmos-mongo connection. |
| az containerapp connection update cosmos-sql |
Update a containerapp to cosmos-sql connection. |
| az containerapp connection update cosmos-table |
Update a containerapp to cosmos-table connection. |
| az containerapp connection update eventhub |
Update a containerapp to eventhub connection. |
| az containerapp connection update keyvault |
Update a containerapp to keyvault connection. |
| az containerapp connection update mysql |
Update a containerapp to mysql connection. |
| az containerapp connection update mysql-flexible |
Update a containerapp to mysql-flexible connection. |
| az containerapp connection update postgres |
Update a containerapp to postgres connection. |
| az containerapp connection update postgres-flexible |
Update a containerapp to postgres-flexible connection. |
| az containerapp connection update redis |
Update a containerapp to redis connection. |
| az containerapp connection update redis-enterprise |
Update a containerapp to redis-enterprise connection. |
| az containerapp connection update servicebus |
Update a containerapp to servicebus connection. |
| az containerapp connection update signalr |
Update a containerapp to signalr connection. |
| az containerapp connection update sql |
Update a containerapp to sql connection. |
| az containerapp connection update storage-blob |
Update a containerapp to storage-blob connection. |
| az containerapp connection update storage-file |
Update a containerapp to storage-file connection. |
| az containerapp connection update storage-queue |
Update a containerapp to storage-queue connection. |
| az containerapp connection update storage-table |
Update a containerapp to storage-table connection. |
| az containerapp connection update webpubsub |
Update a containerapp to webpubsub connection. |
| az containerapp connection validate |
Validate a containerapp connection. |
| az containerapp connection wait |
Place the CLI in a waiting state until a condition of the connection is met. |
| az containerapp create |
Create a container app. |
| az containerapp dapr |
Commands to manage Dapr. To manage Dapr components, see |
| az containerapp dapr disable |
Disable Dapr for a container app. Removes existing values. |
| az containerapp dapr enable |
Enable Dapr for a container app. Updates existing values. |
| az containerapp delete |
Delete a container app. |
| az containerapp env |
Commands to manage Container Apps environments. |
| az containerapp env certificate |
Commands to manage certificates for the Container Apps environment. |
| az containerapp env certificate create |
Create a managed certificate. |
| az containerapp env certificate delete |
Delete a certificate from the Container Apps environment. |
| az containerapp env certificate list |
List certificates for an environment. |
| az containerapp env certificate upload |
Add or update a certificate. |
| az containerapp env create |
Create a Container Apps environment. |
| az containerapp env dapr-component |
Commands to manage Dapr components for the Container Apps environment. |
| az containerapp env dapr-component list |
List Dapr components for an environment. |
| az containerapp env dapr-component remove |
Remove a Dapr component from an environment. |
| az containerapp env dapr-component set |
Create or update a Dapr component. |
| az containerapp env dapr-component show |
Show the details of a Dapr component. |
| az containerapp env delete |
Delete a Container Apps environment. |
| az containerapp env list |
List Container Apps environments by subscription or resource group. |
| az containerapp env logs |
Show container app environment logs. |
| az containerapp env logs show |
Show past environment logs and/or print logs in real time (with the --follow parameter). |
| az containerapp env show |
Show details of a Container Apps environment. |
| az containerapp env storage |
Commands to manage storage for the Container Apps environment. |
| az containerapp env storage list |
List the storages for an environment. |
| az containerapp env storage remove |
Remove a storage from an environment. |
| az containerapp env storage set |
Create or update a storage. |
| az containerapp env storage show |
Show the details of a storage. |
| az containerapp env update |
Update a Container Apps environment. |
| az containerapp env workload-profile |
Manage the workload profiles of a Container Apps environment. |
| az containerapp env workload-profile delete |
Delete a workload profile from a Container Apps environment. |
| az containerapp env workload-profile list |
List the workload profiles from a Container Apps environment. |
| az containerapp env workload-profile list-supported |
List the supported workload profiles in a region. |
| az containerapp env workload-profile set |
Create or update an existing workload profile in a Container Apps environment. |
| az containerapp env workload-profile show |
Show a workload profile from a Container Apps environment. |
| az containerapp exec |
Open an SSH-like interactive shell within a container app replica. |
| az containerapp github-action |
Commands to manage GitHub Actions. |
| az containerapp github-action add |
Add a GitHub Actions workflow to a repository to deploy a container app. |
| az containerapp github-action delete |
Remove a previously configured Container Apps GitHub Actions workflow from a repository. |
| az containerapp github-action show |
Show the GitHub Actions configuration on a container app. |
| az containerapp hostname |
Commands to manage hostnames of a container app. |
| az containerapp hostname add |
Add the hostname to a container app without binding. |
| az containerapp hostname bind |
Add or update the hostname and binding with a certificate. |
| az containerapp hostname delete |
Delete hostnames from a container app. |
| az containerapp hostname list |
List the hostnames of a container app. |
| az containerapp identity |
Commands to manage managed identities. |
| az containerapp identity assign |
Assign managed identity to a container app. |
| az containerapp identity remove |
Remove a managed identity from a container app. |
| az containerapp identity show |
Show managed identities of a container app. |
| az containerapp ingress |
Commands to manage ingress and traffic-splitting. |
| az containerapp ingress access-restriction |
Commands to manage IP access restrictions. |
| az containerapp ingress access-restriction list |
List IP access restrictions for a container app. |
| az containerapp ingress access-restriction remove |
Remove IP access restrictions from a container app. |
| az containerapp ingress access-restriction set |
Configure IP access restrictions for a container app. |
| az containerapp ingress disable |
Disable ingress for a container app. |
| az containerapp ingress enable |
Enable or update ingress for a container app. |
| az containerapp ingress show |
Show details of a container app's ingress. |
| az containerapp ingress sticky-sessions |
Commands to set Sticky session affinity for a container app. |
| az containerapp ingress sticky-sessions set |
Configure Sticky session for a container app. |
| az containerapp ingress sticky-sessions show |
Show the Affinity for a container app. |
| az containerapp ingress traffic |
Commands to manage traffic-splitting. |
| az containerapp ingress traffic set |
Configure traffic-splitting for a container app. |
| az containerapp ingress traffic show |
Show traffic-splitting configuration for a container app. |
| az containerapp ingress update |
Update ingress for a container app. |
| az containerapp list |
List container apps. |
| az containerapp logs |
Show container app logs. |
| az containerapp logs show |
Show past logs and/or print logs in real time (with the --follow parameter). Note that the logs are only taken from one revision, replica, and container (for non-system logs). |
| az containerapp registry |
Commands to manage container registry information. |
| az containerapp registry list |
List container registries configured in a container app. |
| az containerapp registry remove |
Remove a container registry's details. |
| az containerapp registry set |
Add or update a container registry's details. |
| az containerapp registry show |
Show details of a container registry. |
| az containerapp replica |
Manage container app replicas. |
| az containerapp replica list |
List a container app revision's replica. |
| az containerapp replica show |
Show a container app replica. |
| az containerapp revision |
Commands to manage revisions. |
| az containerapp revision activate |
Activate a revision. |
| az containerapp revision copy |
Create a revision based on a previous revision. |
| az containerapp revision deactivate |
Deactivate a revision. |
| az containerapp revision label |
Manage revision labels assigned to traffic weights. |
| az containerapp revision label add |
Set a revision label to a revision with an associated traffic weight. |
| az containerapp revision label remove |
Remove a revision label from a revision with an associated traffic weight. |
| az containerapp revision label swap |
Swap a revision label between two revisions with associated traffic weights. |
| az containerapp revision list |
List a container app's revisions. |
| az containerapp revision restart |
Restart a revision. |
| az containerapp revision set-mode |
Set the revision mode of a container app. |
| az containerapp revision show |
Show details of a revision. |
| az containerapp secret |
Commands to manage secrets. |
| az containerapp secret list |
List the secrets of a container app. |
| az containerapp secret remove |
Remove secrets from a container app. |
| az containerapp secret set |
Create/update secrets. |
| az containerapp secret show |
Show details of a secret. |
| az containerapp show |
Show details of a container app. |
| az containerapp ssl |
Upload certificate to a managed environment, add hostname to an app in that environment, and bind the certificate to the hostname. |
| az containerapp ssl upload |
Upload certificate to a managed environment, add hostname to an app in that environment, and bind the certificate to the hostname. |
| az containerapp up |
Create or update a container app as well as any associated resources (ACR, resource group, container apps environment, GitHub Actions, etc.). |
| az containerapp update |
Update a container app. In multiple revisions mode, create a new revision based on the latest revision. |
az containerapp browse
Open a containerapp in the browser, if possible.
az containerapp browse [--ids]
[--name]
[--resource-group]
[--subscription]
Examples
open a containerapp in the browser
az containerapp browse -n MyContainerapp -g MyResourceGroup
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az containerapp create
Create a container app.
az containerapp create --name
--resource-group
[--args]
[--command]
[--container-name]
[--cpu]
[--dal]
[--dapr-app-id]
[--dapr-app-port]
[--dapr-app-protocol {grpc, http}]
[--dapr-http-max-request-size]
[--dapr-http-read-buffer-size]
[--dapr-log-level {debug, error, info, warn}]
[--enable-dapr {false, true}]
[--env-vars]
[--environment]
[--exposed-port]
[--image]
[--ingress {external, internal}]
[--max-replicas]
[--memory]
[--min-replicas]
[--no-wait]
[--registry-identity]
[--registry-password]
[--registry-server]
[--registry-username]
[--revision-suffix]
[--revisions-mode {multiple, single}]
[--scale-rule-auth]
[--scale-rule-http-concurrency]
[--scale-rule-metadata]
[--scale-rule-name]
[--scale-rule-type]
[--secret-volume-mount]
[--secrets]
[--system-assigned]
[--tags]
[--target-port]
[--transport {auto, http, http2, tcp}]
[--user-assigned]
[--workload-profile-name]
[--yaml]
Examples
Create a container app and retrieve its fully qualified domain name.
az containerapp create -n MyContainerapp -g MyResourceGroup \
--image myregistry.azurecr.io/my-app:v1.0 --environment MyContainerappEnv \
--ingress external --target-port 80 \
--registry-server myregistry.azurecr.io --registry-username myregistry --registry-password $REGISTRY_PASSWORD \
--query properties.configuration.ingress.fqdn
Create a container app with resource requirements and replica count limits.
az containerapp create -n MyContainerapp -g MyResourceGroup \
--image nginx --environment MyContainerappEnv \
--cpu 0.5 --memory 1.0Gi \
--min-replicas 4 --max-replicas 8
Create a container app with secrets and environment variables.
az containerapp create -n MyContainerapp -g MyResourceGroup \
--image my-app:v1.0 --environment MyContainerappEnv \
--secrets mysecret=secretvalue1 anothersecret="secret value 2" \
--env-vars GREETING="Hello, world" SECRETENV=secretref:anothersecret
Create a container app using a YAML configuration. Example YAML configuration - https://aka.ms/azure-container-apps-yaml
az containerapp create -n MyContainerapp -g MyResourceGroup \
--environment MyContainerappEnv \
--yaml "path/to/yaml/file.yml"
Create a container app with an http scale rule
az containerapp create -n myapp -g mygroup --environment myenv --image nginx \
--scale-rule-name my-http-rule \
--scale-rule-http-concurrency 50
Create a container app with a custom scale rule
az containerapp create -n MyContainerapp -g MyResourceGroup \
--image my-queue-processor --environment MyContainerappEnv \
--min-replicas 4 --max-replicas 8 \
--scale-rule-name queue-based-autoscaling \
--scale-rule-type azure-queue \
--scale-rule-metadata "accountName=mystorageaccountname" \
"cloud=AzurePublicCloud" \
"queueLength": "5" "queueName": "foo" \
--scale-rule-auth "connection=my-connection-string-secret-name"
Create a container app with secrets and mounts them in a volume.
az containerapp create -n MyContainerapp -g MyResourceGroup \
--image my-app:v1.0 --environment MyContainerappEnv \
--secrets mysecret=secretvalue1 anothersecret="secret value 2" \
--secret-volume-mount "mnt/secrets"
Required Parameters
The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
A list of container startup command argument(s). Space-separated values e.g. "-c" "mycommand". Empty string to clear existing values.
A list of supported commands on the container that will executed during startup. Space-separated values e.g. "/bin/queue" "mycommand". Empty string to clear existing values.
Name of the container.
Required CPU in cores from 0.25 - 2.0, e.g. 0.5.
Enable API logging for the Dapr sidecar.
The Dapr application identifier.
The port Dapr uses to talk to the application.
The protocol Dapr uses to talk to the application.
Increase max size of request body http and grpc servers parameter in MB to handle uploading of big files.
Dapr max size of http header read buffer in KB to handle when sending multi-KB headers..
Set the log level for the Dapr sidecar.
Boolean indicating if the Dapr side car is enabled.
A list of environment variable(s) for the container. Space-separated values in 'key=value' format. Empty string to clear existing values. Prefix value with 'secretref:' to reference a secret.
Name or resource ID of the container app's environment.
Additional exposed port. Only supported by tcp transport protocol. Must be unique per environment if the app ingress is external.
Container image, e.g. publisher/image-name:tag.
The ingress type.
The maximum number of replicas.
Required memory from 0.5 - 4.0 ending with "Gi", e.g. 1.0Gi.
The minimum number of replicas.
Do not wait for the long-running operation to finish.
A Managed Identity to authenticate with the registry server instead of username/password. Use a resource ID or 'system' for user-defined and system-defined identities, respectively. The registry must be an ACR. If possible, an 'acrpull' role assignemnt will be created for the identity automatically.
The password to log in to container registry. If stored as a secret, value must start with 'secretref:' followed by the secret name.
The container registry server hostname, e.g. myregistry.azurecr.io.
The username to log in to container registry.
User friendly suffix that is appended to the revision name.
The active revisions mode for the container app.
Scale rule auth parameters. Auth parameters must be in format "= = ...".
The maximum number of concurrent requests before scale out. Only supported for http and tcp scale rules.
Scale rule metadata. Metadata must be in format "= = ...".
The name of the scale rule.
The type of the scale rule. Default: http. For more information please visit https://learn.microsoft.com/azure/container-apps/scale-app#scale-triggers.
Path to mount all secrets e.g. mnt/secrets.
A list of secret(s) for the container app. Space-separated values in 'key=value' format.
Boolean indicating whether to assign system-assigned identity.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
The application port used for ingress traffic.
The transport protocol used for ingress traffic.
Space-separated user identities to be assigned.
Name of the workload profile to run the app on.
Path to a .yaml file with the configuration of a container app. All other parameters will be ignored. For an example, see https://docs.microsoft.com/azure/container-apps/azure-resource-manager-api-spec#examples.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az containerapp delete
Delete a container app.
az containerapp delete [--ids]
[--name]
[--no-wait]
[--resource-group]
[--subscription]
[--yes]
Examples
Delete a container app.
az containerapp delete -g MyResourceGroup -n MyContainerapp
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Do not prompt for confirmation.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az containerapp exec
Open an SSH-like interactive shell within a container app replica.
az containerapp exec --name
--resource-group
[--command]
[--container]
[--replica]
[--revision]
Examples
exec into a container app
az containerapp exec -n MyContainerapp -g MyResourceGroup
exec into a particular container app replica and revision
az containerapp exec -n MyContainerapp -g MyResourceGroup --replica MyReplica --revision MyRevision
open a bash shell in a containerapp
az containerapp exec -n MyContainerapp -g MyResourceGroup --command bash
Required Parameters
The name of the Containerapp.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The startup command (bash, zsh, sh, etc.).
The name of the container to ssh into.
The name of the replica to ssh into. List replicas with 'az containerapp replica list'. A replica may not exist if there is not traffic to your app.
The name of the container app revision to ssh into. Defaults to the latest revision.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az containerapp list
List container apps.
az containerapp list [--environment]
[--resource-group]
Examples
List container apps in the current subscription.
az containerapp list
List container apps by resource group.
az containerapp list -g MyResourceGroup
Optional Parameters
Name or resource ID of the container app's environment.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az containerapp show
Show details of a container app.
az containerapp show [--ids]
[--name]
[--resource-group]
[--show-secrets]
[--subscription]
Examples
Show the details of a container app.
az containerapp show -n MyContainerapp -g MyResourceGroup
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Show Containerapp secrets.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az containerapp up
Create or update a container app as well as any associated resources (ACR, resource group, container apps environment, GitHub Actions, etc.).
az containerapp up --name
[--branch]
[--browse]
[--context-path]
[--env-vars]
[--environment]
[--image]
[--ingress {external, internal}]
[--location]
[--logs-workspace-id]
[--logs-workspace-key]
[--registry-password]
[--registry-server]
[--registry-username]
[--repo]
[--resource-group]
[--service-principal-client-id]
[--service-principal-client-secret]
[--service-principal-tenant-id]
[--source]
[--target-port]
[--token]
[--workload-profile-name]
Examples
Create a container app from a dockerfile in a GitHub repo (setting up github actions)
az containerapp up -n MyContainerapp --repo https://github.com/myAccount/myRepo
Create a container app from a dockerfile in a local directory (or autogenerate a container if no dockerfile is found)
az containerapp up -n MyContainerapp --source .
Create a container app from an image in a registry
az containerapp up -n MyContainerapp --image myregistry.azurecr.io/myImage:myTag
Create a container app from an image in a registry with ingress enabled and a specified environment
az containerapp up -n MyContainerapp --image myregistry.azurecr.io/myImage:myTag --ingress external --target-port 80 --environment MyEnv
Required Parameters
The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
Optional Parameters
The branch of the Github repo. Assumed to be the Github repo's default branch if not specified.
Open the app in a web browser after creation and deployment, if possible.
Path in the repo from which to run the docker build. Defaults to "./". Dockerfile is assumed to be named "Dockerfile" and in this directory.
A list of environment variable(s) for the container. Space-separated values in 'key=value' format. Empty string to clear existing values. Prefix value with 'secretref:' to reference a secret.
Name or resource ID of the container app's environment.
Container image, e.g. publisher/image-name:tag.
The ingress type.
Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.
Workspace ID of the Log Analytics workspace to send diagnostics logs to. You can use "az monitor log-analytics workspace create" to create one. Extra billing may apply.
Log Analytics workspace key to configure your Log Analytics workspace. You can use "az monitor log-analytics workspace get-shared-keys" to retrieve the key.
The password to log in to container registry. If stored as a secret, value must start with 'secretref:' followed by the secret name.
The container registry server hostname, e.g. myregistry.azurecr.io.
The username to log in to container registry.
Create an app via Github Actions. In the format: https://github.com// or /.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
The service principal client ID. Used by Github Actions to authenticate with Azure.
The service principal client secret. Used by Github Actions to authenticate with Azure.
The service principal tenant ID. Used by Github Actions to authenticate with Azure.
Local directory path containing the application source and Dockerfile for building the container image. Preview: If no Dockerfile is present, a container image is generated using Oryx. See the supported Oryx runtimes here: https://github.com/microsoft/Oryx/blob/main/doc/supportedRuntimeVersions.md.
The application port used for ingress traffic.
A Personal Access Token with write access to the specified repository. For more information: https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line. If not provided or not found in the cache (and using --repo), a browser page will be opened to authenticate with Github.
The friendly name for the workload profile.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az containerapp update
Update a container app. In multiple revisions mode, create a new revision based on the latest revision.
az containerapp update [--args]
[--command]
[--container-name]
[--cpu]
[--ids]
[--image]
[--max-replicas]
[--memory]
[--min-replicas]
[--name]
[--no-wait]
[--remove-all-env-vars]
[--remove-env-vars]
[--replace-env-vars]
[--resource-group]
[--revision-suffix]
[--scale-rule-auth]
[--scale-rule-http-concurrency]
[--scale-rule-metadata]
[--scale-rule-name]
[--scale-rule-type]
[--secret-volume-mount]
[--set-env-vars]
[--subscription]
[--tags]
[--workload-profile-name]
[--yaml]
Examples
Update a container app's container image.
az containerapp update -n MyContainerapp -g MyResourceGroup \
--image myregistry.azurecr.io/my-app:v2.0
Update a container app's resource requirements and scale limits.
az containerapp update -n MyContainerapp -g MyResourceGroup \
--cpu 0.5 --memory 1.0Gi \
--min-replicas 4 --max-replicas 8
Update a container app with an http scale rule
az containerapp update -n myapp -g mygroup \
--scale-rule-name my-http-rule \
--scale-rule-http-concurrency 50
Update a container app with a custom scale rule
az containerapp update -n myapp -g mygroup \
--scale-rule-name my-custom-rule \
--scale-rule-type my-custom-type \
--scale-rule-metadata key=value key2=value2 \
--scale-rule-auth triggerparam=secretref triggerparam=secretref
Optional Parameters
A list of container startup command argument(s). Space-separated values e.g. "-c" "mycommand". Empty string to clear existing values.
A list of supported commands on the container that will executed during startup. Space-separated values e.g. "/bin/queue" "mycommand". Empty string to clear existing values.
Name of the container.
Required CPU in cores from 0.25 - 2.0, e.g. 0.5.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Container image, e.g. publisher/image-name:tag.
The maximum number of replicas.
Required memory from 0.5 - 4.0 ending with "Gi", e.g. 1.0Gi.
The minimum number of replicas.
The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
Do not wait for the long-running operation to finish.
Remove all environment variable(s) from container..
Remove environment variable(s) from container. Space-separated environment variable names.
Replace environment variable(s) in container. Other existing environment variables are removed. Space-separated values in 'key=value' format. If stored as a secret, value must start with 'secretref:' followed by the secret name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
User friendly suffix that is appended to the revision name.
Scale rule auth parameters. Auth parameters must be in format "= = ...".
The maximum number of concurrent requests before scale out. Only supported for http and tcp scale rules.
Scale rule metadata. Metadata must be in format "= = ...".
The name of the scale rule.
The type of the scale rule. Default: http. For more information please visit https://learn.microsoft.com/azure/container-apps/scale-app#scale-triggers.
Path to mount all secrets e.g. mnt/secrets.
Add or update environment variable(s) in container. Existing environmentenvironment variables are not modified. Space-separated values in 'key=value' format. If stored as a secret, value must start with 'secretref:' followed by the secret name.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
The friendly name for the workload profile.
Path to a .yaml file with the configuration of a container app. All other parameters will be ignored. For an example, see https://docs.microsoft.com/azure/container-apps/azure-resource-manager-api-spec#examples.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
Feedback
Submit and view feedback for