az deployment group
Manage Azure Resource Manager template deployment at resource group.
Name | Description | Type | Status |
---|---|---|---|
az deployment group cancel |
Cancel a deployment at resource group. |
Core | GA |
az deployment group create |
Start a deployment at resource group. |
Core | GA |
az deployment group delete |
Delete a deployment at resource group. |
Core | GA |
az deployment group export |
Export the template used for a deployment. |
Core | GA |
az deployment group list |
List deployments at resource group. |
Core | GA |
az deployment group show |
Show a deployment at resource group. |
Core | GA |
az deployment group validate |
Validate whether a template is valid at resource group. |
Core | GA |
az deployment group wait |
Place the CLI in a waiting state until a deployment condition is met. |
Core | GA |
az deployment group what-if |
Execute a deployment What-If operation at resource group scope. |
Core | GA |
Cancel a deployment at resource group.
az deployment group cancel --name
--resource-group
Cancel a deployment at resource group.
az deployment group cancel -g testrg -n deployment01
The deployment name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
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.
Start a deployment at resource group.
Please specify only one of --template-file FILE | --template-uri URI | --template-spec to input the ARM template.
az deployment group create --resource-group
[--aux-subs]
[--aux-tenants]
[--confirm-with-what-if]
[--handle-extended-json-format]
[--mode {Complete, Incremental}]
[--name]
[--no-prompt {false, true}]
[--no-wait]
[--parameters]
[--proceed-if-no-change]
[--query-string]
[--rollback-on-error]
[--template-file]
[--template-spec]
[--template-uri]
[--what-if]
[--what-if-exclude-change-types {Create, Delete, Deploy, Ignore, Modify, NoChange, Unsupported}]
[--what-if-result-format {FullResourcePayloads, ResourceIdOnly}]
Create a deployment at resource group from a remote template file, using parameters from a local JSON file.
az deployment group create --resource-group testrg --name rollout01 \
--template-uri https://myresource/azuredeploy.json --parameters @myparameters.json
Create a deployment at resource group from a local template file, using parameters from a JSON string.
az deployment group create --resource-group testrg --name rollout01 \
--template-file azuredeploy.json \
--parameters '{ \"policyName\": { \"value\": \"policy2\" } }'
Create a deployment at resource group from a local template file, using parameters from an array string.
az deployment group create --resource-group testgroup --template-file demotemplate.json --parameters exampleString='inline string' exampleArray='("value1", "value2")'
Create a deployment at resource group from a local template, using a parameter file, a remote parameter file, and selectively overriding key/value pairs.
az deployment group create --resource-group testrg --name rollout01 \
--template-file azuredeploy.json --parameters @params.json \
--parameters https://mysite/params.json --parameters MyValue=This MyArray=@array.json
Create a deployment at resource group scope from a template-spec
az deployment group create --resource-group testrg --template-spec "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Resources/templateSpecs/myTemplateSpec/versions/1.0"
Create a deployment at resource group scope from a bicepparam parameter file
az deployment group create --resource-group testrg --parameters parameters.bicepparam
Create a deployment at resource group across tenants
az deployment group create --resource-group testrg --name rollout01 \
--template-file azuredeploy.json --parameters @myparameters.json --aux-tenants auxiliary_tenant01 auxiliary_tenant02
The resource group to create deployment at.
Option '--aux-subs' has been deprecated and will be removed in a future release. Use '--aux-tenants' instead.
Auxiliary subscriptions which will be used during deployment across tenants.
Auxiliary tenants which will be used during deployment across tenants.
Instruct the command to run deployment What-If before executing the deployment. It then prompts you to acknowledge resource changes before it continues.
Option '--handle-extended-json-format/-j' has been deprecated and will be removed in a future release.
Support to handle extended template content including multiline and comments in deployment.
The deployment mode.
The deployment name.
The option to disable the prompt of missing parameters for ARM template. When the value is true, the prompt requiring users to provide missing parameter will be ignored. The default value is false.
Do not wait for the long-running operation to finish.
Supply deployment parameter values.
Parameters may be supplied from a file using the @{path}
syntax, a JSON string, or as <KEY=VALUE>
pairs. Parameters are evaluated in order, so when a value is assigned twice, the latter value will be used. It is recommended that you supply your parameters file first, and then override selectively using KEY=VALUE syntax. Also note if you are providing a bicepparam file then you can use this argument only once.
Instruct the command to execute the deployment if the What-If result contains no resource changes. Applicable when --confirm-with-what-if is set.
The query string (a SAS token) to be used with the template-uri in the case of linked templates.
The name of a deployment to roll back to on error, or use as a flag to roll back to the last successful deployment.
The path to the template file or Bicep file.
The template spec resource id.
The URI to the template file.
Instruct the command to run deployment What-If.
Space-separated list of resource change types to be excluded from What-If results. Applicable when --confirm-with-what-if is set.
The format of What-If results. Applicable when --confirm-with-what-if
is set.
Global Parameters
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.
Delete a deployment at resource group.
az deployment group delete --name
--resource-group
[--no-wait]
Delete a deployment at resource group.
az deployment group delete -g testrg -n deployment01
The deployment name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Do not wait for the long-running operation to finish.
Global Parameters
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.
Export the template used for a deployment.
az deployment group export --name
--resource-group
Export the template used for a deployment at resource group.
az deployment group export --resource-group testrg --name MyDeployment
The deployment name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
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.
List deployments at resource group.
az deployment group list --resource-group
[--filter]
List deployments at resource group.
az deployment group list -g testrg
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Filter expression using OData notation. You can use --filter "provisioningState eq '{state}'" to filter provisioningState. To get more information, please visit https://learn.microsoft.com/rest/api/resources/deployments/listatsubscriptionscope#uri-parameters.
Global Parameters
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.
Show a deployment at resource group.
az deployment group show --name
--resource-group
Show a deployment at resource group.
az deployment group show -g testrg -n deployment01
The deployment name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
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.
Validate whether a template is valid at resource group.
Please specify only one of --template-file FILE | --template-uri URI | --template-spec to input the ARM template.
az deployment group validate --resource-group
[--handle-extended-json-format]
[--mode {Complete, Incremental}]
[--name]
[--no-prompt {false, true}]
[--parameters]
[--query-string]
[--rollback-on-error]
[--template-file]
[--template-spec]
[--template-uri]
Validate whether a template is valid at resource group.
az deployment group validate --resource-group testrg --template-file {template-file}
Validate whether a template is valid at resource group. (autogenerated)
az deployment group validate --parameters MyValue=This MyArray=@array.json --resource-group testrg --template-file azuredeploy.json
The resource group to create deployment at.
Option '--handle-extended-json-format/-j' has been deprecated and will be removed in a future release.
Support to handle extended template content including multiline and comments in deployment.
The deployment mode.
The deployment name.
The option to disable the prompt of missing parameters for ARM template. When the value is true, the prompt requiring users to provide missing parameter will be ignored. The default value is false.
Supply deployment parameter values.
Parameters may be supplied from a file using the @{path}
syntax, a JSON string, or as <KEY=VALUE>
pairs. Parameters are evaluated in order, so when a value is assigned twice, the latter value will be used. It is recommended that you supply your parameters file first, and then override selectively using KEY=VALUE syntax.
The query string (a SAS token) to be used with the template-uri in the case of linked templates.
The name of a deployment to roll back to on error, or use as a flag to roll back to the last successful deployment.
The path to the template file or Bicep file.
The template spec resource id.
The URI to the template file.
Global Parameters
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.
Place the CLI in a waiting state until a deployment condition is met.
az deployment group wait --name
--resource-group
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Place the CLI in a waiting state until a deployment condition is met. (autogenerated)
az deployment group wait --created --name MyDeployment --resource-group MyResourceGroup
The deployment name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
Polling interval in seconds.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
Global Parameters
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.
Execute a deployment What-If operation at resource group scope.
Please specify only one of --template-file FILE | --template-uri URI | --template-spec to input the ARM template.
az deployment group what-if --resource-group
[--aux-tenants]
[--exclude-change-types {Create, Delete, Deploy, Ignore, Modify, NoChange, Unsupported}]
[--mode {Complete, Incremental}]
[--name]
[--no-pretty-print]
[--no-prompt {false, true}]
[--parameters]
[--query-string]
[--result-format {FullResourcePayloads, ResourceIdOnly}]
[--template-file]
[--template-spec]
[--template-uri]
Execute a deployment What-If operation at a resource group.
az deployment group what-if --resource-group testrg --name rollout01 --template-uri https://myresource/azuredeploy.json --parameters @myparameters.json
Execute a deployment What-If operation at a resource group with ResourceIdOnly format.
az deployment group what-if --resource-group testrg --name rollout01 --template-uri https://myresource/azuredeploy.json --parameters @myparameters.json --result-format ResourceIdOnly
Execute a deployment What-If operation at a resource group without pretty-printing the result.
az deployment group what-if --resource-group testrg --name rollout01 --template-uri https://myresource/azuredeploy.json --parameters @myparameters.json --no-pretty-print
The resource group to execute deployment What-If operation at.
Auxiliary tenants which will be used during deployment across tenants.
Space-separated list of resource change types to be excluded from What-If results.
The deployment mode.
The deployment name.
Disable pretty-print for What-If results. When set, the output format type will be used.
The option to disable the prompt of missing parameters for ARM template. When the value is true, the prompt requiring users to provide missing parameter will be ignored. The default value is false.
Supply deployment parameter values.
Parameters may be supplied from a file using the @{path}
syntax, a JSON string, or as <KEY=VALUE>
pairs. Parameters are evaluated in order, so when a value is assigned twice, the latter value will be used. It is recommended that you supply your parameters file first, and then override selectively using KEY=VALUE syntax.
The query string (a SAS token) to be used with the template-uri in the case of linked templates.
The format of What-If results.
The path to the template file or Bicep file.
The template spec resource id.
The URI to the template file.
Global Parameters
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.
ملاحظات Azure CLI
Azure CLI هو مشروع مصدر مفتوح. حدد رابطًا لتقديم الملاحظات: