你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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.