Data Source: azurermManagementGroup
Use this data source to access information about an existing Management Group.
Example Usage
import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const dataAzurermManagementGroupExample =
new azurerm.dataAzurermManagementGroup.DataAzurermManagementGroup(
this,
"example",
{
name: "00000000-0000-0000-0000-000000000000",
}
);
new cdktf.TerraformOutput(this, "display_name", {
value: dataAzurermManagementGroupExample.displayName,
});
Argument Reference
The following arguments are supported:
-
name- Specifies the name or UUID of this Management Group. -
displayName- Specifies the display name of this Management Group.
\~> NOTE Whilst multiple management groups may share the same display name, when filtering Terraform expects a single management group to be found with this name.
Attributes Reference
The following attributes are exported:
-
id- The ID of the Management Group. -
parentManagementGroupId- The ID of any Parent Management Group. -
managementGroupIds- A list of Management Group IDs which directly belong to this Management Group. -
subscriptionIds- A list of Subscription IDs which are directly assigned to this Management Group. -
allManagementGroupIds- A list of Management Group IDs which directly or indirectly belong to this Management Group. -
allSubscriptionIds- A list of Subscription IDs which are assigned to this Management Group or its children Management Groups.
Timeouts
The timeouts block allows you to specify timeouts for certain actions:
read- (Defaults to 5 minutes) Used when retrieving the Management Group.