你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VirtualMachineScaleSetVM 构造函数

定义

重载

VirtualMachineScaleSetVM()

初始化 VirtualMachineScaleSetVM 类的新实例。

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)

初始化 VirtualMachineScaleSetVM 类的新实例。

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)

初始化 VirtualMachineScaleSetVM 类的新实例。

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

初始化 VirtualMachineScaleSetVM 类的新实例。

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

初始化 VirtualMachineScaleSetVM 类的新实例。

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)

初始化 VirtualMachineScaleSetVM 类的新实例。

VirtualMachineScaleSetVM()

初始化 VirtualMachineScaleSetVM 类的新实例。

public VirtualMachineScaleSetVM ();
Public Sub New ()

适用于

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)

初始化 VirtualMachineScaleSetVM 类的新实例。

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)

参数

location
String

资源位置

id
String

资源 ID

name
String

资源名称

type
String

资源类型

tags
IDictionary<String,String>

资源标记

instanceId
String

虚拟机实例 ID。

sku
Sku

虚拟机 SKU。

latestModelApplied
Nullable<Boolean>

指定是否已将最新模型应用于虚拟机。

vmId
String

Azure VM 唯一 ID。

instanceView
VirtualMachineScaleSetVMInstanceView

虚拟机实例视图。

hardwareProfile
HardwareProfile

指定虚拟机的硬件设置。

storageProfile
StorageProfile

指定虚拟机磁盘的存储设置。

additionalCapabilities
AdditionalCapabilities

指定在规模集中的虚拟机上启用或禁用的其他功能。 例如:虚拟机是否能够支持使用UltraSSD_LRS存储帐户类型附加托管数据磁盘。

osProfile
OSProfile

指定虚拟机的操作系统设置。

securityProfile
SecurityProfile

指定虚拟机的安全相关配置文件设置。

networkProfile
NetworkProfile

指定虚拟机的网络接口。

networkProfileConfiguration
VirtualMachineScaleSetVMNetworkProfileConfiguration

指定虚拟机的网络配置文件配置。

diagnosticsProfile
DiagnosticsProfile

指定启动诊断设置状态。 <br><br>最低 api-version:2015-06-15。

availabilitySet
SubResource

指定虚拟机应分配到的可用性集的相关信息。 将在同一可用性集中指定的虚拟机分配给不同节点,以便尽量提高可用性。 有关可用性集的详细信息,请参阅 可用性集概述。 <br><br> 有关 Azure 计划内维护的详细信息,请参阅 Azure <br><br>中虚拟机的维护和更新目前,只能在创建时将 VM 添加到可用性集。 无法将现有 VM 添加到可用性集。

provisioningState
String

预配状态,仅显示在响应中。

licenseType
String

指定正在使用的映像或磁盘在本地获得许可。 <br><br> Windows Server 操作系统的可能值为:<br><br> Windows_Client <br><br> br Windows_Server <br><br> Linux Server 操作系统的可能值为:<br><br> RHEL_BYOS (for RHEL) <br><br> br SLES_BYOS (for SUSE) <br><br 有关详细信息>,请参阅适用于 Windows Server<的Azure 混合使用权益 br>< 适用于> Linux Server 的 Azure 混合使用权益<br><br> 最低 api-version:2015-06-15

modelDefinitionApplied
String

指定应用于虚拟机的模型是虚拟机规模集的模型还是虚拟机的自定义模型。

protectionPolicy
VirtualMachineScaleSetVMProtectionPolicy

指定虚拟机的保护策略。

适用于

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)

初始化 VirtualMachineScaleSetVM 类的新实例。

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)

参数

location
String

资源位置

id
String

资源 ID

name
String

资源名称

type
String

资源类型

tags
IDictionary<String,String>

资源标记

instanceId
String

虚拟机实例 ID。

sku
Sku

虚拟机 SKU。

latestModelApplied
Nullable<Boolean>

指定是否已将最新模型应用于虚拟机。

vmId
String

Azure VM 唯一 ID。

instanceView
VirtualMachineScaleSetVMInstanceView

虚拟机实例视图。

hardwareProfile
HardwareProfile

指定虚拟机的硬件设置。

