Class AvailabilitySet
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.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Compute.dll
Syntax
[Microsoft.Rest.Serialization.JsonTransformation]
public class AvailabilitySet : Microsoft.Azure.Management.Compute.Models.Resource
Constructors
AvailabilitySet()
Initializes a new instance of the AvailabilitySet class.
Declaration
public AvailabilitySet ();
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.
Declaration
public AvailabilitySet (string location, string id = null, string name = null, string type = null, System.Collections.Generic.IDictionary<string,string> tags = null, Nullable<int> platformUpdateDomainCount = null, Nullable<int> platformFaultDomainCount = null, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.SubResource> virtualMachines = null, Microsoft.Azure.Management.Compute.Models.SubResource proximityPlacementGroup = null, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.InstanceViewStatus> statuses = null, Microsoft.Azure.Management.Compute.Models.Sku sku = null);
Parameters
|
String
location
Resource location |
|
String
id
Resource Id |
|
String
name
Resource name |
|
String
type
Resource type |
|
IDictionary<String,String>
tags
Resource tags |
|
Nullable<Int32>
platformUpdateDomainCount
Update Domain count. |
|
Nullable<Int32>
platformFaultDomainCount
Fault Domain count. |
|
IList<SubResource>
virtualMachines
A list of references to all virtual machines in the availability set. |
|
SubResource
proximityPlacementGroup
Specifies information about the proximity placement group that the availability set should be assigned to. <br><br>Minimum api-version: 2018-04-01. |
|
IList<InstanceViewStatus>
statuses
The resource status information. |
|
Sku
sku
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'. |
Properties
PlatformFaultDomainCount
Gets or sets fault Domain count.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.platformFaultDomainCount")]
public Nullable<int> PlatformFaultDomainCount { get; set; }
Property Value
|
Nullable<Int32>
|
PlatformUpdateDomainCount
Gets or sets update Domain count.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.platformUpdateDomainCount")]
public Nullable<int> PlatformUpdateDomainCount { get; set; }
Property Value
|
Nullable<Int32>
|
ProximityPlacementGroup
Gets or sets specifies information about the proximity placement group that the availability set should be assigned to. <br><br>Minimum api-version: 2018-04-01.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.proximityPlacementGroup")]
public Microsoft.Azure.Management.Compute.Models.SubResource ProximityPlacementGroup { get; set; }
Property Value
|
SubResource
|
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'.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="sku")]
public Microsoft.Azure.Management.Compute.Models.Sku Sku { get; set; }
Property Value
|
Sku
|
Statuses
Gets the resource status information.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.statuses")]
public System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.InstanceViewStatus> Statuses { get; }
Property Value
|
IList<InstanceViewStatus>
|
VirtualMachines
Gets or sets a list of references to all virtual machines in the availability set.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.virtualMachines")]
public System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.SubResource> VirtualMachines { get; set; }
Property Value
|
IList<SubResource>
|
Methods
Validate()
Validate the object.
Declaration
public override void Validate ();
Exceptions
|
ValidationException
Thrown if validation fails |