Share via


AvailabilitySet Class

Definition

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 Availability sets overview. For more information on Azure planned maintenance, see Maintenance and updates for Virtual Machines in Azure. Currently, a VM can only be added to an availability set at creation time. An existing VM cannot be added to an availability set.

[Microsoft.Rest.Serialization.JsonTransformation]
public class AvailabilitySet : Microsoft.Azure.Management.Compute.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type AvailabilitySet = class
    inherit Resource
Public Class AvailabilitySet
Inherits Resource
Inheritance
AvailabilitySet
Attributes

Constructors

AvailabilitySet()

Initializes a new instance of the AvailabilitySet class.

AvailabilitySet(String, String, String, String, IDictionary<String, String>, Nullable<Int32>, Nullable<Int32>, IList<SubResource>, SubResource, IList<InstanceViewStatus>, Sku)

Initializes a new instance of the AvailabilitySet class.

Properties

Id

Gets resource Id

(Inherited from Resource)
Location

Gets or sets resource location

(Inherited from Resource)
Name

Gets resource name

(Inherited from Resource)
PlatformFaultDomainCount

Gets or sets fault Domain count.

PlatformUpdateDomainCount

Gets or sets update Domain count.

ProximityPlacementGroup

Gets or sets specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.

Sku

Gets or sets 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'.

Statuses

Gets the resource status information.

Tags

Gets or sets resource tags

(Inherited from Resource)
Type

Gets resource type

(Inherited from Resource)
VirtualMachines

Gets or sets a list of references to all virtual machines in the availability set.

Methods

Validate()

Validate the object.

Applies to