VirtualMachineScaleSetVM Constructors

Definition

Overloads

VirtualMachineScaleSetVM()

Initializes a new instance of the VirtualMachineScaleSetVM class.

VirtualMachineScaleSetVM(String, String, String, String, IDictionary<String,String>, String, Sku, Nullable<Boolean>, String, VirtualMachineScaleSetVMInstanceView, HardwareProfile, StorageProfile, AdditionalCapabilities, OSProfile, SecurityProfile, NetworkProfile, VirtualMachineScaleSetVMNetworkProfileConfiguration, DiagnosticsProfile, SubResource, String, String, String, VirtualMachineScaleSetVMProtectionPolicy)

Initializes a new instance of the VirtualMachineScaleSetVM class.

VirtualMachineScaleSetVM(String, String, String, String, IDictionary<String,String>, String, Sku, Nullable<Boolean>, String, VirtualMachineScaleSetVMInstanceView, HardwareProfile, StorageProfile, AdditionalCapabilities, OSProfile, SecurityProfile, NetworkProfile, VirtualMachineScaleSetVMNetworkProfileConfiguration, DiagnosticsProfile, SubResource, String, String, String, VirtualMachineScaleSetVMProtectionPolicy, Plan)

Initializes a new instance of the VirtualMachineScaleSetVM class.

VirtualMachineScaleSetVM(String, String, String, String, IDictionary<String,String>, String, Sku, Nullable<Boolean>, String, VirtualMachineScaleSetVMInstanceView, HardwareProfile, StorageProfile, AdditionalCapabilities, OSProfile, SecurityProfile, NetworkProfile, VirtualMachineScaleSetVMNetworkProfileConfiguration, DiagnosticsProfile, SubResource, String, String, String, VirtualMachineScaleSetVMProtectionPolicy, Plan, IList<VirtualMachineExtension>)

Initializes a new instance of the VirtualMachineScaleSetVM class.

VirtualMachineScaleSetVM(String, String, String, String, IDictionary<String,String>, String, Sku, Nullable<Boolean>, String, VirtualMachineScaleSetVMInstanceView, HardwareProfile, StorageProfile, AdditionalCapabilities, OSProfile, SecurityProfile, NetworkProfile, VirtualMachineScaleSetVMNetworkProfileConfiguration, DiagnosticsProfile, SubResource, String, String, String, VirtualMachineScaleSetVMProtectionPolicy, Plan, IList<VirtualMachineExtension>, IList<String>)

Initializes a new instance of the VirtualMachineScaleSetVM class.

VirtualMachineScaleSetVM(String, String, String, String, IDictionary<String,String>, String, Sku, Nullable<Boolean>, String, VirtualMachineScaleSetVMInstanceView, HardwareProfile, StorageProfile, AdditionalCapabilities, OSProfile, SecurityProfile, NetworkProfile, VirtualMachineScaleSetVMNetworkProfileConfiguration, DiagnosticsProfile, SubResource, String, String, String, VirtualMachineScaleSetVMProtectionPolicy, String, Plan, IList<VirtualMachineExtension>, IList<String>)

Initializes a new instance of the VirtualMachineScaleSetVM class.

VirtualMachineScaleSetVM()

Initializes a new instance of the VirtualMachineScaleSetVM class.

public VirtualMachineScaleSetVM ();
Public Sub New ()

Applies to

VirtualMachineScaleSetVM(String, String, String, String, IDictionary<String,String>, String, Sku, Nullable<Boolean>, String, VirtualMachineScaleSetVMInstanceView, HardwareProfile, StorageProfile, AdditionalCapabilities, OSProfile, SecurityProfile, NetworkProfile, VirtualMachineScaleSetVMNetworkProfileConfiguration, DiagnosticsProfile, SubResource, String, String, String, VirtualMachineScaleSetVMProtectionPolicy)

Initializes a new instance of the VirtualMachineScaleSetVM class.

