az spring-cloud app deployment

Commands to manage life cycle of deployments of an app in Azure Spring Cloud. More operations on deployments can be done on app level with parameter --deployment. e.g. az spring-cloud app deploy --deployment .

Commands

az spring-cloud app deployment create

Create a staging deployment for the app. To deploy code or update setting to an existing deployment, use az spring-cloud app deploy/update --deployment <staging deployment>.

az spring-cloud app deployment delete

Delete a deployment of the app.

az spring-cloud app deployment list

List all deployments in an app.

az spring-cloud app deployment show

Show details of a deployment.

az spring-cloud app deployment create

Create a staging deployment for the app. To deploy code or update setting to an existing deployment, use az spring-cloud app deploy/update --deployment <staging deployment>.

az spring-cloud app deployment create --app
                                      --name
                                      --resource-group
                                      --service
                                      [--artifact-path]
                                      [--cpu]
                                      [--env]
                                      [--instance-count]
                                      [--jvm-options]
                                      [--main-entry]
                                      [--memory]
                                      [--no-wait]
                                      [--runtime-version {Java_11, Java_8, NetCore_31}]
                                      [--skip-clone-settings]
                                      [--target-module]
                                      [--version]

Examples

Deploy source code to a new deployment of an app. This will pack current directory, build binary with Pivotal Build Service and then deploy.

az spring-cloud app deployment create -n green-deployment --app MyApp -s MyCluster -g MyResourceGroup

Deploy a pre-built jar to an app with jvm options and environment variables.

az spring-cloud app deployment create -n green-deployment --app MyApp -s MyCluster -g MyResourceGroup --jar-path app.jar --jvm-options="-XX:+UseG1GC -XX:+UseStringDeduplication" --env foo=bar

Required Parameters

--app

Name of app.

--name -n

Name of deployment.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--service -s

Name of Azure Spring Cloud, you can configure the default service using az configure --defaults spring-cloud=.

Optional Parameters

--artifact-path --jar-path -p

If provided, deploy pre-built artifact (jar or netcore zip), otherwise deploy current folder as tar.

--cpu

Number of virtual cpu cores per instance.

--env

Space-separated environment variables in 'key[=value]' format.

--instance-count

Number of instance.

--jvm-options

A string containing jvm options, use '=' instead of ' ' for this argument to avoid bash parse error, eg: --jvm-options='-Xms1024m -Xmx2048m'.

--main-entry -m

A string containing the path to the .NET executable relative to zip root.

--memory

Number of GB of memory per instance.

--no-wait

Do not wait for the long-running operation to finish.

--runtime-version

Runtime version of used language.

accepted values: Java_11, Java_8, NetCore_31
--skip-clone-settings

Create staging deployment will automatically copy settings from production deployment.

--target-module

Child module to be deployed, required for multiple jar packages built from source code.

--version

Deployment version, keep unchanged if not set.

az spring-cloud app deployment delete

Delete a deployment of the app.

az spring-cloud app deployment delete --app
                                      --name
                                      --resource-group
                                      --service

Required Parameters

--app

Name of app.

--name -n

Name of deployment.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--service -s

Name of Azure Spring Cloud, you can configure the default service using az configure --defaults spring-cloud=.

az spring-cloud app deployment list

List all deployments in an app.

az spring-cloud app deployment list --app
                                    --resource-group
                                    --service

Required Parameters

--app

Name of app.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--service -s

Name of Azure Spring Cloud, you can configure the default service using az configure --defaults spring-cloud=.

az spring-cloud app deployment show

Show details of a deployment.

az spring-cloud app deployment show --app
                                    --name
                                    --resource-group
                                    --service

Required Parameters

--app

Name of app.

--name -n

Name of deployment.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--service -s

Name of Azure Spring Cloud, you can configure the default service using az configure --defaults spring-cloud=.