Use this data source to access information about an existing Resource Group.
data "azurerm_resource_group" "example" {
name = "existing"
}
output "id" {
value = data.azurerm_resource_group.example.id
}
The following arguments are supported:
name
- (Required) The Name of this Resource Group.In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Resource Group.
location
- The Azure Region where the Resource Group exists.
tags
- A mapping of tags assigned to the Resource Group.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Resource Group.