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

ArmDevTestLabsModelFactory.DevTestLabVmData 方法

定义

初始化 DevTestLabVmData 的新实例。

public static Azure.ResourceManager.DevTestLabs.DevTestLabVmData DevTestLabVmData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, string notes = default, string ownerObjectId = default, string ownerUserPrincipalName = default, string createdByUserId = default, string createdByUser = default, DateTimeOffset? createdOn = default, Azure.Core.ResourceIdentifier computeId = default, string customImageId = default, string osType = default, string size = default, string userName = default, string password = default, string sshKey = default, bool? isAuthenticationWithSshKey = default, string fqdn = default, string labSubnetName = default, Azure.Core.ResourceIdentifier labVirtualNetworkId = default, bool? disallowPublicIPAddress = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DevTestLabs.Models.DevTestLabArtifactInstallInfo> artifacts = default, Azure.ResourceManager.DevTestLabs.Models.DevTestLabArtifactDeploymentStatus artifactDeploymentStatus = default, Azure.ResourceManager.DevTestLabs.Models.DevTestLabGalleryImageReference galleryImageReference = default, string planId = default, Azure.ResourceManager.DevTestLabs.Models.ComputeVmProperties computeVm = default, Azure.ResourceManager.DevTestLabs.Models.DevTestLabNetworkInterface networkInterface = default, Azure.ResourceManager.DevTestLabs.Models.DevTestLabApplicableSchedule applicableSchedule = default, DateTimeOffset? expireOn = default, bool? allowClaim = default, string storageType = default, Azure.ResourceManager.DevTestLabs.Models.DevTestLabVmCreationSource? vmCreationSource = default, Azure.Core.ResourceIdentifier environmentId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DevTestLabs.Models.DevTestLabDataDiskProperties> dataDiskParameters = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DevTestLabs.Models.DevTestLabScheduleCreationParameter> scheduleParameters = default, string lastKnownPowerState = default, string provisioningState = default, Guid? uniqueIdentifier = default);
static member DevTestLabVmData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * string * string * string * string * string * Nullable<DateTimeOffset> * Azure.Core.ResourceIdentifier * string * string * string * string * string * string * Nullable<bool> * string * string * Azure.Core.ResourceIdentifier * Nullable<bool> * seq<Azure.ResourceManager.DevTestLabs.Models.DevTestLabArtifactInstallInfo> * Azure.ResourceManager.DevTestLabs.Models.DevTestLabArtifactDeploymentStatus * Azure.ResourceManager.DevTestLabs.Models.DevTestLabGalleryImageReference * string * Azure.ResourceManager.DevTestLabs.Models.ComputeVmProperties * Azure.ResourceManager.DevTestLabs.Models.DevTestLabNetworkInterface * Azure.ResourceManager.DevTestLabs.Models.DevTestLabApplicableSchedule * Nullable<DateTimeOffset> * Nullable<bool> * string * Nullable<Azure.ResourceManager.DevTestLabs.Models.DevTestLabVmCreationSource> * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.DevTestLabs.Models.DevTestLabDataDiskProperties> * seq<Azure.ResourceManager.DevTestLabs.Models.DevTestLabScheduleCreationParameter> * string * string * Nullable<Guid> -> Azure.ResourceManager.DevTestLabs.DevTestLabVmData
Public Shared Function DevTestLabVmData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional notes As String = Nothing, Optional ownerObjectId As String = Nothing, Optional ownerUserPrincipalName As String = Nothing, Optional createdByUserId As String = Nothing, Optional createdByUser As String = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional computeId As ResourceIdentifier = Nothing, Optional customImageId As String = Nothing, Optional osType As String = Nothing, Optional size As String = Nothing, Optional userName As String = Nothing, Optional password As String = Nothing, Optional sshKey As String = Nothing, Optional isAuthenticationWithSshKey As Nullable(Of Boolean) = Nothing, Optional fqdn As String = Nothing, Optional labSubnetName As String = Nothing, Optional labVirtualNetworkId As ResourceIdentifier = Nothing, Optional disallowPublicIPAddress As Nullable(Of Boolean) = Nothing, Optional artifacts As IEnumerable(Of DevTestLabArtifactInstallInfo) = Nothing, Optional artifactDeploymentStatus As DevTestLabArtifactDeploymentStatus = Nothing, Optional galleryImageReference As DevTestLabGalleryImageReference = Nothing, Optional planId As String = Nothing, Optional computeVm As ComputeVmProperties = Nothing, Optional networkInterface As DevTestLabNetworkInterface = Nothing, Optional applicableSchedule As DevTestLabApplicableSchedule = Nothing, Optional expireOn As Nullable(Of DateTimeOffset) = Nothing, Optional allowClaim As Nullable(Of Boolean) = Nothing, Optional storageType As String = Nothing, Optional vmCreationSource As Nullable(Of DevTestLabVmCreationSource) = Nothing, Optional environmentId As ResourceIdentifier = Nothing, Optional dataDiskParameters As IEnumerable(Of DevTestLabDataDiskProperties) = Nothing, Optional scheduleParameters As IEnumerable(Of DevTestLabScheduleCreationParameter) = Nothing, Optional lastKnownPowerState As String = Nothing, Optional provisioningState As String = Nothing, Optional uniqueIdentifier As Nullable(Of Guid) = Nothing) As DevTestLabVmData

