Skip to content

az deployment mg create command does not support Complete deployment mode #26873

@AmberYangY

Description

@AmberYangY

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.
image

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

Metadata

Metadata

Assignees

Labels

ARM - TemplatesAuto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamService AttentionThis 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.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions