This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi
azure-native.management.ManagementGroupSubscription
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi
The details of subscription under management group. Azure REST API version: 2021-04-01. Prior API version in Azure Native 1.x: 2020-05-01.
Other available API versions: 2023-04-01.
Example Usage
AddSubscriptionToManagementGroup
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managementGroupSubscription = new AzureNative.Management.ManagementGroupSubscription("managementGroupSubscription", new()
{
GroupId = "Group",
});
});
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/management/v2"
"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:
- Group
Id string - Management Group ID.
- Subscription
Id string - Subscription ID.
- Group
Id string - Management Group ID.
- Subscription
Id string - Subscription ID.
- group
Id String - Management Group ID.
- subscription
Id String - Subscription ID.
- group
Id string - Management Group ID.
- subscription
Id string - Subscription ID.
- group_
id str - Management Group ID.
- subscription_
id str - Subscription ID.
- group
Id String - Management Group ID.
- subscription
Id 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
- Display
Name string - The friendly name of the subscription.
- Parent
Pulumi.
Azure Native. Management. Outputs. Descendant Parent Group Info Response - 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
- Display
Name string - The friendly name of the subscription.
- Parent
Descendant
Parent Group Info Response - 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
- display
Name String - The friendly name of the subscription.
- parent
Descendant
Parent Group Info Response - 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
- display
Name string - The friendly name of the subscription.
- parent
Descendant
Parent Group Info Response - 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
Descendant
Parent Group Info Response - 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
- display
Name 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, DescendantParentGroupInfoResponseArgs
- 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/{groupId}/subscriptions/{subscriptionId}
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi