This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.management.getManagementGroup
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Get the details of the management group.
Azure REST API version: 2021-04-01.
Other available API versions: 2023-04-01.
Using getManagementGroup
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getManagementGroup(args: GetManagementGroupArgs, opts?: InvokeOptions): Promise<GetManagementGroupResult>
function getManagementGroupOutput(args: GetManagementGroupOutputArgs, opts?: InvokeOptions): Output<GetManagementGroupResult>def get_management_group(expand: Optional[str] = None,
                         filter: Optional[str] = None,
                         group_id: Optional[str] = None,
                         recurse: Optional[bool] = None,
                         opts: Optional[InvokeOptions] = None) -> GetManagementGroupResult
def get_management_group_output(expand: Optional[pulumi.Input[str]] = None,
                         filter: Optional[pulumi.Input[str]] = None,
                         group_id: Optional[pulumi.Input[str]] = None,
                         recurse: Optional[pulumi.Input[bool]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetManagementGroupResult]func LookupManagementGroup(ctx *Context, args *LookupManagementGroupArgs, opts ...InvokeOption) (*LookupManagementGroupResult, error)
func LookupManagementGroupOutput(ctx *Context, args *LookupManagementGroupOutputArgs, opts ...InvokeOption) LookupManagementGroupResultOutput> Note: This function is named LookupManagementGroup in the Go SDK.
public static class GetManagementGroup 
{
    public static Task<GetManagementGroupResult> InvokeAsync(GetManagementGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetManagementGroupResult> Invoke(GetManagementGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagementGroupResult> getManagementGroup(GetManagementGroupArgs args, InvokeOptions options)
public static Output<GetManagementGroupResult> getManagementGroup(GetManagementGroupArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:management:getManagementGroup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- GroupId string
- Management Group ID.
- Expand string
- The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group.
- Filter string
- A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription')
- Recurse bool
- The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true.
- GroupId string
- Management Group ID.
- Expand string
- The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group.
- Filter string
- A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription')
- Recurse bool
- The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true.
- groupId String
- Management Group ID.
- expand String
- The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group.
- filter String
- A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription')
- recurse Boolean
- The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true.
- groupId string
- Management Group ID.
- expand string
- The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group.
- filter string
- A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription')
- recurse boolean
- The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true.
- group_id str
- Management Group ID.
- expand str
- The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group.
- filter str
- A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription')
- recurse bool
- The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true.
- groupId String
- Management Group ID.
- expand String
- The $expand=children query string parameter allows clients to request inclusion of children in the response payload. $expand=path includes the path from the root group to the current group. $expand=ancestors includes the ancestor Ids of the current group.
- filter String
- A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription')
- recurse Boolean
- The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that $expand=children must be passed up if $recurse is set to true.
getManagementGroup Result
The following output properties are available:
- Id string
- The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- Name string
- The name of the management group. For example, 00000000-0000-0000-0000-000000000000
- Type string
- The type of the resource. For example, Microsoft.Management/managementGroups
- Children
List<Pulumi.Azure Native. Management. Outputs. Management Group Child Info Response> 
- The list of children.
- Details
Pulumi.Azure Native. Management. Outputs. Management Group Details Response 
- The details of a management group.
- DisplayName string
- The friendly name of the management group.
- TenantId string
- The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000
- Id string
- The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- Name string
- The name of the management group. For example, 00000000-0000-0000-0000-000000000000
- Type string
- The type of the resource. For example, Microsoft.Management/managementGroups
- Children
[]ManagementGroup Child Info Response 
- The list of children.
- Details
ManagementGroup Details Response 
- The details of a management group.
- DisplayName string
- The friendly name of the management group.
- TenantId string
- The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000
- id String
- The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- name String
- The name of the management group. For example, 00000000-0000-0000-0000-000000000000
- type String
- The type of the resource. For example, Microsoft.Management/managementGroups
- children
List<ManagementGroup Child Info Response> 
- The list of children.
- details
ManagementGroup Details Response 
- The details of a management group.
- displayName String
- The friendly name of the management group.
- tenantId String
- The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000
- id string
- The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- name string
- The name of the management group. For example, 00000000-0000-0000-0000-000000000000
- type string
- The type of the resource. For example, Microsoft.Management/managementGroups
- children
ManagementGroup Child Info Response[] 
- The list of children.
- details
ManagementGroup Details Response 
- The details of a management group.
- displayName string
- The friendly name of the management group.
- tenantId string
- The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000
- id str
- The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- name str
- The name of the management group. For example, 00000000-0000-0000-0000-000000000000
- type str
- The type of the resource. For example, Microsoft.Management/managementGroups
- children
Sequence[ManagementGroup Child Info Response] 
- The list of children.
- details
ManagementGroup Details Response 
- The details of a management group.
- display_name str
- The friendly name of the management group.
- tenant_id str
- The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000
- id String
- The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- name String
- The name of the management group. For example, 00000000-0000-0000-0000-000000000000
- type String
- The type of the resource. For example, Microsoft.Management/managementGroups
- children List<Property Map>
- The list of children.
- details Property Map
- The details of a management group.
- displayName String
- The friendly name of the management group.
- tenantId String
- The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000
Supporting Types
ManagementGroupChildInfoResponse    
- Children
List<Pulumi.Azure Native. Management. Inputs. Management Group Child Info Response> 
- The list of children.
- DisplayName string
- The friendly name of the child resource.
- Id string
- The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- Name string
- The name of the child entity.
- Type string
- The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups)
- Children
[]ManagementGroup Child Info Response 
- The list of children.
- DisplayName string
- The friendly name of the child resource.
- Id string
- The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- Name string
- The name of the child entity.
- Type string
- The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups)
- children
List<ManagementGroup Child Info Response> 
- The list of children.
- displayName String
- The friendly name of the child resource.
- id String
- The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- name String
- The name of the child entity.
- type String
- The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups)
- children
ManagementGroup Child Info Response[] 
- The list of children.
- displayName string
- The friendly name of the child resource.
- id string
- The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- name string
- The name of the child entity.
- type string
- The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups)
- children
Sequence[ManagementGroup Child Info Response] 
- The list of children.
- display_name str
- The friendly name of the child resource.
- id str
- The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- name str
- The name of the child entity.
- type str
- The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups)
- children List<Property Map>
- The list of children.
- displayName String
- The friendly name of the child resource.
- id String
- The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- name String
- The name of the child entity.
- type String
- The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups)
ManagementGroupDetailsResponse   
- ManagementGroup List<string>Ancestors 
- The ancestors of the management group.
- ManagementGroup List<Pulumi.Ancestors Chain Azure Native. Management. Inputs. Management Group Path Element Response> 
- The ancestors of the management group displayed in reversed order, from immediate parent to the root.
- Parent
Pulumi.Azure Native. Management. Inputs. Parent Group Info Response 
- (Optional) The ID of the parent management group.
- Path
List<Pulumi.Azure Native. Management. Inputs. Management Group Path Element Response> 
- The path from the root to the current group.
- UpdatedBy string
- The identity of the principal or process that updated the object.
- UpdatedTime string
- The date and time when this object was last updated.
- Version double
- The version number of the object.
- ManagementGroup []stringAncestors 
- The ancestors of the management group.
- ManagementGroup []ManagementAncestors Chain Group Path Element Response 
- The ancestors of the management group displayed in reversed order, from immediate parent to the root.
- Parent
ParentGroup Info Response 
- (Optional) The ID of the parent management group.
- Path
[]ManagementGroup Path Element Response 
- The path from the root to the current group.
- UpdatedBy string
- The identity of the principal or process that updated the object.
- UpdatedTime string
- The date and time when this object was last updated.
- Version float64
- The version number of the object.
- managementGroup List<String>Ancestors 
- The ancestors of the management group.
- managementGroup List<ManagementAncestors Chain Group Path Element Response> 
- The ancestors of the management group displayed in reversed order, from immediate parent to the root.
- parent
ParentGroup Info Response 
- (Optional) The ID of the parent management group.
- path
List<ManagementGroup Path Element Response> 
- The path from the root to the current group.
- updatedBy String
- The identity of the principal or process that updated the object.
- updatedTime String
- The date and time when this object was last updated.
- version Double
- The version number of the object.
- managementGroup string[]Ancestors 
- The ancestors of the management group.
- managementGroup ManagementAncestors Chain Group Path Element Response[] 
- The ancestors of the management group displayed in reversed order, from immediate parent to the root.
- parent
ParentGroup Info Response 
- (Optional) The ID of the parent management group.
- path
ManagementGroup Path Element Response[] 
- The path from the root to the current group.
- updatedBy string
- The identity of the principal or process that updated the object.
- updatedTime string
- The date and time when this object was last updated.
- version number
- The version number of the object.
- management_group_ Sequence[str]ancestors 
- The ancestors of the management group.
- management_group_ Sequence[Managementancestors_ chain Group Path Element Response] 
- The ancestors of the management group displayed in reversed order, from immediate parent to the root.
- parent
ParentGroup Info Response 
- (Optional) The ID of the parent management group.
- path
Sequence[ManagementGroup Path Element Response] 
- The path from the root to the current group.
- updated_by str
- The identity of the principal or process that updated the object.
- updated_time str
- The date and time when this object was last updated.
- version float
- The version number of the object.
- managementGroup List<String>Ancestors 
- The ancestors of the management group.
- managementGroup List<Property Map>Ancestors Chain 
- The ancestors of the management group displayed in reversed order, from immediate parent to the root.
- parent Property Map
- (Optional) The ID of the parent management group.
- path List<Property Map>
- The path from the root to the current group.
- updatedBy String
- The identity of the principal or process that updated the object.
- updatedTime String
- The date and time when this object was last updated.
- version Number
- The version number of the object.
ManagementGroupPathElementResponse    
- DisplayName string
- The friendly name of the group.
- Name string
- The name of the group.
- DisplayName string
- The friendly name of the group.
- Name string
- The name of the group.
- displayName String
- The friendly name of the group.
- name String
- The name of the group.
- displayName string
- The friendly name of the group.
- name string
- The name of the group.
- display_name str
- The friendly name of the group.
- name str
- The name of the group.
- displayName String
- The friendly name of the group.
- name String
- The name of the group.
ParentGroupInfoResponse   
- DisplayName string
- The friendly name of the parent management group.
- Id string
- The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- Name string
- The name of the parent management group
- DisplayName string
- The friendly name of the parent management group.
- Id string
- The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- Name string
- The name of the parent management group
- displayName String
- The friendly name of the parent management group.
- id String
- The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- name String
- The name of the parent management group
- displayName string
- The friendly name of the parent management group.
- id string
- The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- name string
- The name of the parent management group
- display_name str
- The friendly name of the parent management group.
- id str
- The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- name str
- The name of the parent management group
- displayName String
- The friendly name of the parent management group.
- id String
- The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
- name String
- The name of the parent management group
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi