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

az account management-group hierarchy-settings create

Create hierarchy settings defined at the Management Group level.

az account management-group hierarchy-settings delete

Delete the hierarchy settings defined at the Management Group level.

az account management-group hierarchy-settings list

Get all the hierarchy settings defined at the Management Group level.

az account management-group hierarchy-settings update

Update the hierarchy settings defined at the Management Group level.

az account management-group hierarchy-settings create

Create hierarchy settings defined at the Management Group level.

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 -n

Name of the management group.

Optional Parameters

--default-management-group -m

Set the default Management Group under which new subscriptions get added in this tenant. Default setting is the Root Management Group.

--require-authorization-for-group-creation -r

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.

az account management-group hierarchy-settings delete

Delete the hierarchy settings defined at the Management Group level.

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 -n

Name of the management group.

Optional Parameters

--yes -y

Do not prompt for confirmation.

default value: False

az account management-group hierarchy-settings list

Get all the hierarchy settings defined at the Management Group level.

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 -n

Name of the management group.

az account management-group hierarchy-settings update

Update the hierarchy settings defined at the Management Group level.

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 -n

Name of the management group.

Optional Parameters

--add

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

default value: []
--default-management-group -m

Set the default Management Group under which new subscriptions get added in this tenant. Default setting is the Root Management Group.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

default value: False
--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

default value: []
--require-authorization-for-group-creation -r

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.

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

default value: []