Namespace Pulumi.Azure.ManagementGroups
Classes
GetManagementGroup
GetManagementGroupArgs
GetManagementGroupResult
ManagementGroup
Manages a Management Group.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var current = Output.Create(Azure.Core.GetSubscription.InvokeAsync());
var exampleParent = new Azure.Management.Group("exampleParent", new Azure.Management.GroupArgs
{
DisplayName = "ParentGroup",
SubscriptionIds =
{
current.Apply(current => current.SubscriptionId),
},
});
var exampleChild = new Azure.Management.Group("exampleChild", new Azure.Management.GroupArgs
{
DisplayName = "ChildGroup",
ParentManagementGroupId = exampleParent.Id,
SubscriptionIds =
{
current.Apply(current => current.SubscriptionId),
},
});
// other subscription IDs can go here
}
}