参数

name
String

名称。

resourceType
ResourceType

resourceType。

systemData
SystemData

systemData。

tags
IDictionary<String,String>

标记。

location
AzureLocation

位置。

notes
String

虚拟机的说明。

ownerObjectId
String

虚拟机所有者的对象标识符。

ownerUserPrincipalName
String

虚拟机所有者的用户主体名称。

createdByUserId
String

虚拟机创建者的对象标识符。

createdByUser
String

虚拟机创建者的电子邮件地址。

createdOn
Nullable<DateTimeOffset>

虚拟机的创建日期。

computeId
ResourceIdentifier

资源标识符 (虚拟机的 Microsoft.Compute) 。

customImageId
String

虚拟机的自定义映像标识符。

osType
String

虚拟机的 OS 类型。

size
String

虚拟机的大小。

userName
String

虚拟机的用户名。

password
String

虚拟机管理员的密码。

sshKey
String

虚拟机管理员的 SSH 密钥。

isAuthenticationWithSshKey
Nullable<Boolean>

指示此虚拟机是否使用 SSH 密钥进行身份验证。

fqdn
String

虚拟机的完全限定域名。

labSubnetName
String

虚拟机的实验室子网名称。

labVirtualNetworkId
ResourceIdentifier

虚拟机的实验室虚拟网络标识符。

disallowPublicIPAddress
Nullable<Boolean>

指示是否在没有公共 IP 地址的情况下创建虚拟机。

artifacts
IEnumerable<DevTestLabArtifactInstallInfo>

要安装在虚拟机上的项目。

artifactDeploymentStatus
DevTestLabArtifactDeploymentStatus

虚拟机的项目部署状态。

galleryImageReference
DevTestLabGalleryImageReference

虚拟机的 Microsoft Azure 市场映像引用。

planId
String

与虚拟机映像关联的计划的 ID。

computeVm
ComputeVmProperties

计算虚拟机属性。

networkInterface
DevTestLabNetworkInterface

网络接口属性。

applicableSchedule
DevTestLabApplicableSchedule

虚拟机的适用计划。

expireOn
Nullable<DateTimeOffset>

VM 的到期日期。

allowClaim
Nullable<Boolean>

指示其他用户是否可以获取虚拟机的所有权。

storageType
String

用于虚拟机 (存储类型,即标准、高级) 。

vmCreationSource
Nullable<DevTestLabVmCreationSource>

告知创建实验室虚拟机的源。 仅限输出属性。

environmentId
ResourceIdentifier

包含此虚拟机的环境的资源 ID(如果有)。

dataDiskParameters
IEnumerable<DevTestLabDataDiskProperties>

创建后要附加到虚拟机的新数据磁盘或现有数据磁盘。

scheduleParameters
IEnumerable<DevTestLabScheduleCreationParameter>

要创建的虚拟机计划。

lastKnownPowerState
String

在 DTL 中捕获的上一个已知计算电源状态。

provisioningState
String

资源的预配状态。

uniqueIdentifier
Nullable<Guid>

资源的唯一不可变标识符 (Guid) 。

返回

用于模拟的新 DevTestLabVmData 实例。

适用于