» Data Source: azurerm_dedicated_host

Use this data source to access information about an existing Dedicated Host.

» Example Usage

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
}

» Argument Reference

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.

» Attributes Reference

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.

» Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Dedicated Host.