public VirtualMachineScaleSetVM (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string instanceId = default, Microsoft.Azure.Management.Compute.Models.Sku sku = default, bool? latestModelApplied = default, string vmId = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMInstanceView instanceView = default, Microsoft.Azure.Management.Compute.Models.HardwareProfile hardwareProfile = default, Microsoft.Azure.Management.Compute.Models.StorageProfile storageProfile = default, Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities additionalCapabilities = default, Microsoft.Azure.Management.Compute.Models.OSProfile osProfile = default, Microsoft.Azure.Management.Compute.Models.SecurityProfile securityProfile = default, Microsoft.Azure.Management.Compute.Models.NetworkProfile networkProfile = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMNetworkProfileConfiguration networkProfileConfiguration = default, Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile diagnosticsProfile = default, Microsoft.Azure.Management.Compute.Models.SubResource availabilitySet = default, string provisioningState = default, string licenseType = default, string modelDefinitionApplied = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProtectionPolicy protectionPolicy = default);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVM : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * Microsoft.Azure.Management.Compute.Models.Sku * Nullable<bool> * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMInstanceView * Microsoft.Azure.Management.Compute.Models.HardwareProfile * Microsoft.Azure.Management.Compute.Models.StorageProfile * Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Models.OSProfile * Microsoft.Azure.Management.Compute.Models.SecurityProfile * Microsoft.Azure.Management.Compute.Models.NetworkProfile * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMNetworkProfileConfiguration * Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile * Microsoft.Azure.Management.Compute.Models.SubResource * string * string * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProtectionPolicy -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVM
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 instanceId As String = Nothing, Optional sku As Sku = Nothing, Optional latestModelApplied As Nullable(Of Boolean) = Nothing, Optional vmId As String = Nothing, Optional instanceView As VirtualMachineScaleSetVMInstanceView = Nothing, Optional hardwareProfile As HardwareProfile = Nothing, Optional storageProfile As StorageProfile = Nothing, Optional additionalCapabilities As AdditionalCapabilities = Nothing, Optional osProfile As OSProfile = Nothing, Optional securityProfile As SecurityProfile = Nothing, Optional networkProfile As NetworkProfile = Nothing, Optional networkProfileConfiguration As VirtualMachineScaleSetVMNetworkProfileConfiguration = Nothing, Optional diagnosticsProfile As DiagnosticsProfile = Nothing, Optional availabilitySet As SubResource = Nothing, Optional provisioningState As String = Nothing, Optional licenseType As String = Nothing, Optional modelDefinitionApplied As String = Nothing, Optional protectionPolicy As VirtualMachineScaleSetVMProtectionPolicy = Nothing)

Parameters

location
System.String

Resource location

id
System.String

Resource Id

name
System.String

Resource name

type
System.String

Resource type

tags
System.Collections.Generic.IDictionary<System.String,System.String>

Resource tags

instanceId
System.String

The virtual machine instance ID.

sku
Sku

The virtual machine SKU.

latestModelApplied
System.Nullable<System.Boolean>

Specifies whether the latest model has been applied to the virtual machine.

vmId
System.String

Azure VM unique ID.

instanceView
VirtualMachineScaleSetVMInstanceView

The virtual machine instance view.

hardwareProfile
HardwareProfile

Specifies the hardware settings for the virtual machine.

storageProfile
StorageProfile

Specifies the storage settings for the virtual machine disks.

additionalCapabilities
AdditionalCapabilities

Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type.

osProfile
OSProfile

Specifies the operating system settings for the virtual machine.

securityProfile
SecurityProfile

Specifies the Security related profile settings for the virtual machine.

networkProfile
NetworkProfile

Specifies the network interfaces of the virtual machine.

networkProfileConfiguration
VirtualMachineScaleSetVMNetworkProfileConfiguration

Specifies the network profile configuration of the virtual machine.

diagnosticsProfile
DiagnosticsProfile

Specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15.

availabilitySet
SubResource

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. <br><br> For more information on Azure planned maintenance, see Maintenance and updates 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.

provisioningState
System.String

The provisioning state, which only appears in the response.

licenseType
System.String

