Azure Native

v1.88.1 published on Thursday, Dec 1, 2022 by Pulumi

ManagementGroupSubscription

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

Example Usage

AddSubscriptionToManagementGroup

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

return await Deployment.RunAsync(() => 
{
    var managementGroupSubscription = new AzureNative.Management.ManagementGroupSubscription("managementGroupSubscription", new()
    {
        GroupId = "Group",
    });

});
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.NewManagementGroupSubscription(ctx, "managementGroupSubscription", &management.ManagementGroupSubscriptionArgs{
			GroupId: pulumi.String("Group"),
		})
		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.ManagementGroupSubscription;
import com.pulumi.azurenative.management.ManagementGroupSubscriptionArgs;
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 managementGroupSubscription = new ManagementGroupSubscription("managementGroupSubscription", ManagementGroupSubscriptionArgs.builder()        
            .groupId("Group")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

management_group_subscription = azure_native.management.ManagementGroupSubscription("managementGroupSubscription", group_id="Group")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const managementGroupSubscription = new azure_native.management.ManagementGroupSubscription("managementGroupSubscription", {groupId: "Group"});
resources:
  managementGroupSubscription:
    type: azure-native:management:ManagementGroupSubscription
    properties:
      groupId: Group

Create ManagementGroupSubscription Resource

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

name string
The unique name of the resource.
args ManagementGroupSubscriptionArgs
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 ManagementGroupSubscriptionArgs
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 ManagementGroupSubscriptionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ManagementGroupSubscriptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ManagementGroupSubscriptionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ManagementGroupSubscription 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 ManagementGroupSubscription resource accepts the following input properties:

GroupId string

Management Group ID.

SubscriptionId string

Subscription ID.

GroupId string

Management Group ID.

SubscriptionId string

Subscription ID.

groupId String

Management Group ID.

subscriptionId String

Subscription ID.

groupId string

Management Group ID.

subscriptionId string

Subscription ID.

group_id str

Management Group ID.

subscription_id str

Subscription ID.

groupId String

Management Group ID.

subscriptionId String

Subscription ID.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

The stringified id of the subscription. For example, 00000000-0000-0000-0000-000000000000

Type string

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

DisplayName string

The friendly name of the subscription.

Parent Pulumi.AzureNative.Management.Outputs.DescendantParentGroupInfoResponse

The ID of the parent management group.

State string

The state of the subscription.

Tenant string

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

The stringified id of the subscription. For example, 00000000-0000-0000-0000-000000000000

Type string

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

DisplayName string

The friendly name of the subscription.

Parent DescendantParentGroupInfoResponse

The ID of the parent management group.

State string

The state of the subscription.

Tenant string

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

id String

The provider-assigned unique ID for this managed resource.

name String

The stringified id of the subscription. For example, 00000000-0000-0000-0000-000000000000

type String

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

displayName String

The friendly name of the subscription.

parent DescendantParentGroupInfoResponse

The ID of the parent management group.

state String

The state of the subscription.

tenant String

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

id string

The provider-assigned unique ID for this managed resource.

name string

The stringified id of the subscription. For example, 00000000-0000-0000-0000-000000000000

type string

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

displayName string

The friendly name of the subscription.

parent DescendantParentGroupInfoResponse

The ID of the parent management group.

state string

The state of the subscription.

tenant string

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

id str

The provider-assigned unique ID for this managed resource.

name str

The stringified id of the subscription. For example, 00000000-0000-0000-0000-000000000000

type str

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

display_name str

The friendly name of the subscription.

parent DescendantParentGroupInfoResponse

The ID of the parent management group.

state str

The state of the subscription.

tenant str

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

id String

The provider-assigned unique ID for this managed resource.

name String

The stringified id of the subscription. For example, 00000000-0000-0000-0000-000000000000

type String

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

displayName String

The friendly name of the subscription.

parent Property Map

The ID of the parent management group.

state String

The state of the subscription.

tenant String

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

Supporting Types

DescendantParentGroupInfoResponse

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

Import

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

$ pulumi import azure-native:management:ManagementGroupSubscription 728bcbe4-8d56-4510-86c2-4921b8beefbc  /providers/Microsoft.Management/managementGroups/Group/subscriptions/728bcbe4-8d56-4510-86c2-4921b8beefbc 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0