AvailabilitySet Class

Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see Manage the availability of virtual machines. <br>``<br> For more information on Azure planned maintenance, see Planned maintenance for virtual machines in Azure <br>``<br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.compute.v2019_07_01.models._models_py3.Resource
AvailabilitySet

Constructor

AvailabilitySet(*, location: str, tags: Optional[Dict[str, str]] = None, sku: Optional[azure.mgmt.compute.v2019_07_01.models._models_py3.Sku] = None, platform_update_domain_count: Optional[int] = None, platform_fault_domain_count: Optional[int] = None, virtual_machines: Optional[List[azure.mgmt.compute.v2019_07_01.models._models_py3.SubResource]] = None, proximity_placement_group: Optional[azure.mgmt.compute.v2019_07_01.models._models_py3.SubResource] = None, **kwargs)

Parameters

location
str
Required

Required. Resource location.

tags
dict[str, str]
Required

A set of tags. Resource tags.

sku
Sku
Required

Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'.

platform_update_domain_count
int
Required

Update Domain count.

platform_fault_domain_count
int
Required

Fault Domain count.

virtual_machines
list[SubResource]
Required

A list of references to all virtual machines in the availability set.

proximity_placement_group
SubResource
Required

Specifies information about the proximity placement group that the availability set should be assigned to. <br>:code:>><<<br>Minimum api-version: 2018-04-01.

Variables

id
str

Resource Id.

name
str

Resource name.

type
str

Resource type.

statuses
list[InstanceViewStatus]

The resource status information.