Specifies that the image or disk that is being used was licensed on-premises. <br><br> Possible values for Windows Server operating system are: <br><br> Windows_Client <br><br> Windows_Server <br><br> Possible values for Linux Server operating system are: <br><br> RHEL_BYOS (for RHEL) <br><br> SLES_BYOS (for SUSE) <br><br> For more information, see Azure Hybrid Use Benefit for Windows Server <br><br> Azure Hybrid Use Benefit for Linux Server <br><br> Minimum api-version: 2015-06-15

modelDefinitionApplied
System.String

Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine.

protectionPolicy
VirtualMachineScaleSetVMProtectionPolicy

Specifies the protection policy of the virtual machine.

Applies to

VirtualMachineScaleSetVM(String, String, String, String, IDictionary<String,String>, String, Sku, Nullable<Boolean>, String, VirtualMachineScaleSetVMInstanceView, HardwareProfile, StorageProfile, AdditionalCapabilities, OSProfile, SecurityProfile, NetworkProfile, VirtualMachineScaleSetVMNetworkProfileConfiguration, DiagnosticsProfile, SubResource, String, String, String, VirtualMachineScaleSetVMProtectionPolicy, Plan)

Initializes a new instance of the VirtualMachineScaleSetVM class.

public VirtualMachineScaleSetVM (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string instanceId = default, Microsoft.Azure.Management.Compute.Models.Sku sku = default, bool? latestModelApplied = default, string vmId = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMInstanceView instanceView = default, Microsoft.Azure.Management.Compute.Models.HardwareProfile hardwareProfile = default, Microsoft.Azure.Management.Compute.Models.StorageProfile storageProfile = default, Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities additionalCapabilities = default, Microsoft.Azure.Management.Compute.Models.OSProfile osProfile = default, Microsoft.Azure.Management.Compute.Models.SecurityProfile securityProfile = default, Microsoft.Azure.Management.Compute.Models.NetworkProfile networkProfile = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMNetworkProfileConfiguration networkProfileConfiguration = default, Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile diagnosticsProfile = default, Microsoft.Azure.Management.Compute.Models.SubResource availabilitySet = default, string provisioningState = default, string licenseType = default, string modelDefinitionApplied = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProtectionPolicy protectionPolicy = default, Microsoft.Azure.Management.Compute.Models.Plan plan = default);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVM : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * Microsoft.Azure.Management.Compute.Models.Sku * Nullable<bool> * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMInstanceView * Microsoft.Azure.Management.Compute.Models.HardwareProfile * Microsoft.Azure.Management.Compute.Models.StorageProfile * Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Models.OSProfile * Microsoft.Azure.Management.Compute.Models.SecurityProfile * Microsoft.Azure.Management.Compute.Models.NetworkProfile * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMNetworkProfileConfiguration * Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile * Microsoft.Azure.Management.Compute.Models.SubResource * string * string * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProtectionPolicy * Microsoft.Azure.Management.Compute.Models.Plan -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVM
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 instanceId As String = Nothing, Optional sku As Sku = Nothing, Optional latestModelApplied As Nullable(Of Boolean) = Nothing, Optional vmId As String = Nothing, Optional instanceView As VirtualMachineScaleSetVMInstanceView = Nothing, Optional hardwareProfile As HardwareProfile = Nothing, Optional storageProfile As StorageProfile = Nothing, Optional additionalCapabilities As AdditionalCapabilities = Nothing, Optional osProfile As OSProfile = Nothing, Optional securityProfile As SecurityProfile = Nothing, Optional networkProfile As NetworkProfile = Nothing, Optional networkProfileConfiguration As VirtualMachineScaleSetVMNetworkProfileConfiguration = Nothing, Optional diagnosticsProfile As DiagnosticsProfile = Nothing, Optional availabilitySet As SubResource = Nothing, Optional provisioningState As String = Nothing, Optional licenseType As String = Nothing, Optional modelDefinitionApplied As String = Nothing, Optional protectionPolicy As VirtualMachineScaleSetVMProtectionPolicy = Nothing, Optional plan As Plan = Nothing)

Parameters

location
System.String

Resource location

id
System.String

