azurestack_availability_set

Manages an availability set for virtual machines.

Example Usage

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

resource "azurestack_availability_set" "test" {
  name                = "acceptanceTestAvailabilitySet1"
  location            = azurestack_resource_group.test.location
  resource_group_name = azurestack_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 azurestack_availability_set.group1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/availabilitySets/webAvailSet