Share via


VirtualMachineScaleSetInner Constructors

Definition

Overloads

VirtualMachineScaleSetInner()

Initializes a new instance of the VirtualMachineScaleSetInner class.

VirtualMachineScaleSetInner(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 VirtualMachineScaleSetInner class.

VirtualMachineScaleSetInner()

Initializes a new instance of the VirtualMachineScaleSetInner class.

public VirtualMachineScaleSetInner ();
Public Sub New ()

Applies to

VirtualMachineScaleSetInner(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 VirtualMachineScaleSetInner class.

public VirtualMachineScaleSetInner (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.Compute.Fluent.Models.Sku sku = default, Microsoft.Azure.Management.Compute.Fluent.Models.Plan plan = default, Microsoft.Azure.Management.Compute.Fluent.Models.UpgradePolicy upgradePolicy = default, Microsoft.Azure.Management.Compute.Fluent.Models.AutomaticRepairsPolicy automaticRepairsPolicy = default, Microsoft.Azure.Management.Compute.Fluent.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.ResourceManager.Fluent.SubResource proximityPlacementGroup = default, Microsoft.Azure.Management.ResourceManager.Fluent.SubResource hostGroup = default, Microsoft.Azure.Management.Compute.Fluent.Models.AdditionalCapabilities additionalCapabilities = default, Microsoft.Azure.Management.Compute.Fluent.Models.ScaleInPolicy scaleInPolicy = default, Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetIdentity identity = default, System.Collections.Generic.IList<string> zones = default);
new Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetInner : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Fluent.Models.Sku * Microsoft.Azure.Management.Compute.Fluent.Models.Plan * Microsoft.Azure.Management.Compute.Fluent.Models.UpgradePolicy * Microsoft.Azure.Management.Compute.Fluent.Models.AutomaticRepairsPolicy * Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetVMProfile * string * Nullable<bool> * Nullable<bool> * string * Nullable<bool> * Nullable<bool> * Nullable<int> * Microsoft.Azure.Management.ResourceManager.Fluent.SubResource * Microsoft.Azure.Management.ResourceManager.Fluent.SubResource * Microsoft.Azure.Management.Compute.Fluent.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Fluent.Models.ScaleInPolicy * Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetIdentity * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetInner
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 identity As VirtualMachineScaleSetIdentity = Nothing, Optional zones As IList(Of String) = Nothing)

Parameters

location
String
id
String
name
String
type
String
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