Resource Id

name
System.String

Resource name

type
System.String

Resource type

tags
System.Collections.Generic.IDictionary<System.String,System.String>

Resource tags

instanceId
System.String

The virtual machine instance ID.

sku
Sku

The virtual machine SKU.

latestModelApplied
System.Nullable<System.Boolean>

Specifies whether the latest model has been applied to the virtual machine.

vmId
System.String

Azure VM unique ID.

instanceView
VirtualMachineScaleSetVMInstanceView

The virtual machine instance view.

hardwareProfile
HardwareProfile

Specifies the hardware settings for the virtual machine.

storageProfile
StorageProfile

Specifies the storage settings for the virtual machine disks.

additionalCapabilities
AdditionalCapabilities

Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type.

osProfile
OSProfile

Specifies the operating system settings for the virtual machine.

securityProfile
SecurityProfile

Specifies the Security related profile settings for the virtual machine.

networkProfile
NetworkProfile

Specifies the network interfaces of the virtual machine.

networkProfileConfiguration
VirtualMachineScaleSetVMNetworkProfileConfiguration

Specifies the network profile configuration of the virtual machine.

diagnosticsProfile
DiagnosticsProfile

Specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15.

availabilitySet
SubResource

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. <br><br> For more information on Azure planned maintenance, see Maintenance and updates 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.

provisioningState
System.String

The provisioning state, which only appears in the response.

licenseType
System.String

Specifies that the image or disk that is being used was licensed on-premises. <br><br> Possible values for Windows Server operating system are: <br><br> Windows_Client <br><br> Windows_Server <br><br> Possible values for Linux Server operating system are: <br><br> RHEL_BYOS (for RHEL) <br><br> SLES_BYOS (for SUSE) <br><br> For more information, see Azure Hybrid Use Benefit for Windows Server <br><br> Azure Hybrid Use Benefit for Linux Server <br><br> Minimum api-version: 2015-06-15

modelDefinitionApplied
System.String

Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine.

protectionPolicy
VirtualMachineScaleSetVMProtectionPolicy

Specifies the protection policy of the virtual machine.

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.

Applies to

VirtualMachineScaleSetVM(String, String, String, String, IDictionary<String,String>, String, Sku, Nullable<Boolean>, String, VirtualMachineScaleSetVMInstanceView, HardwareProfile, StorageProfile, AdditionalCapabilities, OSProfile, SecurityProfile, NetworkProfile, VirtualMachineScaleSetVMNetworkProfileConfiguration, DiagnosticsProfile, SubResource, String, String, String, VirtualMachineScaleSetVMProtectionPolicy, Plan, IList<VirtualMachineExtension>)

Initializes a new instance of the VirtualMachineScaleSetVM class.

