ComputeBatchModelFactory.VirtualMachineInfo(ImageReference, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.