Share via


ComputeBatchModelFactory.VirtualMachineInfo(ImageReference, String) Method

Definition

Initializes a new instance of VirtualMachineInfo.

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

Parameters

imageReference
ImageReference

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