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/v3/go/azure/management"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
opt0 := "00000000-0000-0000-0000-000000000000"
example, err := management.LookupGroup(ctx, &management.LookupGroupArgs{
Name: &opt0,
}, nil)
if err != nil {
return err
}
ctx.Export("displayName", example.DisplayName)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.management.get_group(name="00000000-0000-0000-0000-000000000000")
pulumi.export("displayName", example.display_name)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);Using GetGroup
function getGroup(args: GetGroupArgs, opts?: InvokeOptions): Promise<GetGroupResult>function get_group(display_name=None, group_id=None, name=None, opts=None)func LookupGroup(ctx *Context, args *LookupGroupArgs, opts ...InvokeOption) (*LookupGroupResult, error)Note: This function is named
LookupGroupin the Go SDK.
public static class GetGroup {
public static Task<GetGroupResult> InvokeAsync(GetGroupArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
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 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 List[str] A list of Subscription IDs which are assigned to the Management Group.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.