FEATURES PRICING ABOUT DOCS LOGIN

azurerm_availability_set

Create an availability set for virtual machines.

Example Usage

resource "azurerm_resource_group" "test" {
    name = "resourceGroup1"
    location = "West US"
}

resource "azurerm_availability_set" "test" {
    name = "acceptanceTestAvailabilitySet1"
    location = "West US"
    resource_group_name = "${azurerm_resource_group.test.name}"
    
    tags {
        environment = "Production"
    }
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Availability Sets can be imported using the resource id, e.g.

terraform import azurerm_availability_set.group1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/availabilitySets/webAvailSet

See the source of this document at Terraform.io

REQUEST A DEMO