Dela via


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>, VirtualMachineIdentity)

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

Parameters

location
String

Resource location

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

instanceId
String

The virtual machine instance ID.

sku
Sku

The virtual machine SKU.

latestModelApplied
Nullable<Boolean>

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

vmId
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
String

The provisioning state, which only appears in the response.

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

Parameters

location
String

Resource location

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

instanceId
String

The virtual machine instance ID.

sku
Sku

The virtual machine SKU.

latestModelApplied
Nullable<Boolean>

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

vmId
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
String

The provisioning state, which only appears in the response.

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

Parameters

location
String

Resource location

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

instanceId
String

The virtual machine instance ID.

sku
Sku

The virtual machine SKU.

latestModelApplied
Nullable<Boolean>

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

vmId
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
String

The provisioning state, which only appears in the response.

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

instanceId
String

The virtual machine instance ID.

sku
Sku

The virtual machine SKU.

latestModelApplied
Nullable<Boolean>

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

vmId
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
String

The provisioning state, which only appears in the response.

licenseType
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
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
IList<VirtualMachineExtension>

The virtual machine child extension resources.

zones
IList<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>, VirtualMachineIdentity)

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, Microsoft.Azure.Management.Compute.Models.VirtualMachineIdentity identity = 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.VirtualMachineIdentity -> 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, Optional identity As VirtualMachineIdentity = Nothing)

Parameters

location
String

Resource location

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

instanceId
String

The virtual machine instance ID.

sku
Sku

The virtual machine SKU.

latestModelApplied
Nullable<Boolean>

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

vmId
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. 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. For more information on Azure planned maintenance, see Maintenance and updates for Virtual Machines in Azure. Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set.

provisioningState
String

The provisioning state, which only appears in the response.

licenseType
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
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
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
IList<VirtualMachineExtension>

The virtual machine child extension resources.

zones
IList<String>

The virtual machine zones.

identity
VirtualMachineIdentity

The identity of the virtual machine, if configured.

Applies to