subcategory | layout | page_title | description |
---|---|---|---|
Management |
azurerm |
Azure Resource Manager: azurerm_management_group |
Gets information about an existing Management Group. |
Use this data source to access information about an existing Management Group.
data "azurerm_management_group" "example" {
name = "00000000-0000-0000-0000-000000000000"
}
output "display_name" {
value = data.azurerm_management_group.example.display_name
}
The following arguments are supported:
-
name
- Specifies the name or UUID of this Management Group. -
group_id
- Specifies the name or UUID of this Management Group.
~> NOTE: The field group_id
has been deprecated in favour of name
.
display_name
- 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.
The following attributes are exported:
-
id
- The ID of the Management Group. -
parent_management_group_id
- The ID of any Parent Management Group. -
subscription_ids
- A list of Subscription IDs which are assigned to the Management Group.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Management Group.