Dela via


VirtualMachineScaleSet Constructors

Definition

Overloads

VirtualMachineScaleSet()

Initializes a new instance of the VirtualMachineScaleSet class.

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, String, SpotRestorePolicy, PriorityMixPolicy, Nullable<DateTime>, Nullable<Boolean>, VirtualMachineScaleSetIdentity, IList<String>, ExtendedLocation)

Initializes a new instance of the VirtualMachineScaleSet class.

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, String, SpotRestorePolicy, PriorityMixPolicy, Nullable<DateTime>, VirtualMachineScaleSetIdentity, IList<String>, ExtendedLocation)

Initializes a new instance of the VirtualMachineScaleSet class.

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, String, SpotRestorePolicy, Nullable<DateTime>, VirtualMachineScaleSetIdentity, IList<String>, ExtendedLocation)

Initializes a new instance of the VirtualMachineScaleSet class.

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, String, VirtualMachineScaleSetIdentity, IList<String>, ExtendedLocation)

Initializes a new instance of the VirtualMachineScaleSet class.

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, String, VirtualMachineScaleSetIdentity, IList<String>)
VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, String, SpotRestorePolicy, VirtualMachineScaleSetIdentity, IList<String>, ExtendedLocation)

Initializes a new instance of the VirtualMachineScaleSet class.

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, String, VirtualMachineScaleSetIdentity)
VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, VirtualMachineScaleSetIdentity, IList<String>)

Initializes a new instance of the VirtualMachineScaleSet class.

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, String)
VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, VirtualMachineScaleSetIdentity)

Initializes a new instance of the VirtualMachineScaleSet class.

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, VirtualMachineScaleSetIdentity, IList<String>, ExtendedLocation)

Initializes a new instance of the VirtualMachineScaleSet class.

VirtualMachineScaleSet()

Initializes a new instance of the VirtualMachineScaleSet class.

public VirtualMachineScaleSet ();
Public Sub New ()

Applies to

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, String, SpotRestorePolicy, PriorityMixPolicy, Nullable<DateTime>, Nullable<Boolean>, VirtualMachineScaleSetIdentity, IList<String>, ExtendedLocation)

Initializes a new instance of the VirtualMachineScaleSet class.

public VirtualMachineScaleSet (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.Compute.Models.Sku sku = default, Microsoft.Azure.Management.Compute.Models.Plan plan = default, Microsoft.Azure.Management.Compute.Models.UpgradePolicy upgradePolicy = default, Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy automaticRepairsPolicy = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile virtualMachineProfile = default, string provisioningState = default, bool? overprovision = default, bool? doNotRunExtensionsOnOverprovisionedVMs = default, string uniqueId = default, bool? singlePlacementGroup = default, bool? zoneBalance = default, int? platformFaultDomainCount = default, Microsoft.Azure.Management.Compute.Models.SubResource proximityPlacementGroup = default, Microsoft.Azure.Management.Compute.Models.SubResource hostGroup = default, Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities additionalCapabilities = default, Microsoft.Azure.Management.Compute.Models.ScaleInPolicy scaleInPolicy = default, string orchestrationMode = default, Microsoft.Azure.Management.Compute.Models.SpotRestorePolicy spotRestorePolicy = default, Microsoft.Azure.Management.Compute.Models.PriorityMixPolicy priorityMixPolicy = default, DateTime? timeCreated = default, bool? constrainedMaximumCapacity = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity identity = default, System.Collections.Generic.IList<string> zones = default, Microsoft.Azure.Management.Compute.Models.ExtendedLocation extendedLocation = default);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.Sku * Microsoft.Azure.Management.Compute.Models.Plan * Microsoft.Azure.Management.Compute.Models.UpgradePolicy * Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile * string * Nullable<bool> * Nullable<bool> * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Models.ScaleInPolicy * string * Microsoft.Azure.Management.Compute.Models.SpotRestorePolicy * Microsoft.Azure.Management.Compute.Models.PriorityMixPolicy * Nullable<DateTime> * Nullable<bool> * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.Compute.Models.ExtendedLocation -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet
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 sku As Sku = Nothing, Optional plan As Plan = Nothing, Optional upgradePolicy As UpgradePolicy = Nothing, Optional automaticRepairsPolicy As AutomaticRepairsPolicy = Nothing, Optional virtualMachineProfile As VirtualMachineScaleSetVMProfile = Nothing, Optional provisioningState As String = Nothing, Optional overprovision As Nullable(Of Boolean) = Nothing, Optional doNotRunExtensionsOnOverprovisionedVMs As Nullable(Of Boolean) = Nothing, Optional uniqueId As String = Nothing, Optional singlePlacementGroup As Nullable(Of Boolean) = Nothing, Optional zoneBalance As Nullable(Of Boolean) = Nothing, Optional platformFaultDomainCount As Nullable(Of Integer) = Nothing, Optional proximityPlacementGroup As SubResource = Nothing, Optional hostGroup As SubResource = Nothing, Optional additionalCapabilities As AdditionalCapabilities = Nothing, Optional scaleInPolicy As ScaleInPolicy = Nothing, Optional orchestrationMode As String = Nothing, Optional spotRestorePolicy As SpotRestorePolicy = Nothing, Optional priorityMixPolicy As PriorityMixPolicy = Nothing, Optional timeCreated As Nullable(Of DateTime) = Nothing, Optional constrainedMaximumCapacity As Nullable(Of Boolean) = Nothing, Optional identity As VirtualMachineScaleSetIdentity = Nothing, Optional zones As IList(Of String) = Nothing, Optional extendedLocation As ExtendedLocation = Nothing)

Parameters

location
String

Resource location

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

sku
Sku

The virtual machine scale set sku.

plan
Plan

Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.

upgradePolicy
UpgradePolicy

The upgrade policy.

automaticRepairsPolicy
AutomaticRepairsPolicy

Policy for automatic repairs.

virtualMachineProfile
VirtualMachineScaleSetVMProfile

The virtual machine profile.

provisioningState
String

The provisioning state, which only appears in the response.

overprovision
Nullable<Boolean>

Specifies whether the Virtual Machine Scale Set should be overprovisioned.

doNotRunExtensionsOnOverprovisionedVMs
Nullable<Boolean>

When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs.

uniqueId
String

Specifies the ID which uniquely identifies a Virtual Machine Scale Set.

singlePlacementGroup
Nullable<Boolean>

When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true.

zoneBalance
Nullable<Boolean>

Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage. zoneBalance property can only be set if the zones property of the scale set contains more than one zone. If there are no zones or only one zone specified, then zoneBalance property should not be set.

platformFaultDomainCount
Nullable<Int32>

Fault Domain count for each placement group.

proximityPlacementGroup
SubResource

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

hostGroup
SubResource

Specifies information about the dedicated host group that the virtual machine scale set resides in. Minimum api-version: 2020-06-01.

additionalCapabilities
AdditionalCapabilities

Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type.

scaleInPolicy
ScaleInPolicy

Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.

orchestrationMode
String

Specifies the orchestration mode for the virtual machine scale set. Possible values include: 'Uniform', 'Flexible'

spotRestorePolicy
SpotRestorePolicy

Specifies the Spot Restore properties for the virtual machine scale set.

priorityMixPolicy
PriorityMixPolicy

Specifies the desired targets for mixing Spot and Regular priority VMs within the same VMSS Flex instance.

timeCreated
Nullable<DateTime>

Specifies the time at which the Virtual Machine Scale Set resource was created. Minimum api-version: 2021-11-01.

constrainedMaximumCapacity
Nullable<Boolean>

Optional property which must either be set to True or omitted.

identity
VirtualMachineScaleSetIdentity

The identity of the virtual machine scale set, if configured.

zones
IList<String>

The virtual machine scale set zones. NOTE: Availability zones can only be set when you create the scale set

extendedLocation
ExtendedLocation

The extended location of the Virtual Machine Scale Set.

Applies to

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, String, SpotRestorePolicy, PriorityMixPolicy, Nullable<DateTime>, VirtualMachineScaleSetIdentity, IList<String>, ExtendedLocation)

Initializes a new instance of the VirtualMachineScaleSet class.

public VirtualMachineScaleSet (string location, string id, string name, string type, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.Sku sku, Microsoft.Azure.Management.Compute.Models.Plan plan, Microsoft.Azure.Management.Compute.Models.UpgradePolicy upgradePolicy, Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy automaticRepairsPolicy, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile virtualMachineProfile, string provisioningState, bool? overprovision, bool? doNotRunExtensionsOnOverprovisionedVMs, string uniqueId, bool? singlePlacementGroup, bool? zoneBalance, int? platformFaultDomainCount, Microsoft.Azure.Management.Compute.Models.SubResource proximityPlacementGroup, Microsoft.Azure.Management.Compute.Models.SubResource hostGroup, Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities additionalCapabilities, Microsoft.Azure.Management.Compute.Models.ScaleInPolicy scaleInPolicy, string orchestrationMode, Microsoft.Azure.Management.Compute.Models.SpotRestorePolicy spotRestorePolicy, Microsoft.Azure.Management.Compute.Models.PriorityMixPolicy priorityMixPolicy, DateTime? timeCreated, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity identity, System.Collections.Generic.IList<string> zones = default, Microsoft.Azure.Management.Compute.Models.ExtendedLocation extendedLocation = default);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.Sku * Microsoft.Azure.Management.Compute.Models.Plan * Microsoft.Azure.Management.Compute.Models.UpgradePolicy * Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile * string * Nullable<bool> * Nullable<bool> * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Models.ScaleInPolicy * string * Microsoft.Azure.Management.Compute.Models.SpotRestorePolicy * Microsoft.Azure.Management.Compute.Models.PriorityMixPolicy * Nullable<DateTime> * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.Compute.Models.ExtendedLocation -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet
Public Sub New (location As String, id As String, name As String, type As String, tags As IDictionary(Of String, String), sku As Sku, plan As Plan, upgradePolicy As UpgradePolicy, automaticRepairsPolicy As AutomaticRepairsPolicy, virtualMachineProfile As VirtualMachineScaleSetVMProfile, provisioningState As String, overprovision As Nullable(Of Boolean), doNotRunExtensionsOnOverprovisionedVMs As Nullable(Of Boolean), uniqueId As String, singlePlacementGroup As Nullable(Of Boolean), zoneBalance As Nullable(Of Boolean), platformFaultDomainCount As Nullable(Of Integer), proximityPlacementGroup As SubResource, hostGroup As SubResource, additionalCapabilities As AdditionalCapabilities, scaleInPolicy As ScaleInPolicy, orchestrationMode As String, spotRestorePolicy As SpotRestorePolicy, priorityMixPolicy As PriorityMixPolicy, timeCreated As Nullable(Of DateTime), identity As VirtualMachineScaleSetIdentity, Optional zones As IList(Of String) = Nothing, Optional extendedLocation As ExtendedLocation = Nothing)

Parameters

location
String

Resource location

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

sku
Sku

The virtual machine scale set sku.

plan
Plan

Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.

upgradePolicy
UpgradePolicy

The upgrade policy.

automaticRepairsPolicy
AutomaticRepairsPolicy

Policy for automatic repairs.

virtualMachineProfile
VirtualMachineScaleSetVMProfile

The virtual machine profile.

provisioningState
String

The provisioning state, which only appears in the response.

overprovision
Nullable<Boolean>

Specifies whether the Virtual Machine Scale Set should be overprovisioned.

doNotRunExtensionsOnOverprovisionedVMs
Nullable<Boolean>

When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs.

uniqueId
String

