Microsoft.Compute/availabilitySets template reference

API Version: 2018-06-01

Template format

To create a Microsoft.Compute/availabilitySets resource, add the following JSON to the resources section of your template.

  "name": "string",
  "type": "Microsoft.Compute/availabilitySets",
  "apiVersion": "2018-06-01",
  "location": "string",
  "tags": {},
  "properties": {
    "platformUpdateDomainCount": "integer",
    "platformFaultDomainCount": "integer",
    "virtualMachines": [
        "id": "string"
  "sku": {
    "name": "string",
    "tier": "string",
    "capacity": "integer"

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Compute/availabilitySets object

Name Type Required Value
name string Yes
type enum Yes Microsoft.Compute/availabilitySets
apiVersion enum Yes 2018-06-01
location string Yes Resource location
tags object No Resource tags
properties object Yes AvailabilitySetProperties object
sku object No Sku of the availability set - Sku object

AvailabilitySetProperties object

Name Type Required Value
platformUpdateDomainCount integer No Update Domain count.
platformFaultDomainCount integer No Fault Domain count.
virtualMachines array No A list of references to all virtual machines in the availability set. - SubResource object

Sku object

Name Type Required Value
name string No The sku name.
tier string No Specifies the tier of virtual machines in a scale set.

Possible Values:


capacity integer No Specifies the number of virtual machines in the scale set.

SubResource object

Name Type Required Value
id string No Resource Id

Quickstart templates

For example templates, see Compute templates.