共用方式為


ArmDevTestLabsModelFactory.ComputeVmProperties Method

Definition

Initializes a new instance of ComputeVmProperties.

public static Azure.ResourceManager.DevTestLabs.Models.ComputeVmProperties ComputeVmProperties (System.Collections.Generic.IEnumerable<Azure.ResourceManager.DevTestLabs.Models.ComputeVmInstanceViewStatus> statuses = default, string osType = default, string vmSize = default, string networkInterfaceId = default, string osDiskId = default, System.Collections.Generic.IEnumerable<string> dataDiskIds = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DevTestLabs.Models.ComputeDataDisk> dataDisks = default);
static member ComputeVmProperties : seq<Azure.ResourceManager.DevTestLabs.Models.ComputeVmInstanceViewStatus> * string * string * string * string * seq<string> * seq<Azure.ResourceManager.DevTestLabs.Models.ComputeDataDisk> -> Azure.ResourceManager.DevTestLabs.Models.ComputeVmProperties
Public Shared Function ComputeVmProperties (Optional statuses As IEnumerable(Of ComputeVmInstanceViewStatus) = Nothing, Optional osType As String = Nothing, Optional vmSize As String = Nothing, Optional networkInterfaceId As String = Nothing, Optional osDiskId As String = Nothing, Optional dataDiskIds As IEnumerable(Of String) = Nothing, Optional dataDisks As IEnumerable(Of ComputeDataDisk) = Nothing) As ComputeVmProperties

Parameters

statuses
IEnumerable<ComputeVmInstanceViewStatus>

Gets the statuses of the virtual machine.

osType
String

Gets the OS type of the virtual machine.

vmSize
String

Gets the size of the virtual machine.

networkInterfaceId
String

Gets the network interface ID of the virtual machine.

osDiskId
String

Gets OS disk blob uri for the virtual machine.

dataDiskIds
IEnumerable<String>

Gets data disks blob uri for the virtual machine.

dataDisks
IEnumerable<ComputeDataDisk>

Gets all data disks attached to the virtual machine.

Returns

A new ComputeVmProperties instance for mocking.

Applies to