Specifies the ID which uniquely identifies a Virtual Machine Scale Set.

singlePlacementGroup
Nullable<Boolean>

When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true.

zoneBalance
Nullable<Boolean>

Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage. zoneBalance property can only be set if the zones property of the scale set contains more than one zone. If there are no zones or only one zone specified, then zoneBalance property should not be set.

platformFaultDomainCount
Nullable<Int32>

Fault Domain count for each placement group.

proximityPlacementGroup
SubResource

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

hostGroup
SubResource

Specifies information about the dedicated host group that the virtual machine scale set resides in. <br><br>Minimum api-version: 2020-06-01.

additionalCapabilities
AdditionalCapabilities

Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type.

scaleInPolicy
ScaleInPolicy

Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.

orchestrationMode
String

Specifies the orchestration mode for the virtual machine scale set. Possible values include: 'Uniform', 'Flexible'

spotRestorePolicy
SpotRestorePolicy

Specifies the Spot Restore properties for the virtual machine scale set.

priorityMixPolicy
PriorityMixPolicy

Specifies the desired targets for mixing Spot and Regular priority VMs within the same VMSS Flex instance.

timeCreated
Nullable<DateTime>

Specifies the time at which the Virtual Machine Scale Set resource was created.<br><br>Minimum api-version: 2021-11-01.

identity
VirtualMachineScaleSetIdentity

The identity of the virtual machine scale set, if configured.

zones
IList<String>

The virtual machine scale set zones. NOTE: Availability zones can only be set when you create the scale set

extendedLocation
ExtendedLocation

The extended location of the Virtual Machine Scale Set.

Applies to

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, String, SpotRestorePolicy, Nullable<DateTime>, VirtualMachineScaleSetIdentity, IList<String>, ExtendedLocation)

Initializes a new instance of the VirtualMachineScaleSet class.

public VirtualMachineScaleSet (string location, string id, string name, string type, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.Sku sku, Microsoft.Azure.Management.Compute.Models.Plan plan, Microsoft.Azure.Management.Compute.Models.UpgradePolicy upgradePolicy, Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy automaticRepairsPolicy, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile virtualMachineProfile, string provisioningState, bool? overprovision, bool? doNotRunExtensionsOnOverprovisionedVMs, string uniqueId, bool? singlePlacementGroup, bool? zoneBalance, int? platformFaultDomainCount, Microsoft.Azure.Management.Compute.Models.SubResource proximityPlacementGroup, Microsoft.Azure.Management.Compute.Models.SubResource hostGroup, Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities additionalCapabilities, Microsoft.Azure.Management.Compute.Models.ScaleInPolicy scaleInPolicy, string orchestrationMode, Microsoft.Azure.Management.Compute.Models.SpotRestorePolicy spotRestorePolicy, DateTime? timeCreated, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity identity = default, System.Collections.Generic.IList<string> zones = default, Microsoft.Azure.Management.Compute.Models.ExtendedLocation extendedLocation = default);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.Sku * Microsoft.Azure.Management.Compute.Models.Plan * Microsoft.Azure.Management.Compute.Models.UpgradePolicy * Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile * string * Nullable<bool> * Nullable<bool> * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Models.ScaleInPolicy * string * Microsoft.Azure.Management.Compute.Models.SpotRestorePolicy * Nullable<DateTime> * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.Compute.Models.ExtendedLocation -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet
Public Sub New (location As String, id As String, name As String, type As String, tags As IDictionary(Of String, String), sku As Sku, plan As Plan, upgradePolicy As UpgradePolicy, automaticRepairsPolicy As AutomaticRepairsPolicy, virtualMachineProfile As VirtualMachineScaleSetVMProfile, provisioningState As String, overprovision As Nullable(Of Boolean), doNotRunExtensionsOnOverprovisionedVMs As Nullable(Of Boolean), uniqueId As String, singlePlacementGroup As Nullable(Of Boolean), zoneBalance As Nullable(Of Boolean), platformFaultDomainCount As Nullable(Of Integer), proximityPlacementGroup As SubResource, hostGroup As SubResource, additionalCapabilities As AdditionalCapabilities, scaleInPolicy As ScaleInPolicy, orchestrationMode As String, spotRestorePolicy As SpotRestorePolicy, timeCreated As Nullable(Of DateTime), Optional identity As VirtualMachineScaleSetIdentity = Nothing, Optional zones As IList(Of String) = Nothing, Optional extendedLocation As ExtendedLocation = Nothing)

Parameters

location
String

Resource location

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

sku
Sku

The virtual machine scale set sku.

plan
Plan

Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.

upgradePolicy
UpgradePolicy

The upgrade policy.

automaticRepairsPolicy
AutomaticRepairsPolicy

Policy for automatic repairs.

virtualMachineProfile
VirtualMachineScaleSetVMProfile

The virtual machine profile.

provisioningState
String

The provisioning state, which only appears in the response.

overprovision
Nullable<Boolean>

Specifies whether the Virtual Machine Scale Set should be overprovisioned.

doNotRunExtensionsOnOverprovisionedVMs
Nullable<Boolean>

When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs.

uniqueId
String

Specifies the ID which uniquely identifies a Virtual Machine Scale Set.

singlePlacementGroup
Nullable<Boolean>

When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true.

zoneBalance
Nullable<Boolean>

Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage. zoneBalance property can only be set if the zones property of the scale set contains more than one zone. If there are no zones or only one zone specified, then zoneBalance property should not be set.

platformFaultDomainCount
Nullable<Int32>

Fault Domain count for each placement group.

proximityPlacementGroup
SubResource

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

hostGroup
SubResource

Specifies information about the dedicated host group that the virtual machine scale set resides in. <br><br>Minimum api-version: 2020-06-01.

additionalCapabilities
AdditionalCapabilities

Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type.

scaleInPolicy
ScaleInPolicy

Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.

orchestrationMode
String

