1. Packages
  2. Packages
  3. Azure Classic
  4. API Docs
  5. managementgroups
  6. getManagementGroup

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
    Deprecated: azure.managementgroups.getManagementGroup has been deprecated in favor of azure.management.getGroup

    Use this data source to access information about an existing Management Group.

    Example Usage

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var example = Output.Create(Azure.Management.GetGroup.InvokeAsync(new Azure.Management.GetGroupArgs
            {
                Name = "00000000-0000-0000-0000-000000000000",
            }));
            this.DisplayName = example.Apply(example => example.DisplayName);
        }
    
        [Output("displayName")]
        public Output<string> DisplayName { get; set; }
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/management"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := management.LookupGroup(ctx, &management.LookupGroupArgs{
    			Name: pulumi.StringRef("00000000-0000-0000-0000-000000000000"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("displayName", example.DisplayName)
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.management.getGroup({
        name: "00000000-0000-0000-0000-000000000000",
    });
    export const displayName = example.then(example => example.displayName);
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.management.get_group(name="00000000-0000-0000-0000-000000000000")
    pulumi.export("displayName", example.display_name)
    

    Example coming soon!

    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(display_name: Optional[str] = None,
                             group_id: Optional[str] = None,
                             name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetManagementGroupResult
    def get_management_group_output(display_name: Optional[pulumi.Input[str]] = None,
                             group_id: Optional[pulumi.Input[str]] = None,
                             name: Optional[pulumi.Input[str]] = 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:managementgroups/getManagementGroup:getManagementGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DisplayName string
    Specifies the display name of this Management Group.
    GroupId string
    Specifies the name or UUID of this Management Group.

    Deprecated: Deprecated in favour of name

    Name string
    Specifies the name or UUID of this Management Group.
    DisplayName string
    Specifies the display name of this Management Group.
    GroupId string
    Specifies the name or UUID of this Management Group.

    Deprecated: Deprecated in favour of name

    Name string
    Specifies the name or UUID of this Management Group.
    displayName String
    Specifies the display name of this Management Group.
    groupId String
    Specifies the name or UUID of this Management Group.

    Deprecated: Deprecated in favour of name

    name String
    Specifies the name or UUID of this Management Group.
    displayName string
    Specifies the display name of this Management Group.
    groupId string
    Specifies the name or UUID of this Management Group.

    Deprecated: Deprecated in favour of name

    name string
    Specifies the name or UUID of this Management Group.
    display_name str
    Specifies the display name of this Management Group.
    group_id str
    Specifies the name or UUID of this Management Group.

    Deprecated: Deprecated in favour of name

    name str
    Specifies the name or UUID of this Management Group.
    displayName String
    Specifies the display name of this Management Group.
    groupId String
    Specifies the name or UUID of this Management Group.

    Deprecated: Deprecated in favour of name

    name String
    Specifies the name or UUID of this Management Group.

    getManagementGroup Result

    The following output properties are available:

    DisplayName string
    GroupId string

    Deprecated: Deprecated in favour of name

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    ParentManagementGroupId string
    The ID of any Parent Management Group.
    SubscriptionIds List<string>
    A list of Subscription IDs which are assigned to the Management Group.
    DisplayName string
    GroupId string

    Deprecated: Deprecated in favour of name

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    ParentManagementGroupId string
    The ID of any Parent Management Group.
    SubscriptionIds []string
    A list of Subscription IDs which are assigned to the Management Group.
    displayName String
    groupId String

    Deprecated: Deprecated in favour of name

    id String
    The provider-assigned unique ID for this managed resource.
    name String
    parentManagementGroupId String
    The ID of any Parent Management Group.
    subscriptionIds List<String>
    A list of Subscription IDs which are assigned to the Management Group.
    displayName string
    groupId string

    Deprecated: Deprecated in favour of name

    id string
    The provider-assigned unique ID for this managed resource.
    name string
    parentManagementGroupId string
    The ID of any Parent Management Group.
    subscriptionIds string[]
    A list of Subscription IDs which are assigned to the Management Group.
    display_name str
    group_id str

    Deprecated: Deprecated in favour of name

    id str
    The provider-assigned unique ID for this managed resource.
    name str
    parent_management_group_id str
    The ID of any Parent Management Group.
    subscription_ids Sequence[str]
    A list of Subscription IDs which are assigned to the Management Group.
    displayName String
    groupId String

    Deprecated: Deprecated in favour of name

    id String
    The provider-assigned unique ID for this managed resource.
    name String
    parentManagementGroupId String
    The ID of any Parent Management Group.
    subscriptionIds List<String>
    A list of Subscription IDs which are assigned to the Management Group.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial