Use this data source to access information about an existing Dedicated Host.
data "azurerm_dedicated_host" "example" {
name = "example-host"
dedicated_host_group_name = "example-host-group"
resource_group_name = "example-resources"
}
output "dedicated_host_id" {
value = data.azurerm_dedicated_host.example.id
}
The following arguments are supported:
name
- Specifies the name of the Dedicated Host.
dedicated_host_group_name
- Specifies the name of the Dedicated Host Group the Dedicated Host is located in.
resource_group_name
- Specifies the name of the resource group the Dedicated Host is located in.
The following attributes are exported:
id
- The ID of Dedicated Host.
location
- The location where the Dedicated Host exists.
tags
- A mapping of tags assigned to the Dedicated Host.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Dedicated Host.