public VirtualMachineScaleSetVM (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string instanceId = default, Microsoft.Azure.Management.Compute.Models.Sku sku = default, bool? latestModelApplied = default, string vmId = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMInstanceView instanceView = default, Microsoft.Azure.Management.Compute.Models.HardwareProfile hardwareProfile = default, Microsoft.Azure.Management.Compute.Models.StorageProfile storageProfile = default, Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities additionalCapabilities = default, Microsoft.Azure.Management.Compute.Models.OSProfile osProfile = default, Microsoft.Azure.Management.Compute.Models.SecurityProfile securityProfile = default, Microsoft.Azure.Management.Compute.Models.NetworkProfile networkProfile = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMNetworkProfileConfiguration networkProfileConfiguration = default, Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile diagnosticsProfile = default, Microsoft.Azure.Management.Compute.Models.SubResource availabilitySet = default, string provisioningState = default, string licenseType = default, string modelDefinitionApplied = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProtectionPolicy protectionPolicy = default, Microsoft.Azure.Management.Compute.Models.Plan plan = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.VirtualMachineExtension> resources = default);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVM : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * Microsoft.Azure.Management.Compute.Models.Sku * Nullable<bool> * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMInstanceView * Microsoft.Azure.Management.Compute.Models.HardwareProfile * Microsoft.Azure.Management.Compute.Models.StorageProfile * Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Models.OSProfile * Microsoft.Azure.Management.Compute.Models.SecurityProfile * Microsoft.Azure.Management.Compute.Models.NetworkProfile * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMNetworkProfileConfiguration * Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile * Microsoft.Azure.Management.Compute.Models.SubResource * string * string * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProtectionPolicy * Microsoft.Azure.Management.Compute.Models.Plan * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.VirtualMachineExtension> -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVM
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 instanceId As String = Nothing, Optional sku As Sku = Nothing, Optional latestModelApplied As Nullable(Of Boolean) = Nothing, Optional vmId As String = Nothing, Optional instanceView As VirtualMachineScaleSetVMInstanceView = Nothing, Optional hardwareProfile As HardwareProfile = Nothing, Optional storageProfile As StorageProfile = Nothing, Optional additionalCapabilities As AdditionalCapabilities = Nothing, Optional osProfile As OSProfile = Nothing, Optional securityProfile As SecurityProfile = Nothing, Optional networkProfile As NetworkProfile = Nothing, Optional networkProfileConfiguration As VirtualMachineScaleSetVMNetworkProfileConfiguration = Nothing, Optional diagnosticsProfile As DiagnosticsProfile = Nothing, Optional availabilitySet As SubResource = Nothing, Optional provisioningState As String = Nothing, Optional licenseType As String = Nothing, Optional modelDefinitionApplied As String = Nothing, Optional protectionPolicy As VirtualMachineScaleSetVMProtectionPolicy = Nothing, Optional plan As Plan = Nothing, Optional resources As IList(Of VirtualMachineExtension) = Nothing)

Parameters

location
System.String

Resource location

id
System.String

Resource Id

name
System.String

Resource name

type
System.String

Resource type

tags
System.Collections.Generic.IDictionary<System.String,System.String>

Resource tags

instanceId
System.String

The virtual machine instance ID.

sku
Sku

The virtual machine SKU.

latestModelApplied
System.Nullable<System.Boolean>

Specifies whether the latest model has been applied to the virtual machine.

vmId
System.String

Azure VM unique ID.

instanceView
VirtualMachineScaleSetVMInstanceView

The virtual machine instance view.

hardwareProfile
HardwareProfile

Specifies the hardware settings for the virtual machine.

storageProfile
StorageProfile

Specifies the storage settings for the virtual machine disks.

additionalCapabilities
AdditionalCapabilities

Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type.

osProfile
OSProfile

Specifies the operating system settings for the virtual machine.

securityProfile
SecurityProfile

Specifies the Security related profile settings for the virtual machine.

networkProfile
NetworkProfile

Specifies the network interfaces of the virtual machine.

networkProfileConfiguration
VirtualMachineScaleSetVMNetworkProfileConfiguration

Specifies the network profile configuration of the virtual machine.

diagnosticsProfile
DiagnosticsProfile

Specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15.

availabilitySet
SubResource

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. <br><br> For more information on Azure planned maintenance, see Maintenance and updates 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.

provisioningState
System.String

The provisioning state, which only appears in the response.

licenseType
System.String

Specifies that the image or disk that is being used was licensed on-premises. <br><br> Possible values for Windows Server operating system are: <br><br> Windows_Client <br><br> Windows_Server <br><br> Possible values for Linux Server operating system are: <br><br> RHEL_BYOS (for RHEL) <br><br> SLES_BYOS (for SUSE) <br><br> For more information, see Azure Hybrid Use Benefit for Windows Server <br><br> Azure Hybrid Use Benefit for Linux Server <br><br> Minimum api-version: 2015-06-15

modelDefinitionApplied
System.String

Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine.

protectionPolicy
VirtualMachineScaleSetVMProtectionPolicy

Specifies the protection policy of the virtual machine.

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.

resources
System.Collections.Generic.IList<VirtualMachineExtension>

The virtual machine child extension resources.

Applies to

