ManagementGroup

class ManagementGroup : KotlinCustomResource

Deprecated

azure.managementgroups.ManagementGroup has been deprecated in favor of azure.management.Group

Manages a Management Group. !>Note: Configuring subscription_ids is not supported when using the azure.management.GroupSubscriptionAssociation resource, results will be unpredictable.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.core.inputs.GetSubscriptionArgs;
import com.pulumi.azure.management.Group;
import com.pulumi.azure.management.GroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var current = CoreFunctions.getSubscription();
var exampleParent = new Group("exampleParent", GroupArgs.builder()
.displayName("ParentGroup")
.subscriptionIds(current.applyValue(getSubscriptionResult -> getSubscriptionResult.subscriptionId()))
.build());
var exampleChild = new Group("exampleChild", GroupArgs.builder()
.displayName("ChildGroup")
.parentManagementGroupId(exampleParent.id())
.subscriptionIds(current.applyValue(getSubscriptionResult -> getSubscriptionResult.subscriptionId()))
.build());
}
}

Import

Management Groups can be imported using the management group resource id, e.g.

$ pulumi import azure:managementgroups/managementGroup:ManagementGroup example /providers/Microsoft.Management/managementGroups/group1

Properties

Link copied to clipboard
val displayName: Output<String>

A friendly name for this Management Group. If not specified, this will be the same as the name.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name or UUID for this Management Group, which needs to be unique across your tenant. A new UUID will be generated if not provided. Changing this forces a new resource to be created.

Link copied to clipboard

The ID of the Parent Management Group.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A list of Subscription GUIDs which should be assigned to the Management Group.

Link copied to clipboard
val urn: Output<String>