subcategory | layout | page_title | description |
---|---|---|---|
Compute |
azurerm |
Azure Resource Manager: azurerm_availability_set |
Gets information about an existing Availability Set. |
Use this data source to access information about an existing Availability Set.
data "azurerm_availability_set" "example" {
name = "tf-appsecuritygroup"
resource_group_name = "my-resource-group"
}
output "availability_set_id" {
value = data.azurerm_availability_set.example.id
}
The following arguments are supported:
-
name
- The name of the Availability Set. -
resource_group_name
- The name of the resource group in which the Availability Set exists.
The following attributes are exported:
-
id
- The ID of the Availability Set. -
location
- The supported Azure location where the Availability Set exists. -
managed
- Whether the availability set is managed or not. -
platform_fault_domain_count
- The number of fault domains that are used. -
platform_update_domain_count
- The number of update domains that are used. -
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 Availability Set.