az account management-group hierarchy-settings
Provide operations for hierarchy settings defined at the management group level. Settings can only be set on the root Management Group of the hierarchy.
Commands
Name | Description | Type | Status |
---|---|---|---|
az account management-group hierarchy-settings create |
Create hierarchy settings defined at the Management Group level. |
Core | GA |
az account management-group hierarchy-settings delete |
Delete the hierarchy settings defined at the Management Group level. |
Core | GA |
az account management-group hierarchy-settings list |
Get all the hierarchy settings defined at the Management Group level. |
Core | GA |
az account management-group hierarchy-settings update |
Update the hierarchy settings defined at the Management Group level. |
Core | GA |
az account management-group hierarchy-settings create
Create hierarchy settings defined at the Management Group level.
az account management-group hierarchy-settings create --name
[--default-management-group]
[--require-authorization-for-group-creation]
Examples
Create hierarchy settings defined at the Management Group level.
az account management-group hierarchy-settings create --name GroupName
Set the default Management Group new Subscriptions get placed under.
az account management-group hierarchy-settings create --name GroupName -m /providers/Microsoft.Management/managementGroups/DefaultGroup
Require user to have Microsoft.Management/managementGroups/write access on the Root to create new Management Groups under the Root.
az account management-group hierarchy-settings create --name GroupName -r True
Update both hierarchy settings.
az account management-group hierarchy-settings create --name GroupName -m /providers/Microsoft.Management/managementGroups/DefaultGroup -r True
Required Parameters
Name of the management group.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Set the default Management Group under which new subscriptions get added in this tenant. Default setting is the Root Management Group.
Indicate whether RBAC access is required upon group creation under the root Management Group. True means user will require Microsoft.Management/managementGroups/write action on the root Management Group. Default setting is false.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az account management-group hierarchy-settings delete
Delete the hierarchy settings defined at the Management Group level.
az account management-group hierarchy-settings delete --name
[--yes]
Examples
Delete all hierarchy settings defined at the Management Group level.
az account management-group hierarchy-settings delete --name GroupName
Required Parameters
Name of the management group.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Do not prompt for confirmation.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az account management-group hierarchy-settings list
Get all the hierarchy settings defined at the Management Group level.
az account management-group hierarchy-settings list --name
Examples
Get all hierarchy settings defined at the Management Group level.
az account management-group hierarchy-settings list --name GroupName
Required Parameters
Name of the management group.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az account management-group hierarchy-settings update
Update the hierarchy settings defined at the Management Group level.
az account management-group hierarchy-settings update --name
[--add]
[--default-management-group]
[--force-string]
[--remove]
[--require-authorization-for-group-creation]
[--set]
Examples
Create hierarchy settings defined at the Management Group level.
az account management-group hierarchy-settings update --name GroupName
Set the default Management Group new Subscriptions get placed under.
az account management-group hierarchy-settings update --name GroupName -m /providers/Microsoft.Management/managementGroups/DefaultGroup
Require user to have Microsoft.Management/managementGroups/write access on the Root to create new Management Groups under the Root.
az account management-group hierarchy-settings update --name GroupName -r True
Update both hierarchy settings.
az account management-group hierarchy-settings update --name GroupName -m /providers/Microsoft.Management/managementGroups/DefaultGroup -r True
Required Parameters
Name of the management group.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>
.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Default value: | [] |
Set the default Management Group under which new subscriptions get added in this tenant. Default setting is the Root Management Group.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Default value: | False |
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Default value: | [] |
Indicate whether RBAC access is required upon group creation under the root Management Group. True means user will require Microsoft.Management/managementGroups/write action on the root Management Group. Default setting is false.
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
Property | Value |
---|---|
Parameter group: | Generic Update Arguments |
Default value: | [] |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |