-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az deployment mg create command does not support Complete deployment mode #26873
Copy link
Copy link
Open
Labels
ARM - TemplatesAuto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-identity-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Milestone
Metadata
Metadata
Assignees
Labels
ARM - TemplatesAuto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-identity-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Describe the bug
From the following doc, az deployment mg create should support [--mode {Complete, Incremental}].

https://learn.microsoft.com/en-us/cli/azure/deployment/mg?view=azure-cli-latest#az-deployment-mg-create
But I tested it from my side, the error message mentioned the deployment mode "complete" is not supported for the management group scope.
Related command
az deployment mg create --location WestUS --management-group-id xxx --name xxx --template-file "xxx"
Errors
{"code": "InvalidDeployment", "message" : "Specified deployment mode 'Complete' is not supported for deployment at the current scope. Please see https://aka.ms/deployment-modes for usage details."}
Issue script & Debug output
az deployment mg create --location WestUS --management-group-id xxx --name xxx --template-file "xxx"
Expected behavior
The deployment should be handled with Complete mode.
Environment Summary
azure-cli 2.50.0
Additional context
No response