When deployed at tenant scope, don't set the scope property. See create management groups with tenant deployments in Bicep file or ARM templates.
When deployed at other scopes, set the scope property to tenant() for Bicep files or / for ARM templates. See create management groups with management group deployments in Bicep file or ARM templates.
Bicep resource definition
The managementGroups resource type can be deployed with operations that target:
The friendly name of the management group. If no value is passed then this field will be set to the groupId.
string
CreateParentGroupInfoOrParentGroupInfo
Name
Description
Value
id
The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
string
Microsoft.Management/managementGroups
Name
Description
Value
name
The resource name
string (required)
properties
The generic properties of a management group used during creation.
The friendly name of the management group. If no value is passed then this field will be set to the groupId.
string
CreateParentGroupInfoOrParentGroupInfo
Name
Description
Value
id
The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
string
Microsoft.Management/managementGroups
Name
Description
Value
apiVersion
The api version
'2018-01-01-preview'
name
The resource name
string (required)
properties
The generic properties of a management group used during creation.
The friendly name of the management group. If no value is passed then this field will be set to the groupId.
string
CreateParentGroupInfoOrParentGroupInfo
Name
Description
Value
id
The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
string
Microsoft.Management/managementGroups
Name
Description
Value
name
The resource name
string (required)
properties
The generic properties of a management group used during creation.