Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (31 sloc) 1.23 KB
layout page_title sidebar_current description
azurerm
Azure Resource Manager: azurerm_availability_set
docs-azurerm-datasource-availability-set
Gets information about an existing Availability Set.

Data Source: azurerm_availability_set

Use this data source to access information about an existing Availability Set.

Example Usage

data "azurerm_availability_set" "test" {
  name                = "tf-appsecuritygroup"
  resource_group_name = "my-resource-group"
}

output "availability_set_id" {
  value = "${data.azurerm_availability_set.test.id}"
}

Argument Reference

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.

Attributes Reference

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.

You can’t perform that action at this time.