We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
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 getGroup
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 getGroup(args: GetGroupArgs, opts?: InvokeOptions): Promise<GetGroupResult>
function getGroupOutput(args: GetGroupOutputArgs, opts?: InvokeOptions): Output<GetGroupResult>def get_group(display_name: Optional[str] = None,
group_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGroupResult
def get_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[GetGroupResult]func LookupGroup(ctx *Context, args *LookupGroupArgs, opts ...InvokeOption) (*LookupGroupResult, error)
func LookupGroupOutput(ctx *Context, args *LookupGroupOutputArgs, opts ...InvokeOption) LookupGroupResultOutput> Note: This function is named LookupGroup in the Go SDK.
public static class GetGroup
{
public static Task<GetGroupResult> InvokeAsync(GetGroupArgs args, InvokeOptions? opts = null)
public static Output<GetGroupResult> Invoke(GetGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
public static Output<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
fn::invoke:
function: azure:management/getGroup:getGroup
arguments:
# arguments dictionaryThe following arguments are supported:
- Display
Name string - Specifies the display name of this Management Group.
- Group
Id string - Specifies the name or UUID of this Management Group.
- Name string
- Specifies the name or UUID of this Management Group.
- Display
Name string - Specifies the display name of this Management Group.
- Group
Id string - Specifies the name or UUID of this Management Group.
- Name string
- Specifies the name or UUID of this Management Group.
- display
Name String - Specifies the display name of this Management Group.
- group
Id String - Specifies the name or UUID of this Management Group.
- name String
- Specifies the name or UUID of this Management Group.
- display
Name string - Specifies the display name of this Management Group.
- group
Id string - Specifies the name or UUID of this Management Group.
- 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.
- name str
- Specifies the name or UUID of this Management Group.
- display
Name String - Specifies the display name of this Management Group.
- group
Id String - Specifies the name or UUID of this Management Group.
- name String
- Specifies the name or UUID of this Management Group.
getGroup Result
The following output properties are available:
- Display
Name string - Group
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Parent
Management stringGroup Id - The ID of any Parent Management Group.
- Subscription
Ids List<string> - A list of Subscription IDs which are assigned to the Management Group.
- Display
Name string - Group
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Parent
Management stringGroup Id - The ID of any Parent Management Group.
- Subscription
Ids []string - A list of Subscription IDs which are assigned to the Management Group.
- display
Name String - group
Id String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- parent
Management StringGroup Id - The ID of any Parent Management Group.
- subscription
Ids List<String> - A list of Subscription IDs which are assigned to the Management Group.
- display
Name string - group
Id string - id string
- The provider-assigned unique ID for this managed resource.
- name string
- parent
Management stringGroup Id - The ID of any Parent Management Group.
- subscription
Ids string[] - A list of Subscription IDs which are assigned to the Management Group.
- display_
name str - group_
id str - id str
- The provider-assigned unique ID for this managed resource.
- name str
- parent_
management_ strgroup_ id - The ID of any Parent Management Group.
- subscription_
ids Sequence[str] - A list of Subscription IDs which are assigned to the Management Group.
- display
Name String - group
Id String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- parent
Management StringGroup Id - The ID of any Parent Management Group.
- subscription
Ids 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
azurermTerraform Provider.
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