VirtualMachineScaleSetVM(String, String, String, String, IDictionary<String,String>, String, Sku, Nullable<Boolean>, String, VirtualMachineScaleSetVMInstanceView, HardwareProfile, StorageProfile, AdditionalCapabilities, OSProfile, SecurityProfile, NetworkProfile, VirtualMachineScaleSetVMNetworkProfileConfiguration, DiagnosticsProfile, SubResource, String, String, String, VirtualMachineScaleSetVMProtectionPolicy, Plan, IList<VirtualMachineExtension>, IList<String>)

Initializes a new instance of the VirtualMachineScaleSetVM class.

public VirtualMachineScaleSetVM (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string instanceId = default, Microsoft.Azure.Management.Compute.Models.Sku sku = default, bool? latestModelApplied = default, string vmId = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMInstanceView instanceView = default, Microsoft.Azure.Management.Compute.Models.HardwareProfile hardwareProfile = default, Microsoft.Azure.Management.Compute.Models.StorageProfile storageProfile = default, Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities additionalCapabilities = default, Microsoft.Azure.Management.Compute.Models.OSProfile osProfile = default, Microsoft.Azure.Management.Compute.Models.SecurityProfile securityProfile = default, Microsoft.Azure.Management.Compute.Models.NetworkProfile networkProfile = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMNetworkProfileConfiguration networkProfileConfiguration = default, Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile diagnosticsProfile = default, Microsoft.Azure.Management.Compute.Models.SubResource availabilitySet = default, string provisioningState = default, string licenseType = default, string modelDefinitionApplied = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProtectionPolicy protectionPolicy = default, Microsoft.Azure.Management.Compute.Models.Plan plan = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.VirtualMachineExtension> resources = default, System.Collections.Generic.IList<string> zones = default);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVM : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * Microsoft.Azure.Management.Compute.Models.Sku * Nullable<bool> * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMInstanceView * Microsoft.Azure.Management.Compute.Models.HardwareProfile * Microsoft.Azure.Management.Compute.Models.StorageProfile * Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Models.OSProfile * Microsoft.Azure.Management.Compute.Models.SecurityProfile * Microsoft.Azure.Management.Compute.Models.NetworkProfile * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMNetworkProfileConfiguration * Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile * Microsoft.Azure.Management.Compute.Models.SubResource * string * string * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProtectionPolicy * Microsoft.Azure.Management.Compute.Models.Plan * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.VirtualMachineExtension> * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVM
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 instanceId As String = Nothing, Optional sku As Sku = Nothing, Optional latestModelApplied As Nullable(Of Boolean) = Nothing, Optional vmId As String = Nothing, Optional instanceView As VirtualMachineScaleSetVMInstanceView = Nothing, Optional hardwareProfile As HardwareProfile = Nothing, Optional storageProfile As StorageProfile = Nothing, Optional additionalCapabilities As AdditionalCapabilities = Nothing, Optional osProfile As OSProfile = Nothing, Optional securityProfile As SecurityProfile = Nothing, Optional networkProfile As NetworkProfile = Nothing, Optional networkProfileConfiguration As VirtualMachineScaleSetVMNetworkProfileConfiguration = Nothing, Optional diagnosticsProfile As DiagnosticsProfile = Nothing, Optional availabilitySet As SubResource = Nothing, Optional provisioningState As String = Nothing, Optional licenseType As String = Nothing, Optional modelDefinitionApplied As String = Nothing, Optional protectionPolicy As VirtualMachineScaleSetVMProtectionPolicy = Nothing, Optional plan As Plan = Nothing, Optional resources As IList(Of VirtualMachineExtension) = Nothing, Optional zones As IList(Of String) = Nothing)

Parameters

location
System.String

Resource location

id
System.String

Resource Id

name
System.String

Resource name

type
System.String

Resource type

tags
System.Collections.Generic.IDictionary<System.String,System.String>

Resource tags

instanceId
System.String

The virtual machine instance ID.

sku
Sku

The virtual machine SKU.

latestModelApplied
System.Nullable<System.Boolean>

Specifies whether the latest model has been applied to the virtual machine.

vmId
System.String

Azure VM unique ID.

instanceView
VirtualMachineScaleSetVMInstanceView

