ManagementGroupArgs

data class ManagementGroupArgs constructor(val displayName: Output<String>? = null, val name: Output<String>? = null, val parentManagementGroupId: Output<String>? = null, val subscriptionIds: Output<List<String>>? = null) : ConvertibleToJava<ManagementGroupArgs>

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

Constructors

Link copied to clipboard
fun ManagementGroupArgs(displayName: Output<String>? = null, name: Output<String>? = null, parentManagementGroupId: Output<String>? = null, subscriptionIds: Output<List<String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ManagementGroupArgs

Properties

Link copied to clipboard
val displayName: Output<String>? = null

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

Link copied to clipboard
val name: Output<String>? = null

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
val parentManagementGroupId: Output<String>? = null

The ID of the Parent Management Group.

Link copied to clipboard
val subscriptionIds: Output<List<String>>? = null

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