VirtualMachineConfiguration(ImageReference, String) Constructor
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 VirtualMachineConfiguration.
public VirtualMachineConfiguration (Azure.Compute.Batch.ImageReference imageReference, string nodeAgentSkuId);
new Azure.Compute.Batch.VirtualMachineConfiguration : Azure.Compute.Batch.ImageReference * string -> Azure.Compute.Batch.VirtualMachineConfiguration
Public Sub New (imageReference As ImageReference, nodeAgentSkuId As String)
Parameters
- imageReference
- ImageReference
A reference to the Azure Virtual Machines Marketplace Image or the custom Virtual Machine Image to use.
- nodeAgentSkuId
- String
The SKU of the Batch Compute Node agent to be provisioned on Compute Nodes in the Pool. The Batch Compute Node agent is a program that runs on each Compute Node in the Pool, and provides the command-and-control interface between the Compute Node and the Batch service. There are different implementations of the Compute Node agent, known as SKUs, for different operating systems. You must specify a Compute Node agent SKU which matches the selected Image reference. To get the list of supported Compute Node agent SKUs along with their list of verified Image references, see the 'List supported Compute Node agent SKUs' operation.
Exceptions
imageReference
or nodeAgentSkuId
is null.
Applies to
Azure SDK for .NET