Specifies the orchestration mode for the virtual machine scale set. Possible values include: 'Uniform', 'Flexible'

spotRestorePolicy
SpotRestorePolicy

Specifies the Spot Restore properties for the virtual machine scale set.

timeCreated
Nullable<DateTime>

Specifies the time at which the Virtual Machine Scale Set resource was created.<br><br>Minimum api-version: 2022-03-01.

identity
VirtualMachineScaleSetIdentity

The identity of the virtual machine scale set, if configured.

zones
IList<String>

The virtual machine scale set zones. NOTE: Availability zones can only be set when you create the scale set

extendedLocation
ExtendedLocation

The extended location of the Virtual Machine Scale Set.

Applies to

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, String, VirtualMachineScaleSetIdentity, IList<String>, ExtendedLocation)

Initializes a new instance of the VirtualMachineScaleSet class.

public VirtualMachineScaleSet (string location, string id, string name, string type, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.Sku sku, Microsoft.Azure.Management.Compute.Models.Plan plan, Microsoft.Azure.Management.Compute.Models.UpgradePolicy upgradePolicy, Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy automaticRepairsPolicy, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile virtualMachineProfile, string provisioningState, bool? overprovision, bool? doNotRunExtensionsOnOverprovisionedVMs, string uniqueId, bool? singlePlacementGroup, bool? zoneBalance, int? platformFaultDomainCount, Microsoft.Azure.Management.Compute.Models.SubResource proximityPlacementGroup, Microsoft.Azure.Management.Compute.Models.SubResource hostGroup, Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities additionalCapabilities, Microsoft.Azure.Management.Compute.Models.ScaleInPolicy scaleInPolicy, string orchestrationMode, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity identity, System.Collections.Generic.IList<string> zones, Microsoft.Azure.Management.Compute.Models.ExtendedLocation extendedLocation);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.Sku * Microsoft.Azure.Management.Compute.Models.Plan * Microsoft.Azure.Management.Compute.Models.UpgradePolicy * Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile * string * Nullable<bool> * Nullable<bool> * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Models.ScaleInPolicy * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.Compute.Models.ExtendedLocation -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet
Public Sub New (location As String, id As String, name As String, type As String, tags As IDictionary(Of String, String), sku As Sku, plan As Plan, upgradePolicy As UpgradePolicy, automaticRepairsPolicy As AutomaticRepairsPolicy, virtualMachineProfile As VirtualMachineScaleSetVMProfile, provisioningState As String, overprovision As Nullable(Of Boolean), doNotRunExtensionsOnOverprovisionedVMs As Nullable(Of Boolean), uniqueId As String, singlePlacementGroup As Nullable(Of Boolean), zoneBalance As Nullable(Of Boolean), platformFaultDomainCount As Nullable(Of Integer), proximityPlacementGroup As SubResource, hostGroup As SubResource, additionalCapabilities As AdditionalCapabilities, scaleInPolicy As ScaleInPolicy, orchestrationMode As String, identity As VirtualMachineScaleSetIdentity, zones As IList(Of String), extendedLocation As ExtendedLocation)

Parameters

location
String

Resource location

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

sku
Sku

The virtual machine scale set sku.

plan
Plan

Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.

upgradePolicy
UpgradePolicy

The upgrade policy.

automaticRepairsPolicy
AutomaticRepairsPolicy

Policy for automatic repairs.

virtualMachineProfile
VirtualMachineScaleSetVMProfile

The virtual machine profile.

provisioningState
String

The provisioning state, which only appears in the response.

overprovision
Nullable<Boolean>

Specifies whether the Virtual Machine Scale Set should be overprovisioned.

doNotRunExtensionsOnOverprovisionedVMs
Nullable<Boolean>

When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs.

uniqueId
String

Specifies the ID which uniquely identifies a Virtual Machine Scale Set.

singlePlacementGroup
Nullable<Boolean>

When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true.

zoneBalance
Nullable<Boolean>

Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage.

platformFaultDomainCount
Nullable<Int32>

Fault Domain count for each placement group.

proximityPlacementGroup
SubResource

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

hostGroup
SubResource

Specifies information about the dedicated host group that the virtual machine scale set resides in. <br><br>Minimum api-version: 2020-06-01.

additionalCapabilities
AdditionalCapabilities

Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type.

scaleInPolicy
ScaleInPolicy

Specifies the scale-in policy that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled-in.

orchestrationMode
String

Specifies the orchestration mode for the virtual machine scale set. Possible values include: 'Uniform', 'Flexible'

identity
VirtualMachineScaleSetIdentity

The identity of the virtual machine scale set, if configured.

zones
IList<String>

The virtual machine scale set zones. NOTE: Availability zones can only be set when you create the scale set

extendedLocation
ExtendedLocation

The extended location of the Virtual Machine Scale Set.

Applies to

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, String, VirtualMachineScaleSetIdentity, IList<String>)

public VirtualMachineScaleSet (string location, string id, string name, string type, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.Sku sku, Microsoft.Azure.Management.Compute.Models.Plan plan, Microsoft.Azure.Management.Compute.Models.UpgradePolicy upgradePolicy, Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy automaticRepairsPolicy, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile virtualMachineProfile, string provisioningState, bool? overprovision, bool? doNotRunExtensionsOnOverprovisionedVMs, string uniqueId, bool? singlePlacementGroup, bool? zoneBalance, int? platformFaultDomainCount, Microsoft.Azure.Management.Compute.Models.SubResource proximityPlacementGroup, Microsoft.Azure.Management.Compute.Models.SubResource hostGroup, Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities additionalCapabilities, Microsoft.Azure.Management.Compute.Models.ScaleInPolicy scaleInPolicy, string orchestrationMode, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity identity, System.Collections.Generic.IList<string> zones);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.Sku * Microsoft.Azure.Management.Compute.Models.Plan * Microsoft.Azure.Management.Compute.Models.UpgradePolicy * Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile * string * Nullable<bool> * Nullable<bool> * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Models.ScaleInPolicy * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet
Public Sub New (location As String, id As String, name As String, type As String, tags As IDictionary(Of String, String), sku As Sku, plan As Plan, upgradePolicy As UpgradePolicy, automaticRepairsPolicy As AutomaticRepairsPolicy, virtualMachineProfile As VirtualMachineScaleSetVMProfile, provisioningState As String, overprovision As Nullable(Of Boolean), doNotRunExtensionsOnOverprovisionedVMs As Nullable(Of Boolean), uniqueId As String, singlePlacementGroup As Nullable(Of Boolean), zoneBalance As Nullable(Of Boolean), platformFaultDomainCount As Nullable(Of Integer), proximityPlacementGroup As SubResource, hostGroup As SubResource, additionalCapabilities As AdditionalCapabilities, scaleInPolicy As ScaleInPolicy, orchestrationMode As String, identity As VirtualMachineScaleSetIdentity, zones As IList(Of String))

Parameters

location
String
id
String
name
String
type
String
sku
Sku
plan
Plan
upgradePolicy
UpgradePolicy
automaticRepairsPolicy
AutomaticRepairsPolicy
virtualMachineProfile
VirtualMachineScaleSetVMProfile
provisioningState
String
overprovision
Nullable<Boolean>
doNotRunExtensionsOnOverprovisionedVMs
Nullable<Boolean>
uniqueId
String
singlePlacementGroup
Nullable<Boolean>
zoneBalance
Nullable<Boolean>
platformFaultDomainCount
Nullable<Int32>
proximityPlacementGroup
SubResource
hostGroup
SubResource
additionalCapabilities
AdditionalCapabilities
scaleInPolicy
ScaleInPolicy
orchestrationMode
String
zones
IList<String>

Applies to

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, String, SpotRestorePolicy, VirtualMachineScaleSetIdentity, IList<String>, ExtendedLocation)

Initializes a new instance of the VirtualMachineScaleSet class.

public VirtualMachineScaleSet (string location, string id, string name, string type, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.Sku sku, Microsoft.Azure.Management.Compute.Models.Plan plan, Microsoft.Azure.Management.Compute.Models.UpgradePolicy upgradePolicy, Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy automaticRepairsPolicy, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile virtualMachineProfile, string provisioningState, bool? overprovision, bool? doNotRunExtensionsOnOverprovisionedVMs, string uniqueId, bool? singlePlacementGroup, bool? zoneBalance, int? platformFaultDomainCount, Microsoft.Azure.Management.Compute.Models.SubResource proximityPlacementGroup, Microsoft.Azure.Management.Compute.Models.SubResource hostGroup, Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities additionalCapabilities, Microsoft.Azure.Management.Compute.Models.ScaleInPolicy scaleInPolicy, string orchestrationMode, Microsoft.Azure.Management.Compute.Models.SpotRestorePolicy spotRestorePolicy, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity identity, System.Collections.Generic.IList<string> zones = default, Microsoft.Azure.Management.Compute.Models.ExtendedLocation extendedLocation = default);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.Sku * Microsoft.Azure.Management.Compute.Models.Plan * Microsoft.Azure.Management.Compute.Models.UpgradePolicy * Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile * string * Nullable<bool> * Nullable<bool> * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Models.ScaleInPolicy * string * Microsoft.Azure.Management.Compute.Models.SpotRestorePolicy * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.Compute.Models.ExtendedLocation -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet
Public Sub New (location As String, id As String, name As String, type As String, tags As IDictionary(Of String, String), sku As Sku, plan As Plan, upgradePolicy As UpgradePolicy, automaticRepairsPolicy As AutomaticRepairsPolicy, virtualMachineProfile As VirtualMachineScaleSetVMProfile, provisioningState As String, overprovision As Nullable(Of Boolean), doNotRunExtensionsOnOverprovisionedVMs As Nullable(Of Boolean), uniqueId As String, singlePlacementGroup As Nullable(Of Boolean), zoneBalance As Nullable(Of Boolean), platformFaultDomainCount As Nullable(Of Integer), proximityPlacementGroup As SubResource, hostGroup As SubResource, additionalCapabilities As AdditionalCapabilities, scaleInPolicy As ScaleInPolicy, orchestrationMode As String, spotRestorePolicy As SpotRestorePolicy, identity As VirtualMachineScaleSetIdentity, Optional zones As IList(Of String) = Nothing, Optional extendedLocation As ExtendedLocation = Nothing)

Parameters

location
String

Resource location

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

sku
Sku

The virtual machine scale set sku.

plan
Plan

Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.

upgradePolicy
UpgradePolicy

The upgrade policy.

automaticRepairsPolicy
AutomaticRepairsPolicy

Policy for automatic repairs.

virtualMachineProfile
VirtualMachineScaleSetVMProfile

The virtual machine profile.

provisioningState
String

The provisioning state, which only appears in the response.

overprovision
Nullable<Boolean>

Specifies whether the Virtual Machine Scale Set should be overprovisioned.

doNotRunExtensionsOnOverprovisionedVMs
Nullable<Boolean>

When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs.

uniqueId
String

Specifies the ID which uniquely identifies a Virtual Machine Scale Set.

singlePlacementGroup
Nullable<Boolean>

When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true.

zoneBalance
Nullable<Boolean>

Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage.

platformFaultDomainCount
Nullable<Int32>

Fault Domain count for each placement group.

proximityPlacementGroup
SubResource

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

hostGroup
SubResource

Specifies information about the dedicated host group that the virtual machine scale set resides in. <br><br>Minimum api-version: 2020-06-01.

additionalCapabilities
AdditionalCapabilities

Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type.

scaleInPolicy
ScaleInPolicy

Specifies the scale-in policy that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled-in.

orchestrationMode
String

