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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET