azure-native.management.ManagementGroup

Explore with Pulumi AI

The management group details. API Version: 2020-05-01.

Example Usage

PutManagementGroup

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var managementGroup = new AzureNative.Management.ManagementGroup("managementGroup", new()
    {
        Details = new AzureNative.Management.Inputs.CreateManagementGroupDetailsArgs
        {
            Parent = new AzureNative.Management.Inputs.CreateParentGroupInfoArgs
            {
                Id = "/providers/Microsoft.Management/managementGroups/RootGroup",
            },
        },
        DisplayName = "ChildGroup",
        GroupId = "ChildGroup",
    });

});
package main

import (
	management "github.com/pulumi/pulumi-azure-native/sdk/go/azure/management"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := management.NewManagementGroup(ctx, "managementGroup", &management.ManagementGroupArgs{
			Details: management.ManagementGroupDetailsResponse{
				Parent: &management.CreateParentGroupInfoArgs{
					Id: pulumi.String("/providers/Microsoft.Management/managementGroups/RootGroup"),
				},
			},
			DisplayName: pulumi.String("ChildGroup"),
			GroupId:     pulumi.String("ChildGroup"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.management.ManagementGroup;
import com.pulumi.azurenative.management.ManagementGroupArgs;
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) {
        var managementGroup = new ManagementGroup("managementGroup", ManagementGroupArgs.builder()        
            .details(Map.of("parent", Map.of("id", "/providers/Microsoft.Management/managementGroups/RootGroup")))
            .displayName("ChildGroup")
            .groupId("ChildGroup")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

management_group = azure_native.management.ManagementGroup("managementGroup",
    details=azure_native.management.ManagementGroupDetailsResponseArgs(
        parent=azure_native.management.CreateParentGroupInfoArgs(
            id="/providers/Microsoft.Management/managementGroups/RootGroup",
        ),
    ),
    display_name="ChildGroup",
    group_id="ChildGroup")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const managementGroup = new azure_native.management.ManagementGroup("managementGroup", {
    details: {
        parent: {
            id: "/providers/Microsoft.Management/managementGroups/RootGroup",
        },
    },
    displayName: "ChildGroup",
    groupId: "ChildGroup",
});
resources:
  managementGroup:
    type: azure-native:management:ManagementGroup
    properties:
      details:
        parent:
          id: /providers/Microsoft.Management/managementGroups/RootGroup
      displayName: ChildGroup
      groupId: ChildGroup

Create ManagementGroup Resource

new ManagementGroup(name: string, args?: ManagementGroupArgs, opts?: CustomResourceOptions);
@overload
def ManagementGroup(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    details: Optional[CreateManagementGroupDetailsArgs] = None,
                    display_name: Optional[str] = None,
                    group_id: Optional[str] = None,
                    name: Optional[str] = None)
@overload
def ManagementGroup(resource_name: str,
                    args: Optional[ManagementGroupArgs] = None,
                    opts: Optional[ResourceOptions] = None)
func NewManagementGroup(ctx *Context, name string, args *ManagementGroupArgs, opts ...ResourceOption) (*ManagementGroup, error)
public ManagementGroup(string name, ManagementGroupArgs? args = null, CustomResourceOptions? opts = null)
public ManagementGroup(String name, ManagementGroupArgs args)
public ManagementGroup(String name, ManagementGroupArgs args, CustomResourceOptions options)
type: azure-native:management:ManagementGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ManagementGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ManagementGroupArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ManagementGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ManagementGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ManagementGroupArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ManagementGroup Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ManagementGroup resource accepts the following input properties:

Details Pulumi.AzureNative.Management.Inputs.CreateManagementGroupDetailsArgs

The details of a management group used during creation.

DisplayName string

The friendly name of the management group. If no value is passed then this field will be set to the groupId.

GroupId string

Management Group ID.

Name string

The name of the management group. For example, 00000000-0000-0000-0000-000000000000

Details CreateManagementGroupDetailsArgs

The details of a management group used during creation.

DisplayName string

The friendly name of the management group. If no value is passed then this field will be set to the groupId.

GroupId string

Management Group ID.

Name string

The name of the management group. For example, 00000000-0000-0000-0000-000000000000

details CreateManagementGroupDetailsArgs

The details of a management group used during creation.

displayName String

The friendly name of the management group. If no value is passed then this field will be set to the groupId.

groupId String

Management Group ID.

name String

The name of the management group. For example, 00000000-0000-0000-0000-000000000000

details CreateManagementGroupDetailsArgs

The details of a management group used during creation.

displayName string

The friendly name of the management group. If no value is passed then this field will be set to the groupId.

groupId string

Management Group ID.

name string

The name of the management group. For example, 00000000-0000-0000-0000-000000000000

details CreateManagementGroupDetailsArgs

The details of a management group used during creation.

display_name str

The friendly name of the management group. If no value is passed then this field will be set to the groupId.

group_id str

Management Group ID.

name str

The name of the management group. For example, 00000000-0000-0000-0000-000000000000

details Property Map

The details of a management group used during creation.

displayName String

The friendly name of the management group. If no value is passed then this field will be set to the groupId.

groupId String

Management Group ID.

name String

The name of the management group. For example, 00000000-0000-0000-0000-000000000000

Outputs

All input properties are implicitly available as output properties. Additionally, the ManagementGroup resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Type string

The type of the resource. For example, Microsoft.Management/managementGroups

Children List<Pulumi.AzureNative.Management.Outputs.ManagementGroupChildInfoResponse>

The list of children.

TenantId string

The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000

Id string

The provider-assigned unique ID for this managed resource.

Type string

The type of the resource. For example, Microsoft.Management/managementGroups

Children []ManagementGroupChildInfoResponse

The list of children.

TenantId string

The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000

id String

The provider-assigned unique ID for this managed resource.

type String

The type of the resource. For example, Microsoft.Management/managementGroups

children List<ManagementGroupChildInfoResponse>

The list of children.

tenantId String

The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000

id string

The provider-assigned unique ID for this managed resource.

type string

The type of the resource. For example, Microsoft.Management/managementGroups

children ManagementGroupChildInfoResponse[]

The list of children.

tenantId string

The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000

id str

The provider-assigned unique ID for this managed resource.

type str

The type of the resource. For example, Microsoft.Management/managementGroups

children Sequence[ManagementGroupChildInfoResponse]

The list of children.

tenant_id str

The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000

id String

The provider-assigned unique ID for this managed resource.

type String

The type of the resource. For example, Microsoft.Management/managementGroups

children List<Property Map>

The list of children.

tenantId String

The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000

Supporting Types

CreateManagementGroupDetails

Parent Pulumi.AzureNative.Management.Inputs.CreateParentGroupInfo

(Optional) The ID of the parent management group used during creation.

Parent CreateParentGroupInfo

(Optional) The ID of the parent management group used during creation.

parent CreateParentGroupInfo

(Optional) The ID of the parent management group used during creation.

parent CreateParentGroupInfo

(Optional) The ID of the parent management group used during creation.

parent CreateParentGroupInfo

(Optional) The ID of the parent management group used during creation.

parent Property Map

(Optional) The ID of the parent management group used during creation.

CreateParentGroupInfo

Id string

The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

Id string

The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

id String

The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

id string

The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

id str

The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

id String

The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

ManagementGroupChildInfoResponse

Children List<Pulumi.AzureNative.Management.Inputs.ManagementGroupChildInfoResponse>

The list of children.

DisplayName string

The friendly name of the child resource.

Id string

The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

Name string

The name of the child entity.

Type string

The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups)

Children []ManagementGroupChildInfoResponse

The list of children.

DisplayName string

The friendly name of the child resource.

Id string

The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

Name string

The name of the child entity.

Type string

The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups)

children List<ManagementGroupChildInfoResponse>

The list of children.

displayName String

The friendly name of the child resource.

id String

The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

name String

The name of the child entity.

type String

The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups)

children ManagementGroupChildInfoResponse[]

The list of children.

displayName string

The friendly name of the child resource.

id string

The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

name string

The name of the child entity.

type string

The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups)

children Sequence[ManagementGroupChildInfoResponse]

The list of children.

display_name str

The friendly name of the child resource.

id str

The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

name str

The name of the child entity.

type str

The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups)

children List<Property Map>

The list of children.

displayName String

The friendly name of the child resource.

id String

The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

name String

The name of the child entity.

type String

The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups)

ManagementGroupDetailsResponse

Parent Pulumi.AzureNative.Management.Inputs.ParentGroupInfoResponse

(Optional) The ID of the parent management group.

Path List<Pulumi.AzureNative.Management.Inputs.ManagementGroupPathElementResponse>

The path from the root to the current group.

UpdatedBy string

The identity of the principal or process that updated the object.

UpdatedTime string

The date and time when this object was last updated.

Version double

The version number of the object.

Parent ParentGroupInfoResponse

(Optional) The ID of the parent management group.

Path []ManagementGroupPathElementResponse

The path from the root to the current group.

UpdatedBy string

The identity of the principal or process that updated the object.

UpdatedTime string

The date and time when this object was last updated.

Version float64

The version number of the object.

parent ParentGroupInfoResponse

(Optional) The ID of the parent management group.

path List<ManagementGroupPathElementResponse>

The path from the root to the current group.

updatedBy String

The identity of the principal or process that updated the object.

updatedTime String

The date and time when this object was last updated.

version Double

The version number of the object.

parent ParentGroupInfoResponse

(Optional) The ID of the parent management group.

path ManagementGroupPathElementResponse[]

The path from the root to the current group.

updatedBy string

The identity of the principal or process that updated the object.

updatedTime string

The date and time when this object was last updated.

version number

The version number of the object.

parent ParentGroupInfoResponse

(Optional) The ID of the parent management group.

path Sequence[ManagementGroupPathElementResponse]

The path from the root to the current group.

updated_by str

The identity of the principal or process that updated the object.

updated_time str

The date and time when this object was last updated.

version float

The version number of the object.

parent Property Map

(Optional) The ID of the parent management group.

path List<Property Map>

The path from the root to the current group.

updatedBy String

The identity of the principal or process that updated the object.

updatedTime String

The date and time when this object was last updated.

version Number

The version number of the object.

ManagementGroupPathElementResponse

DisplayName string

The friendly name of the group.

Name string

The name of the group.

DisplayName string

The friendly name of the group.

Name string

The name of the group.

displayName String

The friendly name of the group.

name String

The name of the group.

displayName string

The friendly name of the group.

name string

The name of the group.

display_name str

The friendly name of the group.

name str

The name of the group.

displayName String

The friendly name of the group.

name String

The name of the group.

ParentGroupInfoResponse

DisplayName string

The friendly name of the parent management group.

Id string

The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

Name string

The name of the parent management group

DisplayName string

The friendly name of the parent management group.

Id string

The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

Name string

The name of the parent management group

displayName String

The friendly name of the parent management group.

id String

The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

name String

The name of the parent management group

displayName string

The friendly name of the parent management group.

id string

The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

name string

The name of the parent management group

display_name str

The friendly name of the parent management group.

id str

The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

name str

The name of the parent management group

displayName String

The friendly name of the parent management group.

id String

The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

name String

The name of the parent management group

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:management:ManagementGroup ChildGroup /providers/Microsoft.Management/managementGroups/ChildGroup 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0