Specifies the orchestration mode for the virtual machine scale set. Possible values include: 'Uniform', 'Flexible'

spotRestorePolicy
SpotRestorePolicy

Specifies the Spot Restore properties for the virtual machine scale set.

identity
VirtualMachineScaleSetIdentity

The identity of the virtual machine scale set, if configured.

zones
IList<String>

The virtual machine scale set zones. NOTE: Availability zones can only be set when you create the scale set

extendedLocation
ExtendedLocation

The extended location of the Virtual Machine Scale Set.

Applies to

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, String, VirtualMachineScaleSetIdentity)

public VirtualMachineScaleSet (string location, string id, string name, string type, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.Sku sku, Microsoft.Azure.Management.Compute.Models.Plan plan, Microsoft.Azure.Management.Compute.Models.UpgradePolicy upgradePolicy, Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy automaticRepairsPolicy, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile virtualMachineProfile, string provisioningState, bool? overprovision, bool? doNotRunExtensionsOnOverprovisionedVMs, string uniqueId, bool? singlePlacementGroup, bool? zoneBalance, int? platformFaultDomainCount, Microsoft.Azure.Management.Compute.Models.SubResource proximityPlacementGroup, Microsoft.Azure.Management.Compute.Models.SubResource hostGroup, Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities additionalCapabilities, Microsoft.Azure.Management.Compute.Models.ScaleInPolicy scaleInPolicy, string orchestrationMode, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity identity);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.Sku * Microsoft.Azure.Management.Compute.Models.Plan * Microsoft.Azure.Management.Compute.Models.UpgradePolicy * Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile * string * Nullable<bool> * Nullable<bool> * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Models.ScaleInPolicy * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet
Public Sub New (location As String, id As String, name As String, type As String, tags As IDictionary(Of String, String), sku As Sku, plan As Plan, upgradePolicy As UpgradePolicy, automaticRepairsPolicy As AutomaticRepairsPolicy, virtualMachineProfile As VirtualMachineScaleSetVMProfile, provisioningState As String, overprovision As Nullable(Of Boolean), doNotRunExtensionsOnOverprovisionedVMs As Nullable(Of Boolean), uniqueId As String, singlePlacementGroup As Nullable(Of Boolean), zoneBalance As Nullable(Of Boolean), platformFaultDomainCount As Nullable(Of Integer), proximityPlacementGroup As SubResource, hostGroup As SubResource, additionalCapabilities As AdditionalCapabilities, scaleInPolicy As ScaleInPolicy, orchestrationMode As String, identity As VirtualMachineScaleSetIdentity)

Parameters

location
String
id
String
name
String
type
String
sku
Sku
plan
Plan
upgradePolicy
UpgradePolicy
automaticRepairsPolicy
AutomaticRepairsPolicy
virtualMachineProfile
VirtualMachineScaleSetVMProfile
provisioningState
String
overprovision
Nullable<Boolean>
doNotRunExtensionsOnOverprovisionedVMs
Nullable<Boolean>
uniqueId
String
singlePlacementGroup
Nullable<Boolean>
zoneBalance
Nullable<Boolean>
platformFaultDomainCount
Nullable<Int32>
proximityPlacementGroup
SubResource
hostGroup
SubResource
additionalCapabilities
AdditionalCapabilities
scaleInPolicy
ScaleInPolicy
orchestrationMode
String

Applies to

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, VirtualMachineScaleSetIdentity, IList<String>)

Initializes a new instance of the VirtualMachineScaleSet class.

public VirtualMachineScaleSet (string location, string id, string name, string type, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.Sku sku, Microsoft.Azure.Management.Compute.Models.Plan plan, Microsoft.Azure.Management.Compute.Models.UpgradePolicy upgradePolicy, Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy automaticRepairsPolicy, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile virtualMachineProfile, string provisioningState, bool? overprovision, bool? doNotRunExtensionsOnOverprovisionedVMs, string uniqueId, bool? singlePlacementGroup, bool? zoneBalance, int? platformFaultDomainCount, Microsoft.Azure.Management.Compute.Models.SubResource proximityPlacementGroup, Microsoft.Azure.Management.Compute.Models.SubResource hostGroup, Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities additionalCapabilities, Microsoft.Azure.Management.Compute.Models.ScaleInPolicy scaleInPolicy, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity identity, System.Collections.Generic.IList<string> zones);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.Sku * Microsoft.Azure.Management.Compute.Models.Plan * Microsoft.Azure.Management.Compute.Models.UpgradePolicy * Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile * string * Nullable<bool> * Nullable<bool> * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Models.ScaleInPolicy * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet
Public Sub New (location As String, id As String, name As String, type As String, tags As IDictionary(Of String, String), sku As Sku, plan As Plan, upgradePolicy As UpgradePolicy, automaticRepairsPolicy As AutomaticRepairsPolicy, virtualMachineProfile As VirtualMachineScaleSetVMProfile, provisioningState As String, overprovision As Nullable(Of Boolean), doNotRunExtensionsOnOverprovisionedVMs As Nullable(Of Boolean), uniqueId As String, singlePlacementGroup As Nullable(Of Boolean), zoneBalance As Nullable(Of Boolean), platformFaultDomainCount As Nullable(Of Integer), proximityPlacementGroup As SubResource, hostGroup As SubResource, additionalCapabilities As AdditionalCapabilities, scaleInPolicy As ScaleInPolicy, identity As VirtualMachineScaleSetIdentity, zones As IList(Of String))

Parameters

location
String

Resource location

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

sku
Sku

The virtual machine scale set sku.

plan
Plan

Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.

upgradePolicy
UpgradePolicy

The upgrade policy.

automaticRepairsPolicy
AutomaticRepairsPolicy

Policy for automatic repairs.

virtualMachineProfile
VirtualMachineScaleSetVMProfile

The virtual machine profile.