The virtual machine instance view.

hardwareProfile
HardwareProfile

Specifies the hardware settings for the virtual machine.

storageProfile
StorageProfile

Specifies the storage settings for the virtual machine disks.

additionalCapabilities
AdditionalCapabilities

Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type.

osProfile
OSProfile

Specifies the operating system settings for the virtual machine.

securityProfile
SecurityProfile

Specifies the Security related profile settings for the virtual machine.

networkProfile
NetworkProfile

Specifies the network interfaces of the virtual machine.

networkProfileConfiguration
VirtualMachineScaleSetVMNetworkProfileConfiguration

Specifies the network profile configuration of the virtual machine.

diagnosticsProfile
DiagnosticsProfile

Specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15.

availabilitySet
SubResource

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. <br><br> For more information on Azure planned maintenance, see Maintenance and updates 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.

provisioningState
System.String

The provisioning state, which only appears in the response.

licenseType
System.String

Specifies that the image or disk that is being used was licensed on-premises. <br><br> Possible values for Windows Server operating system are: <br><br> Windows_Client <br><br> Windows_Server <br><br> Possible values for Linux Server operating system are: <br><br> RHEL_BYOS (for RHEL) <br><br> SLES_BYOS (for SUSE) <br><br> For more information, see Azure Hybrid Use Benefit for Windows Server <br><br> Azure Hybrid Use Benefit for Linux Server <br><br> Minimum api-version: 2015-06-15

modelDefinitionApplied
System.String

Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine.

protectionPolicy
VirtualMachineScaleSetVMProtectionPolicy

Specifies the protection policy of the virtual machine.

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.

resources
System.Collections.Generic.IList<VirtualMachineExtension>

The virtual machine child extension resources.

zones
System.Collections.Generic.IList<System.String>

The virtual machine zones.

Applies to

VirtualMachineScaleSetVM(String, String, String, String, IDictionary<String,String>, String, Sku, Nullable<Boolean>, String, VirtualMachineScaleSetVMInstanceView, HardwareProfile, StorageProfile, AdditionalCapabilities, OSProfile, SecurityProfile, NetworkProfile, VirtualMachineScaleSetVMNetworkProfileConfiguration, DiagnosticsProfile, SubResource, String, String, String, VirtualMachineScaleSetVMProtectionPolicy, String, Plan, IList<VirtualMachineExtension>, IList<String>)

Initializes a new instance of the VirtualMachineScaleSetVM class.

