Share via


ComputeBatchModelFactory.VirtualMachineInfo Method

Definition

Initializes a new instance of VirtualMachineInfo.

public static Azure.Compute.Batch.VirtualMachineInfo VirtualMachineInfo(Azure.Compute.Batch.BatchVmImageReference imageReference = default, string scaleSetVmResourceId = default);
static member VirtualMachineInfo : Azure.Compute.Batch.BatchVmImageReference * string -> Azure.Compute.Batch.VirtualMachineInfo
Public Shared Function VirtualMachineInfo (Optional imageReference As BatchVmImageReference = Nothing, Optional scaleSetVmResourceId As String = Nothing) As VirtualMachineInfo

Parameters

imageReference
BatchVmImageReference

The reference to the Azure Virtual Machine's Marketplace Image.

scaleSetVmResourceId
String

The resource ID of the Compute Node's current Virtual Machine Scale Set VM. Only defined if the Batch Account was created with its poolAllocationMode property set to 'UserSubscription'.

Returns

A new VirtualMachineInfo instance for mocking.

Applies to