Use this data source to access information about an existing Dedicated Host Group.
data "azurerm_dedicated_host_group" "example" {
name = "example-dedicated-host-group"
resource_group_name = "example-rg"
}
output "id" {
value = data.azurerm_dedicated_host_group.example.id
}
The following arguments are supported:
name
- Specifies the name of the Dedicated Host Group.
resource_group_name
- Specifies the name of the resource group the Dedicated Host Group is located in.
The following attributes are exported:
id
- The ID of the Dedicated Host Group.
location
- The Azure location where the Dedicated Host Group exists.
platform_fault_domain_count
- The number of fault domains that the Dedicated Host Group spans.
automatic_placement_enabled
- Whether virtual machines or virtual machine scale sets be placed automatically on this Dedicated Host Group.
zones
- A list of Availability Zones in which this Dedicated Host Group is located.
tags
- A mapping of tags assigned to the resource.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Dedicated Host Group.