AvailabilitySet Constructors

Definition

Overloads

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.

AvailabilitySet()

Initializes a new instance of the AvailabilitySet class.

public AvailabilitySet ();
Public Sub New ()

Applies to

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.

public AvailabilitySet (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, int? platformUpdateDomainCount = default, int? platformFaultDomainCount = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.SubResource> virtualMachines = default, Microsoft.Azure.Management.Compute.Models.SubResource proximityPlacementGroup = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.InstanceViewStatus> statuses = default, Microsoft.Azure.Management.Compute.Models.Sku sku = default);
new Microsoft.Azure.Management.Compute.Models.AvailabilitySet : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Nullable<int> * Nullable<int> * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.SubResource> * Microsoft.Azure.Management.Compute.Models.SubResource * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.InstanceViewStatus> * Microsoft.Azure.Management.Compute.Models.Sku -> Microsoft.Azure.Management.Compute.Models.AvailabilitySet
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional platformUpdateDomainCount As Nullable(Of Integer) = Nothing, Optional platformFaultDomainCount As Nullable(Of Integer) = Nothing, Optional virtualMachines As IList(Of SubResource) = Nothing, Optional proximityPlacementGroup As SubResource = Nothing, Optional statuses As IList(Of InstanceViewStatus) = Nothing, Optional sku As Sku = Nothing)

Parameters

location
String

Resource location

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

platformUpdateDomainCount
Nullable<Int32>

Update Domain count.

platformFaultDomainCount
Nullable<Int32>

Fault Domain count.

virtualMachines
IList<SubResource>

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

proximityPlacementGroup
SubResource

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

statuses
IList<InstanceViewStatus>

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'.

Applies to