storageProfile
StorageProfile

指定虚拟机磁盘的存储设置。

additionalCapabilities
AdditionalCapabilities

指定在规模集中的虚拟机上启用或禁用的其他功能。 例如:虚拟机是否能够支持使用UltraSSD_LRS存储帐户类型附加托管数据磁盘。

osProfile
OSProfile

指定虚拟机的操作系统设置。

securityProfile
SecurityProfile

指定虚拟机的安全相关配置文件设置。

networkProfile
NetworkProfile

指定虚拟机的网络接口。

networkProfileConfiguration
VirtualMachineScaleSetVMNetworkProfileConfiguration

指定虚拟机的网络配置文件配置。

diagnosticsProfile
DiagnosticsProfile

指定启动诊断设置状态。 <br><br>最低 api-version:2015-06-15。

availabilitySet
SubResource

指定虚拟机应分配到的可用性集的相关信息。 将在同一可用性集中指定的虚拟机分配给不同节点,以便尽量提高可用性。 有关可用性集的详细信息,请参阅 可用性集概述。 <br><br> 有关 Azure 计划内维护的详细信息,请参阅 Azure <br><br>中虚拟机的维护和更新目前,只能在创建时将 VM 添加到可用性集。 无法将现有 VM 添加到可用性集。

provisioningState
String

预配状态,仅显示在响应中。

licenseType
String

指定正在使用的映像或磁盘在本地获得许可。 <br><br> Windows Server 操作系统的可能值为:<br><br> Windows_Client <br><br> br Windows_Server <br><br> Linux Server 操作系统的可能值为:<br><br> RHEL_BYOS (for RHEL) <br><br> br SLES_BYOS (for SUSE) <br><br 有关详细信息>,请参阅适用于 Windows Server<的Azure 混合使用权益 br>< 适用于> Linux Server 的 Azure 混合使用权益<br><br> 最低 api-version:2015-06-15

modelDefinitionApplied
String

指定应用于虚拟机的模型是虚拟机规模集的模型还是虚拟机的自定义模型。

protectionPolicy
VirtualMachineScaleSetVMProtectionPolicy

指定虚拟机的保护策略。

plan
Plan

指定用于创建虚拟机的市场映像的相关信息。 此元素仅用于市场映像。 必须先启用该映像以供编程使用,然后才能从 API 使用市场映像。 在Azure 门户中,找到要使用的市场映像,然后单击“想要以编程方式部署”“入门”->。 输入任何所需信息,然后单击“ 保存”。

适用于

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

初始化 VirtualMachineScaleSetVM 类的新实例。

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

参数

location
String

资源位置

id
String

资源 ID

name
String

资源名称

type
String

资源类型

tags
IDictionary<String,String>

资源标记

instanceId
String

虚拟机实例 ID。

sku
Sku

虚拟机 SKU。

latestModelApplied
Nullable<Boolean>

指定是否已将最新模型应用于虚拟机。

vmId
String

Azure VM 唯一 ID。

instanceView
VirtualMachineScaleSetVMInstanceView

虚拟机实例视图。

hardwareProfile
HardwareProfile

指定虚拟机的硬件设置。

storageProfile
StorageProfile

指定虚拟机磁盘的存储设置。

additionalCapabilities
AdditionalCapabilities

指定在规模集中的虚拟机上启用或禁用的其他功能。 例如:虚拟机是否能够支持使用UltraSSD_LRS存储帐户类型附加托管数据磁盘。

osProfile
OSProfile

指定虚拟机的操作系统设置。

securityProfile
SecurityProfile

指定虚拟机的安全相关配置文件设置。

networkProfile
NetworkProfile

指定虚拟机的网络接口。

networkProfileConfiguration
VirtualMachineScaleSetVMNetworkProfileConfiguration

指定虚拟机的网络配置文件配置。

diagnosticsProfile
DiagnosticsProfile

指定启动诊断设置状态。 <br><br>最低 api-version:2015-06-15。

availabilitySet
SubResource

