github.com/erriapo/terraform@v0.6.12-0.20160203182612-0340ea72354f/website/source/docs/providers/azurerm/r/availability_set.html.markdown (about)

     1  ---
     2  layout: "azurerm"
     3  page_title: "Azure Resource Manager: azurerm_availability_set"
     4  sidebar_current: "docs-azurerm-resource-virtualmachine-availability-set"
     5  description: |-
     6    Create an availability set for virtual machines.
     7  ---
     8  
     9  # azurerm\_availability\_set
    10  
    11  Create an availability set for virtual machines.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "azurerm_resource_group" "test" {
    17      name = "resourceGroup1"
    18      location = "West US"
    19  }
    20  
    21  resource "azurerm_availability_set" "test" {
    22      name = "acceptanceTestAvailabilitySet1"
    23      location = "West US"
    24      resource_group_name = "${azurerm_resource_group.test.name}"
    25      
    26      tags {
    27          environment = "Production"
    28      }
    29  }
    30  ```
    31  
    32  ## Argument Reference
    33  
    34  The following arguments are supported:
    35  
    36  * `name` - (Required) Specifies the name of the availability set. Changing this forces a
    37      new resource to be created.
    38  
    39  * `resource_group_name` - (Required) The name of the resource group in which to
    40      create the availability set.
    41  
    42  * `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    43  
    44  * `platform_update_domain_count` - (Optional) Specifies the number of update domains that are used. Defaults to 5.
    45  
    46  * `platform_fault_domain_count` - (Optional) Specifies the number of fault domains that are used. Defaults to 3.
    47  * `tags` - (Optional) A mapping of tags to assign to the resource. 
    48  
    49  ## Attributes Reference
    50  
    51  The following attributes are exported:
    52  
    53  * `id` - The virtual AvailabilitySet ID.