provisioningState
String

The provisioning state, which only appears in the response.

overprovision
Nullable<Boolean>

Specifies whether the Virtual Machine Scale Set should be overprovisioned.

doNotRunExtensionsOnOverprovisionedVMs
Nullable<Boolean>

When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs.

uniqueId
String

Specifies the ID which uniquely identifies a Virtual Machine Scale Set.

singlePlacementGroup
Nullable<Boolean>

When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true.

zoneBalance
Nullable<Boolean>

Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage.

platformFaultDomainCount
Nullable<Int32>

Fault Domain count for each placement group.

proximityPlacementGroup
SubResource

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

hostGroup
SubResource

Specifies information about the dedicated host group that the virtual machine scale set resides in. <br><br>Minimum api-version: 2020-06-01.

additionalCapabilities
AdditionalCapabilities

Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type.

scaleInPolicy
ScaleInPolicy

Specifies the scale-in policy that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled-in.

identity
VirtualMachineScaleSetIdentity

The identity of the virtual machine scale set, if configured.

zones
IList<String>

The virtual machine scale set zones. NOTE: Availability zones can only be set when you create the scale set

Applies to

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, String)

public VirtualMachineScaleSet (string location, string id, string name, string type, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.Sku sku, Microsoft.Azure.Management.Compute.Models.Plan plan, Microsoft.Azure.Management.Compute.Models.UpgradePolicy upgradePolicy, Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy automaticRepairsPolicy, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile virtualMachineProfile, string provisioningState, bool? overprovision, bool? doNotRunExtensionsOnOverprovisionedVMs, string uniqueId, bool? singlePlacementGroup, bool? zoneBalance, int? platformFaultDomainCount, Microsoft.Azure.Management.Compute.Models.SubResource proximityPlacementGroup, Microsoft.Azure.Management.Compute.Models.SubResource hostGroup, Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities additionalCapabilities, Microsoft.Azure.Management.Compute.Models.ScaleInPolicy scaleInPolicy, string orchestrationMode);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.Sku * Microsoft.Azure.Management.Compute.Models.Plan * Microsoft.Azure.Management.Compute.Models.UpgradePolicy * Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile * string * Nullable<bool> * Nullable<bool> * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Models.ScaleInPolicy * string -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet
Public Sub New (location As String, id As String, name As String, type As String, tags As IDictionary(Of String, String), sku As Sku, plan As Plan, upgradePolicy As UpgradePolicy, automaticRepairsPolicy As AutomaticRepairsPolicy, virtualMachineProfile As VirtualMachineScaleSetVMProfile, provisioningState As String, overprovision As Nullable(Of Boolean), doNotRunExtensionsOnOverprovisionedVMs As Nullable(Of Boolean), uniqueId As String, singlePlacementGroup As Nullable(Of Boolean), zoneBalance As Nullable(Of Boolean), platformFaultDomainCount As Nullable(Of Integer), proximityPlacementGroup As SubResource, hostGroup As SubResource, additionalCapabilities As AdditionalCapabilities, scaleInPolicy As ScaleInPolicy, orchestrationMode As String)

Parameters

location
String
id
String
name
String
type
String
sku
Sku
plan
Plan
upgradePolicy
UpgradePolicy
automaticRepairsPolicy
AutomaticRepairsPolicy
virtualMachineProfile
VirtualMachineScaleSetVMProfile
provisioningState
String
overprovision
Nullable<Boolean>
doNotRunExtensionsOnOverprovisionedVMs
Nullable<Boolean>
uniqueId
String
singlePlacementGroup
Nullable<Boolean>
zoneBalance
Nullable<Boolean>
platformFaultDomainCount
Nullable<Int32>
proximityPlacementGroup
SubResource
hostGroup
SubResource
additionalCapabilities
AdditionalCapabilities
scaleInPolicy
ScaleInPolicy
orchestrationMode
String

Applies to

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, VirtualMachineScaleSetIdentity)

Initializes a new instance of the VirtualMachineScaleSet class.

public VirtualMachineScaleSet (string location, string id, string name, string type, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.Sku sku, Microsoft.Azure.Management.Compute.Models.Plan plan, Microsoft.Azure.Management.Compute.Models.UpgradePolicy upgradePolicy, Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy automaticRepairsPolicy, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile virtualMachineProfile, string provisioningState, bool? overprovision, bool? doNotRunExtensionsOnOverprovisionedVMs, string uniqueId, bool? singlePlacementGroup, bool? zoneBalance, int? platformFaultDomainCount, Microsoft.Azure.Management.Compute.Models.SubResource proximityPlacementGroup, Microsoft.Azure.Management.Compute.Models.SubResource hostGroup, Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities additionalCapabilities, Microsoft.Azure.Management.Compute.Models.ScaleInPolicy scaleInPolicy, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity identity);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.Sku * Microsoft.Azure.Management.Compute.Models.Plan * Microsoft.Azure.Management.Compute.Models.UpgradePolicy * Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile * string * Nullable<bool> * Nullable<bool> * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Models.ScaleInPolicy * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet
Public Sub New (location As String, id As String, name As String, type As String, tags As IDictionary(Of String, String), sku As Sku, plan As Plan, upgradePolicy As UpgradePolicy, automaticRepairsPolicy As AutomaticRepairsPolicy, virtualMachineProfile As VirtualMachineScaleSetVMProfile, provisioningState As String, overprovision As Nullable(Of Boolean), doNotRunExtensionsOnOverprovisionedVMs As Nullable(Of Boolean), uniqueId As String, singlePlacementGroup As Nullable(Of Boolean), zoneBalance As Nullable(Of Boolean), platformFaultDomainCount As Nullable(Of Integer), proximityPlacementGroup As SubResource, hostGroup As SubResource, additionalCapabilities As AdditionalCapabilities, scaleInPolicy As ScaleInPolicy, identity As VirtualMachineScaleSetIdentity)

Parameters

location
String

Resource location

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

sku
Sku

The virtual machine scale set sku.

plan
Plan

Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.

upgradePolicy
UpgradePolicy

The upgrade policy.

automaticRepairsPolicy
AutomaticRepairsPolicy

Policy for automatic repairs.

virtualMachineProfile
VirtualMachineScaleSetVMProfile

The virtual machine profile.

provisioningState
String

The provisioning state, which only appears in the response.

overprovision
Nullable<Boolean>

Specifies whether the Virtual Machine Scale Set should be overprovisioned.

doNotRunExtensionsOnOverprovisionedVMs
Nullable<Boolean>

When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs.

uniqueId
String

Specifies the ID which uniquely identifies a Virtual Machine Scale Set.

singlePlacementGroup
Nullable<Boolean>

When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true.

zoneBalance
Nullable<Boolean>

Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage.

platformFaultDomainCount
Nullable<Int32>

Fault Domain count for each placement group.

proximityPlacementGroup
SubResource

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

hostGroup
SubResource

Specifies information about the dedicated host group that the virtual machine scale set resides in. <br><br>Minimum api-version: 2020-06-01.

additionalCapabilities
AdditionalCapabilities

Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type.

scaleInPolicy
ScaleInPolicy

Specifies the scale-in policy that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled-in.

identity
VirtualMachineScaleSetIdentity

The identity of the virtual machine scale set, if configured.

Applies to

VirtualMachineScaleSet(String, String, String, String, IDictionary<String, String>, Sku, Plan, UpgradePolicy, AutomaticRepairsPolicy, VirtualMachineScaleSetVMProfile, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Int32>, SubResource, SubResource, AdditionalCapabilities, ScaleInPolicy, VirtualMachineScaleSetIdentity, IList<String>, ExtendedLocation)

Initializes a new instance of the VirtualMachineScaleSet class.

public VirtualMachineScaleSet (string location, string id, string name, string type, System.Collections.Generic.IDictionary<string,string> tags, Microsoft.Azure.Management.Compute.Models.Sku sku, Microsoft.Azure.Management.Compute.Models.Plan plan, Microsoft.Azure.Management.Compute.Models.UpgradePolicy upgradePolicy, Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy automaticRepairsPolicy, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile virtualMachineProfile, string provisioningState, bool? overprovision, bool? doNotRunExtensionsOnOverprovisionedVMs, string uniqueId, bool? singlePlacementGroup, bool? zoneBalance, int? platformFaultDomainCount, Microsoft.Azure.Management.Compute.Models.SubResource proximityPlacementGroup, Microsoft.Azure.Management.Compute.Models.SubResource hostGroup, Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities additionalCapabilities, Microsoft.Azure.Management.Compute.Models.ScaleInPolicy scaleInPolicy, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity identity, System.Collections.Generic.IList<string> zones, Microsoft.Azure.Management.Compute.Models.ExtendedLocation extendedLocation);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Models.Sku * Microsoft.Azure.Management.Compute.Models.Plan * Microsoft.Azure.Management.Compute.Models.UpgradePolicy * Microsoft.Azure.Management.Compute.Models.AutomaticRepairsPolicy * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProfile * string * Nullable<bool> * Nullable<bool> * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.SubResource * Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Models.ScaleInPolicy * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.Compute.Models.ExtendedLocation -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSet
Public Sub New (location As String, id As String, name As String, type As String, tags As IDictionary(Of String, String), sku As Sku, plan As Plan, upgradePolicy As UpgradePolicy, automaticRepairsPolicy As AutomaticRepairsPolicy, virtualMachineProfile As VirtualMachineScaleSetVMProfile, provisioningState As String, overprovision As Nullable(Of Boolean), doNotRunExtensionsOnOverprovisionedVMs As Nullable(Of Boolean), uniqueId As String, singlePlacementGroup As Nullable(Of Boolean), zoneBalance As Nullable(Of Boolean), platformFaultDomainCount As Nullable(Of Integer), proximityPlacementGroup As SubResource, hostGroup As SubResource, additionalCapabilities As AdditionalCapabilities, scaleInPolicy As ScaleInPolicy, identity As VirtualMachineScaleSetIdentity, zones As IList(Of String), extendedLocation As ExtendedLocation)

Parameters

location
String

Resource location

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

sku
Sku

The virtual machine scale set sku.

plan
Plan

Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.

upgradePolicy
UpgradePolicy

The upgrade policy.

automaticRepairsPolicy
AutomaticRepairsPolicy

Policy for automatic repairs.

virtualMachineProfile
VirtualMachineScaleSetVMProfile

The virtual machine profile.

provisioningState
String

The provisioning state, which only appears in the response.

overprovision
Nullable<Boolean>

Specifies whether the Virtual Machine Scale Set should be overprovisioned.

doNotRunExtensionsOnOverprovisionedVMs
Nullable<Boolean>

When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs.

uniqueId
String

Specifies the ID which uniquely identifies a Virtual Machine Scale Set.

singlePlacementGroup
Nullable<Boolean>

When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true.

zoneBalance
Nullable<Boolean>

Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage.

platformFaultDomainCount
Nullable<Int32>

Fault Domain count for each placement group.

proximityPlacementGroup
SubResource

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

hostGroup
SubResource

Specifies information about the dedicated host group that the virtual machine scale set resides in. <br><br>Minimum api-version: 2020-06-01.

additionalCapabilities
AdditionalCapabilities

Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type.

scaleInPolicy
ScaleInPolicy

Specifies the scale-in policy that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled-in.

identity
VirtualMachineScaleSetIdentity

The identity of the virtual machine scale set, if configured.

zones
IList<String>

The virtual machine scale set zones. NOTE: Availability zones can only be set when you create the scale set

extendedLocation
ExtendedLocation

The extended location of the Virtual Machine Scale Set.

Applies to