指定虚拟机应分配到的可用性集的相关信息。 将在同一可用性集中指定的虚拟机分配给不同节点,以便尽量提高可用性。 有关可用性集的详细信息,请参阅 可用性集概述。 <br><br> 有关 Azure 计划内维护的详细信息,请参阅 Azure <br><br>中虚拟机的维护和更新目前,只能在创建时将 VM 添加到可用性集。 无法将现有 VM 添加到可用性集。

provisioningState
String

预配状态,仅显示在响应中。

licenseType
String

指定正在使用的映像或磁盘在本地获得许可。 <br><br> Windows Server 操作系统的可能值为:<br><br> Windows_Client <br><br> br Windows_Server <br><br> Linux Server 操作系统的可能值为:<br><br> RHEL_BYOS (for RHEL) <br><br> br SLES_BYOS (for SUSE) <br><br 有关详细信息>,请参阅适用于 Windows Server<的Azure 混合使用权益 br>< 适用于> Linux Server 的 Azure 混合使用权益<br><br> 最低 api-version:2015-06-15

modelDefinitionApplied
String

指定应用于虚拟机的模型是虚拟机规模集的模型还是虚拟机的自定义模型。

protectionPolicy
VirtualMachineScaleSetVMProtectionPolicy

指定虚拟机的保护策略。

plan
Plan

指定用于创建虚拟机的市场映像的相关信息。 此元素仅用于市场映像。 必须先启用该映像以供编程使用,然后才能从 API 使用市场映像。 在Azure 门户中,找到要使用的市场映像,然后单击“想要以编程方式部署”“入门”->。 输入任何所需信息,然后单击“ 保存”。

resources
IList<VirtualMachineExtension>

虚拟机子扩展资源。

适用于

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

初始化 VirtualMachineScaleSetVM 类的新实例。

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

参数

location
String

资源位置

id
String

资源 ID

name
String

资源名称

type
String

资源类型

tags
IDictionary<String,String>

资源标记

instanceId
String

虚拟机实例 ID。

sku
Sku

虚拟机 SKU。

latestModelApplied
Nullable<Boolean>

指定是否已将最新模型应用于虚拟机。

vmId
String

Azure VM 唯一 ID。

instanceView
VirtualMachineScaleSetVMInstanceView

虚拟机实例视图。

hardwareProfile
HardwareProfile

指定虚拟机的硬件设置。

storageProfile
StorageProfile

指定虚拟机磁盘的存储设置。

additionalCapabilities
AdditionalCapabilities

指定在规模集中的虚拟机上启用或禁用的其他功能。 例如:虚拟机是否能够支持使用UltraSSD_LRS存储帐户类型附加托管数据磁盘。

osProfile
OSProfile

指定虚拟机的操作系统设置。

securityProfile
SecurityProfile

指定虚拟机的安全相关配置文件设置。

networkProfile
NetworkProfile

指定虚拟机的网络接口。

networkProfileConfiguration
VirtualMachineScaleSetVMNetworkProfileConfiguration

指定虚拟机的网络配置文件配置。

diagnosticsProfile
DiagnosticsProfile

指定启动诊断设置状态。 <br><br>最低 api-version:2015-06-15。

availabilitySet
SubResource

指定虚拟机应分配到的可用性集的相关信息。 将在同一可用性集中指定的虚拟机分配给不同节点,以便尽量提高可用性。 有关可用性集的详细信息,请参阅 可用性集概述。 <br><br> 有关 Azure 计划内维护的详细信息,请参阅 Azure <br><br>中虚拟机的维护和更新目前,只能在创建时将 VM 添加到可用性集。 无法将现有 VM 添加到可用性集。

provisioningState
String

预配状态,仅显示在响应中。

licenseType
String

指定正在使用的映像或磁盘在本地获得许可。 <br><br> Windows Server 操作系统的可能值为:<br><br> Windows_Client <br><br> br Windows_Server <br><br> Linux Server 操作系统的可能值为:<br><br> RHEL_BYOS (for RHEL) <br><br> br SLES_BYOS (for SUSE) <br><br 有关详细信息>,请参阅适用于 Windows Server<的Azure 混合使用权益 br>< 适用于> Linux Server 的 Azure 混合使用权益<br><br> 最低 api-version:2015-06-15

modelDefinitionApplied
String

指定应用于虚拟机的模型是虚拟机规模集的模型还是虚拟机的自定义模型。

protectionPolicy
VirtualMachineScaleSetVMProtectionPolicy

指定虚拟机的保护策略。

plan
Plan

指定用于创建虚拟机的市场映像的相关信息。 此元素仅用于市场映像。 必须先启用该映像以供编程使用,然后才能从 API 使用市场映像。 在Azure 门户中,找到要使用的市场映像,然后单击“想要以编程方式部署”“入门”->。 输入任何所需信息,然后单击“ 保存”。

resources
IList<VirtualMachineExtension>

虚拟机子扩展资源。

zones
IList<String>

虚拟机区域。

适用于

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)

初始化 VirtualMachineScaleSetVM 类的新实例。

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)

参数

location
String

资源位置

id
String

资源 ID

name
String

资源名称

type
String

资源类型

tags
IDictionary<String,String>

资源标记

instanceId
String

虚拟机实例 ID。

sku
Sku

虚拟机 SKU。

latestModelApplied
Nullable<Boolean>

指定是否已将最新模型应用于虚拟机。

vmId
String

Azure VM 唯一 ID。

instanceView
VirtualMachineScaleSetVMInstanceView

虚拟机实例视图。

hardwareProfile
HardwareProfile

指定虚拟机的硬件设置。

storageProfile
StorageProfile

指定虚拟机磁盘的存储设置。

additionalCapabilities
AdditionalCapabilities

指定在规模集中的虚拟机上启用或禁用的其他功能。 例如:虚拟机是否能够支持使用UltraSSD_LRS存储帐户类型附加托管数据磁盘。

osProfile
OSProfile

指定虚拟机的操作系统设置。

securityProfile
SecurityProfile

指定虚拟机的安全相关配置文件设置。

networkProfile
NetworkProfile

指定虚拟机的网络接口。

networkProfileConfiguration
VirtualMachineScaleSetVMNetworkProfileConfiguration

指定虚拟机的网络配置文件配置。

diagnosticsProfile
DiagnosticsProfile

指定启动诊断设置状态。 最低 API 版本:2015-06-15。

availabilitySet
SubResource

指定虚拟机应分配到的可用性集的相关信息。 将在同一可用性集中指定的虚拟机分配给不同节点,以便尽量提高可用性。 有关可用性集的详细信息,请参阅 可用性集概述。 有关 Azure 计划内维护的详细信息,请参阅 Azure 中虚拟机的维护和更新。 目前,只能在创建时将 VM 添加到可用性集。 无法将现有 VM 添加到可用性集。

provisioningState
String

预配状态,仅显示在响应中。

licenseType
String

指定正在使用的映像或磁盘在本地获得许可。 <br><br> Windows Server 操作系统的可能值为:<br><br> Windows_Client <br><br> br Windows_Server <br><br> Linux Server 操作系统的可能值为:<br><br> RHEL_BYOS (for RHEL) <br><br> br SLES_BYOS (for SUSE) <br><br 有关详细信息>,请参阅适用于 Windows Server<的Azure 混合使用权益 br>< 适用于> Linux Server 的 Azure 混合使用权益<br><br> 最低 api-version:2015-06-15

modelDefinitionApplied
String

指定应用于虚拟机的模型是虚拟机规模集的模型还是虚拟机的自定义模型。

protectionPolicy
VirtualMachineScaleSetVMProtectionPolicy

指定虚拟机的保护策略。

userData
String

VM 的 UserData,必须采用 base-64 编码。 客户不应在此处传递任何机密。 <br><br>最低 api 版本:2021-03-01

plan
Plan

指定用于创建虚拟机的市场映像的相关信息。 此元素仅用于市场映像。 必须先启用该映像以供编程使用,然后才能从 API 使用市场映像。 在Azure 门户中,找到要使用的市场映像,然后单击“想要以编程方式部署”“入门”->。 输入任何所需信息,然后单击“ 保存”。

resources
IList<VirtualMachineExtension>

虚拟机子扩展资源。

zones
IList<String>

虚拟机区域。

identity
VirtualMachineIdentity

虚拟机的标识(如果已配置)。

适用于