az spring build-service build

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 build-service build command. Learn more about extensions.

(Enterprise Tier Only) Commands to manage Build Resource.

Commands

Name Description Type Status
az spring build-service build create

Create a build.

Extension GA
az spring build-service build delete

Delete a build.

Extension GA
az spring build-service build list

List builds.

Extension GA
az spring build-service build result

(Enterprise Tier Only) Commands to view Build Result Resource.

Extension GA
az spring build-service build result list

List build results.

Extension GA
az spring build-service build result show

Show a build result.

Extension GA
az spring build-service build show

Show a build.

Extension GA
az spring build-service build update

Update a build.

Extension GA

az spring build-service build create

Create a build.

az spring build-service build create --resource-group
                                     --service
                                     [--apms]
                                     [--artifact-path]
                                     [--build-cpu]
                                     [--build-env]
                                     [--build-memory]
                                     [--builder]
                                     [--certificates]
                                     [--disable-validation {false, true}]
                                     [--name]
                                     [--no-wait]
                                     [--source-path]

Examples

Create a build using a jar.

az spring build-service build create --name my-build --artifact-path hello.jar --service clitest --resource-group cli

Required Parameters

--resource-group -g

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

--service -s

The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=.

Optional Parameters

--apms

Space-separated APM names.

--artifact-path

Deploy the specified pre-built artifact (jar or netcore zip).

--build-cpu

CPU resource quantity. Should be 500m or number of CPU cores.

default value: 1
--build-env

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

--build-memory

Memory resource quantity. Should be 512Mi or #Gi, e.g., 1Gi, 3Gi.

default value: 2Gi
--builder

The builder name used to build the executable.

default value: default
--certificates

Space-separated certificate names.

--disable-validation

If true, disable jar validation.

accepted values: false, true
--name -n

The build name.

--no-wait

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

default value: False
--source-path

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.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az spring build-service build delete

Delete a build.

az spring build-service build delete --name
                                     --resource-group
                                     --service
                                     [--no-wait]
                                     [--yes]

Examples

Delete a build.

az spring build-service build delete --name my-build --service clitest --resource-group cli

Required Parameters

--name -n

The build name.

--resource-group -g

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

--service -s

The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=.

Optional Parameters

--no-wait

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

default value: False
--yes -y

Do not prompt for confirmation.

default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az spring build-service build list

List builds.

az spring build-service build list --resource-group
                                   --service

Examples

List builds.

az spring build-service build list --service clitest --resource-group cli

Required Parameters

--resource-group -g

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

--service -s

The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az spring build-service build show

Show a build.

az spring build-service build show --resource-group
                                   --service
                                   [--name]

Examples

Show a build.

az spring build-service build show --name my-build --service clitest --resource-group cli

Required Parameters

--resource-group -g

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

--service -s

The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=.

Optional Parameters

--name -n

The build name.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az spring build-service build update

Update a build.

az spring build-service build update --resource-group
                                     --service
                                     [--apms]
                                     [--artifact-path]
                                     [--build-cpu]
                                     [--build-env]
                                     [--build-memory]
                                     [--builder]
                                     [--certificates]
                                     [--disable-validation {false, true}]
                                     [--name]
                                     [--no-wait]
                                     [--source-path]

Examples

Update a build using the source code.

az spring build-service build update --name my-build --source-path ./hello --service clitest --resource-group cli

Required Parameters

--resource-group -g

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

--service -s

The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=.

Optional Parameters

--apms

Space-separated APM names.

--artifact-path

Deploy the specified pre-built artifact (jar or netcore zip).

--build-cpu

CPU resource quantity. Should be 500m or number of CPU cores.

--build-env

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

--build-memory

Memory resource quantity. Should be 512Mi or #Gi, e.g., 1Gi, 3Gi.

--builder

The builder name used to build the executable.

--certificates

Space-separated certificate names.

--disable-validation

If true, disable jar validation.

accepted values: false, true
--name -n

The build name.

--no-wait

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

default value: False
--source-path

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.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.