az spring app
Note
This reference is part of the spring extension for the Azure CLI (version 2.56.0 or higher). The extension will automatically install the first time you run an az spring app command. Learn more about extensions.
Commands to manage apps in Azure Spring Apps.
Commands
Name | Description | Type | Status |
---|---|---|---|
az spring app append-loaded-public-certificate |
Append a new loaded public certificate to an app in the Azure Spring Apps. |
Extension | GA |
az spring app append-persistent-storage |
Append a new persistent storage to an app in the Azure Spring Apps. |
Extension | GA |
az spring app connect |
Connect to the interactive shell of an app instance for troubleshooting'. |
Extension | GA |
az spring app create |
Create a new app with a default deployment in the Azure Spring Apps instance. |
Extension | GA |
az spring app custom-domain |
Commands to manage custom domains. |
Extension | GA |
az spring app custom-domain bind |
Bind a custom domain with the app. |
Extension | GA |
az spring app custom-domain list |
List all custom domains of the app. |
Extension | GA |
az spring app custom-domain show |
Show details of a custom domain. |
Extension | GA |
az spring app custom-domain unbind |
Unbind a custom-domain of the app. |
Extension | GA |
az spring app custom-domain update |
Update a custom domain of the app. |
Extension | GA |
az spring app delete |
Delete an app in the Azure Spring Apps. |
Extension | GA |
az spring app deploy |
Deploy source code or pre-built binary to an app and update related configurations. |
Extension | GA |
az spring app deployment |
Commands to manage life cycle of deployments of an app in Azure Spring Apps. More operations on deployments can be done on app level with parameter --deployment. e.g. |
Extension | GA |
az spring app deployment create |
Create a staging deployment for the app. To deploy code or update setting to an existing deployment, use |
Extension | GA |
az spring app deployment delete |
Delete a deployment of the app. |
Extension | GA |
az spring app deployment generate-heap-dump |
Generate a heap dump of your target app instance to given file path. |
Extension | GA |
az spring app deployment generate-thread-dump |
Generate a thread dump of your target app instance to given file path. |
Extension | GA |
az spring app deployment list |
List all deployments in an app. |
Extension | GA |
az spring app deployment show |
Show details of a deployment. |
Extension | GA |
az spring app deployment start-jfr |
Start a JFR on your target app instance to given file path. |
Extension | GA |
az spring app disable-remote-debugging |
Disable remote debugging for a deployment. |
Extension | GA |
az spring app enable-remote-debugging |
Enable remote debugging for a deployment. |
Extension | GA |
az spring app get-remote-debugging-config |
Get the remote debugging configuration of a deployment. |
Extension | GA |
az spring app identity |
Manage an app's managed identities. |
Extension | GA |
az spring app identity assign |
Enable system-assigned managed identity or assign user-assigned managed identities to an app. |
Extension | GA |
az spring app identity force-set |
Force set managed identities on an app. |
Extension | GA |
az spring app identity remove |
Remove managed identity from an app. |
Extension | GA |
az spring app identity show |
Display app's managed identity info. |
Extension | GA |
az spring app list |
List all apps in the Azure Spring Apps. |
Extension | GA |
az spring app logs |
Show logs of an app instance, logs will be streamed when setting '-f/--follow'. |
Extension | GA |
az spring app restart |
Restart instances of the app, default to production deployment. |
Extension | GA |
az spring app scale |
Manually scale an app or its deployments. |
Extension | GA |
az spring app set-deployment |
Set production deployment of an app. |
Extension | GA |
az spring app show |
Show the details of an app in the Azure Spring Apps. |
Extension | GA |
az spring app show-deploy-log |
Show build log of the last deploy, only apply to source code deploy, default to production deployment. |
Extension | GA |
az spring app start |
Start instances of the app, default to production deployment. |
Extension | GA |
az spring app stop |
Stop instances of the app, default to production deployment. |
Extension | GA |
az spring app unset-deployment |
Unset production deployment of an app. |
Extension | GA |
az spring app update |
Update configurations of an app. |
Extension | GA |
az spring app append-loaded-public-certificate
Append a new loaded public certificate to an app in the Azure Spring Apps.
az spring app append-loaded-public-certificate --certificate-name
--load-trust-store {false, true}
--name
--resource-group
--service
Examples
Append a new loaded public certificate to an app.
az spring app append-loaded-public-certificate --name MyApp --service MyCluster --resource-group MyResourceGroup --certificate-name MyCertName --load-trust-store true
Required Parameters
Name of the certificate to be appended.
If true, the certificate would be loaded into trust store for Java applications.
Property | Value |
---|---|
Default value: | False |
Accepted values: | false, true |
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app append-persistent-storage
Append a new persistent storage to an app in the Azure Spring Apps.
az spring app append-persistent-storage --mount-path
--name
--persistent-storage-type
--resource-group
--service
--storage-name
[--enable-sub-path {false, true}]
[--mount-options]
[--read-only {false, true}]
[--share-name]
Examples
Append a new persistent storage to an app.
az spring app append-persistent-storage --persistent-storage-type AzureFileVolume --share-name MyShareName --mount-path /MyMountPath --storage-name MyStorageName -n MyApp -g MyResourceGroup -s MyService
Required Parameters
The path for the persistent storage volume to be mounted.
The name of app running in the specified Azure Spring Apps instance.
Type of the persistent storage volumed.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Name of the storage resource you created in Azure Spring Apps.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
[optional] If true, will mount in separate subdirectories with the same path for each app instance .
Property | Value |
---|---|
Default value: | False |
Accepted values: | false, true |
[optional] The mount options for the persistent storage volume.
[optional] If true, the persistent storage volume will be read only.
Property | Value |
---|---|
Default value: | False |
Accepted values: | false, true |
The name of the pre-created file share. ShareName should be provided only if the type of the persistent storage volume is AzureFileVolume.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app connect
Connect to the interactive shell of an app instance for troubleshooting'.
az spring app connect --name
--resource-group
--service
[--deployment]
[--instance]
[--shell-cmd]
Required Parameters
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of an existing deployment of the app. Default to the production deployment if not specified.
Name of an existing instance of the deployment.
The shell command to run when connect to the app instance.
Property | Value |
---|---|
Default value: | /bin/sh |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app create
Create a new app with a default deployment in the Azure Spring Apps instance.
az spring app create --name
--resource-group
--service
[--assign-endpoint {false, true}]
[--assign-public-endpoint {false, true}]
[--backend-protocol {Default, GRPC}]
[--bind-acs --bind-application-configuration-service]
[--bind-config-server --bind-cs]
[--bind-service-registry --bind-sr]
[--client-auth-certs]
[--cpu]
[--deployment-name]
[--disable-probe {false, true}]
[--disable-tea --disable-test-endpoint-auth {false, true}]
[--enable-liveness-probe {false, true}]
[--enable-persistent-storage --enable-ps {false, true}]
[--enable-readiness-probe {false, true}]
[--enable-startup-probe {false, true}]
[--env]
[--grace-period --termination-grace-period-seconds]
[--ingress-read-timeout]
[--ingress-send-timeout]
[--instance-count]
[--jvm-options]
[--liveness-probe-config]
[--loaded-public-certificate-file]
[--max-replicas]
[--memory]
[--min-replicas]
[--persistent-storage]
[--readiness-probe-config]
[--runtime-version {Java_11, Java_17, Java_21, Java_8, NetCore_31}]
[--scale-rule-auth --sra]
[--scale-rule-http-concurrency --scale-rule-tcp-concurrency --srhc --srtc]
[--scale-rule-metadata --srm]
[--scale-rule-name --srn]
[--scale-rule-type --srt]
[--secrets]
[--session-affinity {Cookie, None}]
[--session-max-age]
[--startup-probe-config]
[--system-assigned {false, true}]
[--user-assigned]
[--workload-profile]
Examples
Create an app with the default configuration.
az spring app create -n MyApp -s MyCluster -g MyResourceGroup
Create an public accessible app with 3 instances and 2 cpu cores and 3 GB of memory per instance.
az spring app create -n MyApp -s MyCluster -g MyResourceGroup --assign-endpoint true --cpu 2 --memory 3 --instance-count 3
Create an app binding to the default Service Registry, Application Configuration Service and Spring Cloud Config Server.
az spring app create -n MyApp -s MyCluster -g MyResourceGroup --bind-service-registry --bind-application-configuration-service --bind-config-server
Required Parameters
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
If true, assign endpoint URL for direct access.
Property | Value |
---|---|
Default value: | False |
Accepted values: | false, true |
If true, assign endpoint URL which could be accessed out of virtual network for vnet injection instance app.
Property | Value |
---|---|
Accepted values: | false, true |
Ingress backend protocol of app. Default means HTTP/HTTPS/WebSocket.
Property | Value |
---|---|
Accepted values: | Default, GRPC |
Bind the app to the default Application Configuration Service automatically.
Bind the app to the default Config Server automatically.
Bind the app to the default Service Registry automatically.
A space-separated string containing resource ids of certificates for client authentication. e.g: --client_auth_certs='id0 id1'. Use '' to clear existing certificates.
CPU resource quantity. Should be 250m, 500m, 750m, 1250m or number of CPU cores.
Name of the default deployment.
Property | Value |
---|---|
Default value: | default |
If true, disable the liveness and readiness probe.
Property | Value |
---|---|
Accepted values: | false, true |
If true, disable authentication of the app's test endpoint.
Property | Value |
---|---|
Default value: | False |
Accepted values: | false, true |
If false, will disable the liveness probe of the app instance.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
Accepted values: | false, true |
If true, mount a 50G (Standard Pricing tier) or 1G (Basic Pricing tier) disk with default path.
Property | Value |
---|---|
Accepted values: | false, true |
If false, will disable the readiness probe of the app instance.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
Accepted values: | false, true |
If false, will disable the startup probe of the app instance.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
Accepted values: | false, true |
Space-separated environment variables in 'key[=value]' format.
Optional duration in seconds the app instance needs to terminate gracefully.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
Ingress read timeout value in seconds. Default 300, minimum is 1, maximum is 1800.
Ingress send timeout value in seconds. Default 60, minimum is 1, maximum is 1800.
Number of instance.
Property | Value |
---|---|
Default value: | 1 |
A string containing jvm options, use '=' instead of ' ' for this argument to avoid bash parse error, eg: --jvm-options='-Xms1024m -Xmx2048m'.
A json file path indicates the liveness probe config.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
A json file path indicates the certificates which would be loaded to app.
The maximum number of replicas.
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
Default value: | 10 |
Memory resource quantity. Should be 512Mi, 1536Mi, 2560Mi, 3584Mi or #Gi, e.g., 1Gi, 3Gi.
The minimum number of replicas.
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
Default value: | 1 |
A json file path for the persistent storages to be mounted to the app.
A json file path indicates the readiness probe config.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
Runtime version of used language.
Property | Value |
---|---|
Accepted values: | Java_11, Java_17, Java_21, Java_8, NetCore_31 |
Scale rule auth parameters. Format <triggerParameter>=<secretRef>
and separated by space.
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
The maximum number of concurrent requests before scale out. Only supported for http and tcp scale rules.
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
Scale rule metadata. Format "key[=value]" and separated by space.
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
The name of the scale rule.
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
The type of the scale rule. Default: http.
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
A list of secret(s) for the app. Format "key[=value]" and separated by space.
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
Ingress session affinity of app.
Property | Value |
---|---|
Accepted values: | Cookie, None |
Time until the cookie expires. Minimum is 1 second, maximum is 7 days. If set to 0, the expiration period is equal to the browser session period.
A json file path indicates the startup probe config.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
Enable system-assigned managed identity.
Property | Value |
---|---|
Accepted values: | false, true |
Space-separated user-assigned managed identity resource IDs to assgin to an app.
The workload profile used in the managed environment. Default to "Consumption".
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app delete
Delete an app in the Azure Spring Apps.
az spring app delete --name
--resource-group
--service
Required Parameters
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app deploy
Deploy source code or pre-built binary to an app and update related configurations.
az spring app deploy --name
--resource-group
--service
[--apms]
[--artifact-path]
[--build-certificates]
[--build-cpu]
[--build-env]
[--build-memory]
[--builder]
[--config-file-patterns]
[--container-args]
[--container-command]
[--container-image]
[--container-registry]
[--custom-actuator-path]
[--custom-actuator-port]
[--deployment]
[--disable-app-log]
[--disable-probe {false, true}]
[--disable-validation {false, true}]
[--enable-liveness-probe {false, true}]
[--enable-readiness-probe {false, true}]
[--enable-startup-probe {false, true}]
[--env]
[--grace-period --termination-grace-period-seconds]
[--jvm-options]
[--language-framework]
[--liveness-probe-config]
[--main-entry]
[--no-wait]
[--readiness-probe-config]
[--registry-password]
[--registry-username]
[--runtime-version {Java_11, Java_17, Java_21, Java_8, NetCore_31}]
[--server-version]
[--source-path]
[--startup-probe-config]
[--target-module]
[--version]
Examples
Deploy source code to an app. This will pack current directory, build binary with Pivotal Build Service and then deploy to the app.
az spring app deploy -n MyApp -s MyCluster -g MyResourceGroup --source-path
Deploy a pre-built jar to an app with jvm options and environment variables.
az spring app deploy -n MyApp -s MyCluster -g MyResourceGroup --artifact-path app.jar --jvm-options="-XX:+UseG1GC -XX:+UseStringDeduplication" --env foo=bar
Deploy a pre-built war to an app with server version, jvm options and environment variables (Standard and Basic Tiers Only).
az spring app deploy -n MyApp -s MyCluster -g MyResourceGroup --artifact-path app.war --server-version Tomcat_10 --jvm-options="-XX:+UseG1GC -XX:+UseStringDeduplication" --env foo=bar
Deploy source code to a specific deployment of an app.
az spring app deploy -n MyApp -s MyCluster -g MyResourceGroup -d green-deployment --source-path
Deploy a container image on Docker Hub to an app.
az spring app deploy -n MyApp -s MyCluster -g MyResourceGroup --container-image contoso/your-app:v1
Deploy a container image on a private registry to an app.
az spring app deploy -n MyApp -s MyCluster -g MyResourceGroup --container-image contoso/your-app:v1 --container-registry myacr.azurecr.io --registry-username <username> --registry-password <password>
Deploy with Application Configuration Service config file patterns to an app.
az spring app deploy -n MyApp -s MyCluster -g MyResourceGroup --config-file-patterns MyPatterns --artifact-path app.jar
Deploy a pre-built jar to an app with build env (For Enterprise tier only).
az spring app deploy -n MyApp -s MyCluster -g MyResourceGroup --artifact-path app.jar --build-env BP_JVM_VERSION=11.*
Required Parameters
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
(Enterprise Tier Only) Space-separated APM names.
Deploy the specified pre-built artifact (jar, war or netcore zip, war is in public preview).
(Enterprise Tier Only) Space-separated certificate names, the certificates are used during build time.
CPU resource quantity. Should be 500m or number of CPU cores.
Property | Value |
---|---|
Default value: | 1 |
Space-separated environment variables in 'key[=value]' format.
Memory resource quantity. Should be 512Mi or #Gi, e.g., 1Gi, 3Gi.
Property | Value |
---|---|
Default value: | 2Gi |
(Enterprise Tier Only) Build service builder used to build the executable.
Property | Value |
---|---|
Default value: | default |
(Enterprise Tier Only) Config file patterns separated with ',' to decide which patterns of Application Configuration Service will be used. Use '""' to clear existing configurations.
The arguments of the container image.
Property | Value |
---|---|
Parameter group: | Custom Container Arguments |
The command of the container image.
Property | Value |
---|---|
Parameter group: | Custom Container Arguments |
The container image tag.
Property | Value |
---|---|
Parameter group: | Custom Container Arguments |
The registry of the container image.
Property | Value |
---|---|
Parameter group: | Custom Container Arguments |
Default value: | docker.io |
(Enterprise Tier Only) Custom actuator path for the app. Default to "/actuator".
(Enterprise Tier Only) Custom actuator port for the app. Default to 8080.
Name of an existing deployment of the app. Default to the production deployment if not specified.
Do not print application logs when deploy application.
Property | Value |
---|---|
Default value: | False |
If true, disable the liveness and readiness probe.
Property | Value |
---|---|
Accepted values: | false, true |
If true, disable jar validation.
Property | Value |
---|---|
Accepted values: | false, true |
If false, will disable the liveness probe of the app instance.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
Accepted values: | false, true |
If false, will disable the readiness probe of the app instance.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
Accepted values: | false, true |
If false, will disable the startup probe of the app instance.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
Accepted values: | false, true |
Space-separated environment variables in 'key[=value]' format.
Optional duration in seconds the app instance needs to terminate gracefully.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
A string containing jvm options, use '=' instead of ' ' for this argument to avoid bash parse error, eg: --jvm-options='-Xms1024m -Xmx2048m'.
Language framework of the container image uploaded. Supported values: "springboot", "".
Property | Value |
---|---|
Parameter group: | Custom Container Arguments |
A json file path indicates the liveness probe config.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
A string containing the path to the .NET executable relative to zip root.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
A json file path indicates the readiness probe config.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
The password of the container registry.
Property | Value |
---|---|
Parameter group: | Custom Container Arguments |
The username of the container registry.
Property | Value |
---|---|
Parameter group: | Custom Container Arguments |
Runtime version of used language.
Property | Value |
---|---|
Accepted values: | Java_11, Java_17, Java_21, Java_8, NetCore_31 |
(Standard and Basic Tiers Only) Tomcat server version. List all supported server versions by running az spring list-support-server-versions -o table
. This feature is in public preview.
Deploy the specified source folder. The folder will be packed into tar, uploaded, and built using kpack. Default to the current folder if no value provided.
Property | Value |
---|---|
Parameter group: | Source Code deploy Arguments |
A json file path indicates the startup probe config.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
Child module to be deployed, required for multiple jar packages built from source code.
Property | Value |
---|---|
Parameter group: | Source Code deploy Arguments |
Deployment version, keep unchanged if not set.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app disable-remote-debugging
Disable remote debugging for a deployment.
az spring app disable-remote-debugging --name
--resource-group
--service
[--deployment]
[--no-wait]
Required Parameters
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of an existing deployment of the app. Default to the production deployment if not specified.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app enable-remote-debugging
Enable remote debugging for a deployment.
az spring app enable-remote-debugging --name
--resource-group
--service
[--deployment]
[--no-wait]
[--port]
Required Parameters
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of an existing deployment of the app. Default to the production deployment if not specified.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
Remote debugging port, the value should be from 1024 to 65536, default value is 5005.
Property | Value |
---|---|
Default value: | 5005 |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app get-remote-debugging-config
Get the remote debugging configuration of a deployment.
az spring app get-remote-debugging-config --name
--resource-group
--service
[--deployment]
Required Parameters
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of an existing deployment of the app. Default to the production deployment if not specified.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app list
List all apps in the Azure Spring Apps.
az spring app list --resource-group
--service
Examples
Query status of persistent storage of all apps
az spring app list -s MyCluster -g MyResourceGroup -o json --query '[].{Name:name, PersistentStorage:properties.persistentDisk}'
Required Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app logs
Show logs of an app instance, logs will be streamed when setting '-f/--follow'.
az spring app logs --name
--resource-group
--service
[--deployment]
[--follow]
[--format-json]
[--instance]
[--limit]
[--lines]
[--since]
Required Parameters
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of an existing deployment of the app. Default to the production deployment if not specified.
Specify if the logs should be streamed.
Property | Value |
---|---|
Default value: | False |
Format JSON logs if structured log is enabled.
Name of an existing instance of the deployment.
Maximum kilobytes of logs to return. Ceiling number is 2048.
Property | Value |
---|---|
Default value: | 2048 |
Number of lines to show. Maximum is 10000.
Property | Value |
---|---|
Default value: | 50 |
Only return logs newer than a relative duration like 5s, 2m, or 1h. Maximum is 1h.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app restart
Restart instances of the app, default to production deployment.
az spring app restart --name
--resource-group
--service
[--deployment]
[--no-wait]
Required Parameters
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of an existing deployment of the app. Default to the production deployment if not specified.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app scale
Manually scale an app or its deployments.
az spring app scale --name
--resource-group
--service
[--cpu]
[--deployment]
[--instance-count]
[--max-replicas]
[--memory]
[--min-replicas]
[--no-wait]
[--scale-rule-auth --sra]
[--scale-rule-http-concurrency --scale-rule-tcp-concurrency --srhc --srtc]
[--scale-rule-metadata --srm]
[--scale-rule-name --srn]
[--scale-rule-type --srt]
Examples
Scale up an app to 4 cpu cores and 8 Gb of memory per instance.
az spring app scale -n MyApp -s MyCluster -g MyResourceGroup --cpu 3 --memory 8
Scale out a deployment of the app to 5 instances.
az spring app scale -n MyApp -s MyCluster -g MyResourceGroup -d green-deployment --instance-count 5
Required Parameters
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
CPU resource quantity. Should be 250m, 500m, 750m, 1250m or number of CPU cores.
Name of an existing deployment of the app. Default to the production deployment if not specified.
Number of instance.
The maximum number of replicas.
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
Default value: | 10 |
Memory resource quantity. Should be 512Mi, 1536Mi, 2560Mi, 3584Mi or #Gi, e.g., 1Gi, 3Gi.
The minimum number of replicas.
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
Default value: | 1 |
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
Scale rule auth parameters. Format <triggerParameter>=<secretRef>
and separated by space.
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
The maximum number of concurrent requests before scale out. Only supported for http and tcp scale rules.
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
Scale rule metadata. Format "key[=value]" and separated by space.
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
The name of the scale rule.
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
The type of the scale rule. Default: http.
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app set-deployment
Set production deployment of an app.
az spring app set-deployment --deployment
--name
--resource-group
--service
[--no-wait]
Examples
Swap a staging deployment of an app to production.
az spring app set-deployment -d green-deployment -n MyApp -s MyCluster -g MyResourceGroup
Required Parameters
Name of an existing deployment of the app.
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app show
Show the details of an app in the Azure Spring Apps.
az spring app show --name
--resource-group
--service
Required Parameters
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app show-deploy-log
Show build log of the last deploy, only apply to source code deploy, default to production deployment.
az spring app show-deploy-log --name
--resource-group
--service
[--deployment]
Required Parameters
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of an existing deployment of the app. Default to the production deployment if not specified.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app start
Start instances of the app, default to production deployment.
az spring app start --name
--resource-group
--service
[--deployment]
[--no-wait]
Required Parameters
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of an existing deployment of the app. Default to the production deployment if not specified.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app stop
Stop instances of the app, default to production deployment.
az spring app stop --name
--resource-group
--service
[--deployment]
[--no-wait]
Required Parameters
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of an existing deployment of the app. Default to the production deployment if not specified.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app unset-deployment
Unset production deployment of an app.
az spring app unset-deployment --name
--resource-group
--service
[--no-wait]
Examples
Swap the production deployment of an app to staging if the app has the production deployment.
az spring app unset-deployment -n MyApp -s MyCluster -g MyResourceGroup
Required Parameters
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az spring app update
Update configurations of an app.
az spring app update --name
--resource-group
--service
[--assign-endpoint {false, true}]
[--assign-public-endpoint {false, true}]
[--backend-protocol {Default, GRPC}]
[--client-auth-certs]
[--config-file-patterns]
[--custom-actuator-path]
[--custom-actuator-port]
[--deployment]
[--disable-probe {false, true}]
[--disable-tea --disable-test-endpoint-auth {false, true}]
[--enable-ingress-to-app-tls {false, true}]
[--enable-liveness-probe {false, true}]
[--enable-persistent-storage --enable-ps {false, true}]
[--enable-readiness-probe {false, true}]
[--enable-startup-probe {false, true}]
[--env]
[--grace-period --termination-grace-period-seconds]
[--https-only {false, true}]
[--ingress-read-timeout]
[--ingress-send-timeout]
[--jvm-options]
[--liveness-probe-config]
[--loaded-public-certificate-file]
[--main-entry]
[--no-wait]
[--persistent-storage]
[--readiness-probe-config]
[--runtime-version {Java_11, Java_17, Java_21, Java_8, NetCore_31}]
[--secrets]
[--session-affinity {Cookie, None}]
[--session-max-age]
[--startup-probe-config]
[--workload-profile]
Examples
Add an environment variable for the app.
az spring app update -n MyApp -s MyCluster -g MyResourceGroup --env foo=bar
Required Parameters
The name of app running in the specified Azure Spring Apps instance.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
If true, assign endpoint URL for direct access.
Property | Value |
---|---|
Accepted values: | false, true |
If true, assign endpoint URL which could be accessed out of virtual network for vnet injection instance app.
Property | Value |
---|---|
Accepted values: | false, true |
Ingress backend protocol of app. Default means HTTP/HTTPS/WebSocket.
Property | Value |
---|---|
Accepted values: | Default, GRPC |
A space-separated string containing resource ids of certificates for client authentication. e.g: --client_auth_certs='id0 id1'. Use '' to clear existing certificates.
(Enterprise Tier Only) Config file patterns separated with ',' to decide which patterns of Application Configuration Service will be used. Use '""' to clear existing configurations.
(Enterprise Tier Only) Custom actuator path for the app. Default to "/actuator".
(Enterprise Tier Only) Custom actuator port for the app. Default to 8080.
Name of an existing deployment of the app. Default to the production deployment if not specified.
If true, disable the liveness and readiness probe.
Property | Value |
---|---|
Accepted values: | false, true |
If true, disable authentication of the app's test endpoint.
Property | Value |
---|---|
Accepted values: | false, true |
If true, enable ingress to app tls.
Property | Value |
---|---|
Accepted values: | false, true |
If false, will disable the liveness probe of the app instance.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
Accepted values: | false, true |
If true, mount a 50G (Standard Pricing tier) or 1G (Basic Pricing tier) disk with default path.
Property | Value |
---|---|
Accepted values: | false, true |
If false, will disable the readiness probe of the app instance.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
Accepted values: | false, true |
If false, will disable the startup probe of the app instance.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
Accepted values: | false, true |
Space-separated environment variables in 'key[=value]' format.
Optional duration in seconds the app instance needs to terminate gracefully.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
If true, access app via https.
Property | Value |
---|---|
Accepted values: | false, true |
Ingress read timeout value in seconds. Default 300, minimum is 1, maximum is 1800.
Ingress send timeout value in seconds. Default 60, minimum is 1, maximum is 1800.
A string containing jvm options, use '=' instead of ' ' for this argument to avoid bash parse error, eg: --jvm-options='-Xms1024m -Xmx2048m'.
A json file path indicates the liveness probe config.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
A json file path indicates the certificates which would be loaded to app.
The path to the .NET executable relative to zip root.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
A json file path for the persistent storages to be mounted to the app.
A json file path indicates the readiness probe config.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
Runtime version of used language.
Property | Value |
---|---|
Accepted values: | Java_11, Java_17, Java_21, Java_8, NetCore_31 |
A list of secret(s) for the app. Format "key[=value]" and separated by space.
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
Ingress session affinity of app.
Property | Value |
---|---|
Accepted values: | Cookie, None |
Time until the cookie expires. Minimum is 1 second, maximum is 7 days. If set to 0, the expiration period is equal to the browser session period.
A json file path indicates the startup probe config.
Property | Value |
---|---|
Parameter group: | App Customization Arguments |
The workload profile used in the managed environment. Default to "Consumption".
Property | Value |
---|---|
Parameter group: | StandardGen2 Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |