Skip to content

Confusing docs: management group name vs. displayName vs. id #25334

@odegroot

Description

@odegroot

For Management Groups, Azure uses different property names in different locations.

property name @Azure Portal property name @ az cli Example value
Name displayName Production
ID name 628e99e2-3d07-4b2c-a8cb-725f277a0ed0
- id /providers/Microsoft.Management/managementGroups/628e99e2-3d07-4b2c-a8cb-725f277a0ed0

Note that 'name' and 'id' mean different things in different places.

The docs for az account management-group subscription add say that the command has a required parameter --name, which is the "Name of the management group".

So which value is accepted? Is it the display name, is it the guid, or is either fine? (My tests show that it has to be the guid.)
Can you adjust the docs to clarify this?


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Labels

ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAccountaz login/accountAuto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.potential-pruning

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions