azure-native.management.HierarchySetting
Explore with Pulumi AI
Settings defined at the Management Group scope. 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
GetGroupSettings
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var hierarchySetting = new AzureNative.Management.HierarchySetting("hierarchySetting", new()
{
DefaultManagementGroup = "/providers/Microsoft.Management/managementGroups/DefaultGroup",
GroupId = "root",
RequireAuthorizationForGroupCreation = true,
});
});
package main
import (
management "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.NewHierarchySetting(ctx, "hierarchySetting", &management.HierarchySettingArgs{
DefaultManagementGroup: pulumi.String("/providers/Microsoft.Management/managementGroups/DefaultGroup"),
GroupId: pulumi.String("root"),
RequireAuthorizationForGroupCreation: pulumi.Bool(true),
})
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.HierarchySetting;
import com.pulumi.azurenative.management.HierarchySettingArgs;
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 hierarchySetting = new HierarchySetting("hierarchySetting", HierarchySettingArgs.builder()
.defaultManagementGroup("/providers/Microsoft.Management/managementGroups/DefaultGroup")
.groupId("root")
.requireAuthorizationForGroupCreation(true)
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
hierarchy_setting = azure_native.management.HierarchySetting("hierarchySetting",
default_management_group="/providers/Microsoft.Management/managementGroups/DefaultGroup",
group_id="root",
require_authorization_for_group_creation=True)
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const hierarchySetting = new azure_native.management.HierarchySetting("hierarchySetting", {
defaultManagementGroup: "/providers/Microsoft.Management/managementGroups/DefaultGroup",
groupId: "root",
requireAuthorizationForGroupCreation: true,
});
resources:
hierarchySetting:
type: azure-native:management:HierarchySetting
properties:
defaultManagementGroup: /providers/Microsoft.Management/managementGroups/DefaultGroup
groupId: root
requireAuthorizationForGroupCreation: true
Create HierarchySetting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HierarchySetting(name: string, args: HierarchySettingArgs, opts?: CustomResourceOptions);
@overload
def HierarchySetting(resource_name: str,
args: HierarchySettingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HierarchySetting(resource_name: str,
opts: Optional[ResourceOptions] = None,
group_id: Optional[str] = None,
default_management_group: Optional[str] = None,
require_authorization_for_group_creation: Optional[bool] = None)
func NewHierarchySetting(ctx *Context, name string, args HierarchySettingArgs, opts ...ResourceOption) (*HierarchySetting, error)
public HierarchySetting(string name, HierarchySettingArgs args, CustomResourceOptions? opts = null)
public HierarchySetting(String name, HierarchySettingArgs args)
public HierarchySetting(String name, HierarchySettingArgs args, CustomResourceOptions options)
type: azure-native:management:HierarchySetting
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args HierarchySettingArgs
- 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 HierarchySettingArgs
- 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 HierarchySettingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HierarchySettingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HierarchySettingArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var hierarchySettingResource = new AzureNative.Management.HierarchySetting("hierarchySettingResource", new()
{
GroupId = "string",
DefaultManagementGroup = "string",
RequireAuthorizationForGroupCreation = false,
});
example, err := management.NewHierarchySetting(ctx, "hierarchySettingResource", &management.HierarchySettingArgs{
GroupId: pulumi.String("string"),
DefaultManagementGroup: pulumi.String("string"),
RequireAuthorizationForGroupCreation: pulumi.Bool(false),
})
var hierarchySettingResource = new HierarchySetting("hierarchySettingResource", HierarchySettingArgs.builder()
.groupId("string")
.defaultManagementGroup("string")
.requireAuthorizationForGroupCreation(false)
.build());
hierarchy_setting_resource = azure_native.management.HierarchySetting("hierarchySettingResource",
group_id="string",
default_management_group="string",
require_authorization_for_group_creation=False)
const hierarchySettingResource = new azure_native.management.HierarchySetting("hierarchySettingResource", {
groupId: "string",
defaultManagementGroup: "string",
requireAuthorizationForGroupCreation: false,
});
type: azure-native:management:HierarchySetting
properties:
defaultManagementGroup: string
groupId: string
requireAuthorizationForGroupCreation: false
HierarchySetting Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The HierarchySetting resource accepts the following input properties:
- Group
Id string - Management Group ID.
- Default
Management stringGroup - Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup
- bool
- Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access.
- Group
Id string - Management Group ID.
- Default
Management stringGroup - Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup
- bool
- Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access.
- group
Id String - Management Group ID.
- default
Management StringGroup - Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup
- Boolean
- Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access.
- group
Id string - Management Group ID.
- default
Management stringGroup - Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup
- boolean
- Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access.
- group_
id str - Management Group ID.
- default_
management_ strgroup - Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup
- bool
- Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access.
- group
Id String - Management Group ID.
- default
Management StringGroup - Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup
- Boolean
- Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access.
Outputs
All input properties are implicitly available as output properties. Additionally, the HierarchySetting resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the object. In this case, default.
- Type string
- The type of the resource. For example, Microsoft.Management/managementGroups/settings.
- Tenant
Id string - The AAD Tenant ID associated with the hierarchy settings. For example, 00000000-0000-0000-0000-000000000000
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the object. In this case, default.
- Type string
- The type of the resource. For example, Microsoft.Management/managementGroups/settings.
- Tenant
Id string - The AAD Tenant ID associated with the hierarchy settings. For example, 00000000-0000-0000-0000-000000000000
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the object. In this case, default.
- type String
- The type of the resource. For example, Microsoft.Management/managementGroups/settings.
- tenant
Id String - The AAD Tenant ID associated with the hierarchy settings. For example, 00000000-0000-0000-0000-000000000000
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the object. In this case, default.
- type string
- The type of the resource. For example, Microsoft.Management/managementGroups/settings.
- tenant
Id string - The AAD Tenant ID associated with the hierarchy settings. For example, 00000000-0000-0000-0000-000000000000
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the object. In this case, default.
- type str
- The type of the resource. For example, Microsoft.Management/managementGroups/settings.
- tenant_
id str - The AAD Tenant ID associated with the hierarchy settings. For example, 00000000-0000-0000-0000-000000000000
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the object. In this case, default.
- type String
- The type of the resource. For example, Microsoft.Management/managementGroups/settings.
- tenant
Id String - The AAD Tenant ID associated with the hierarchy settings. For example, 00000000-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:HierarchySetting root /providers/Microsoft.Management/managementGroups/{groupId}/settings/default
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0