public VirtualMachineScaleSetVM (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string instanceId = default, Microsoft.Azure.Management.Compute.Models.Sku sku = default, bool? latestModelApplied = default, string vmId = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMInstanceView instanceView = default, Microsoft.Azure.Management.Compute.Models.HardwareProfile hardwareProfile = default, Microsoft.Azure.Management.Compute.Models.StorageProfile storageProfile = default, Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities additionalCapabilities = default, Microsoft.Azure.Management.Compute.Models.OSProfile osProfile = default, Microsoft.Azure.Management.Compute.Models.SecurityProfile securityProfile = default, Microsoft.Azure.Management.Compute.Models.NetworkProfile networkProfile = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMNetworkProfileConfiguration networkProfileConfiguration = default, Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile diagnosticsProfile = default, Microsoft.Azure.Management.Compute.Models.SubResource availabilitySet = default, string provisioningState = default, string licenseType = default, string modelDefinitionApplied = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProtectionPolicy protectionPolicy = default, string userData = default, Microsoft.Azure.Management.Compute.Models.Plan plan = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.VirtualMachineExtension> resources = default, System.Collections.Generic.IList<string> zones = default);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVM : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * Microsoft.Azure.Management.Compute.Models.Sku * Nullable<bool> * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMInstanceView * Microsoft.Azure.Management.Compute.Models.HardwareProfile * Microsoft.Azure.Management.Compute.Models.StorageProfile * Microsoft.Azure.Management.Compute.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Models.OSProfile * Microsoft.Azure.Management.Compute.Models.SecurityProfile * Microsoft.Azure.Management.Compute.Models.NetworkProfile * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMNetworkProfileConfiguration * Microsoft.Azure.Management.Compute.Models.DiagnosticsProfile * Microsoft.Azure.Management.Compute.Models.SubResource * string * string * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMProtectionPolicy * string * Microsoft.Azure.Management.Compute.Models.Plan * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.VirtualMachineExtension> * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVM
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 instanceId As String = Nothing, Optional sku As Sku = Nothing, Optional latestModelApplied As Nullable(Of Boolean) = Nothing, Optional vmId As String = Nothing, Optional instanceView As VirtualMachineScaleSetVMInstanceView = Nothing, Optional hardwareProfile As HardwareProfile = Nothing, Optional storageProfile As StorageProfile = Nothing, Optional additionalCapabilities As AdditionalCapabilities = Nothing, Optional osProfile As OSProfile = Nothing, Optional securityProfile As SecurityProfile = Nothing, Optional networkProfile As NetworkProfile = Nothing, Optional networkProfileConfiguration As VirtualMachineScaleSetVMNetworkProfileConfiguration = Nothing, Optional diagnosticsProfile As DiagnosticsProfile = Nothing, Optional availabilitySet As SubResource = Nothing, Optional provisioningState As String = Nothing, Optional licenseType As String = Nothing, Optional modelDefinitionApplied As String = Nothing, Optional protectionPolicy As VirtualMachineScaleSetVMProtectionPolicy = Nothing, Optional userData As String = Nothing, Optional plan As Plan = Nothing, Optional resources As IList(Of VirtualMachineExtension) = Nothing, Optional zones As IList(Of String) = Nothing)

Parameters

location
System.String

Resource location

id
System.String

Resource Id

name
System.String

Resource name

type
System.String

Resource type

tags
System.Collections.Generic.IDictionary<System.String,System.String>

Resource tags

instanceId
System.String

The virtual machine instance ID.

sku
Sku

The virtual machine SKU.

latestModelApplied
System.Nullable<System.Boolean>

Specifies whether the latest model has been applied to the virtual machine.

vmId
System.String

Azure VM unique ID.

instanceView
VirtualMachineScaleSetVMInstanceView

The virtual machine instance view.

hardwareProfile
HardwareProfile

Specifies the hardware settings for the virtual machine.

storageProfile
StorageProfile

Specifies the storage settings for the virtual machine disks.

additionalCapabilities
AdditionalCapabilities

Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type.

osProfile
OSProfile

Specifies the operating system settings for the virtual machine.

securityProfile
SecurityProfile

Specifies the Security related profile settings for the virtual machine.

networkProfile
NetworkProfile

Specifies the network interfaces of the virtual machine.

networkProfileConfiguration
VirtualMachineScaleSetVMNetworkProfileConfiguration

Specifies the network profile configuration of the virtual machine.

diagnosticsProfile
DiagnosticsProfile

Specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15.

availabilitySet
SubResource

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. <br><br> For more information on Azure planned maintenance, see Maintenance and updates 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.

provisioningState
System.String

The provisioning state, which only appears in the response.

licenseType
System.String

Specifies that the image or disk that is being used was licensed on-premises. <br><br> Possible values for Windows Server operating system are: <br><br> Windows_Client <br><br> Windows_Server <br><br> Possible values for Linux Server operating system are: <br><br> RHEL_BYOS (for RHEL) <br><br> SLES_BYOS (for SUSE) <br><br> For more information, see Azure Hybrid Use Benefit for Windows Server <br><br> Azure Hybrid Use Benefit for Linux Server <br><br> Minimum api-version: 2015-06-15

modelDefinitionApplied
System.String

Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine.

protectionPolicy
VirtualMachineScaleSetVMProtectionPolicy

Specifies the protection policy of the virtual machine.

userData
System.String

UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. <br><br>Minimum api-version: 2021-03-01

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.

resources
System.Collections.Generic.IList<VirtualMachineExtension>

The virtual machine child extension resources.

zones
System.Collections.Generic.IList<System.String>

The virtual machine zones.

Applies to