다음을 통해 공유


BatchVmConfiguration(BatchImageReference, String) Constructor

Definition

Initializes a new instance of BatchVmConfiguration.

public BatchVmConfiguration (Azure.ResourceManager.Batch.Models.BatchImageReference imageReference, string nodeAgentSkuId);
new Azure.ResourceManager.Batch.Models.BatchVmConfiguration : Azure.ResourceManager.Batch.Models.BatchImageReference * string -> Azure.ResourceManager.Batch.Models.BatchVmConfiguration
Public Sub New (imageReference As BatchImageReference, nodeAgentSkuId As String)

Parameters

imageReference
BatchImageReference

A reference to an Azure Virtual Machines Marketplace image or the Azure Image resource of a custom Virtual Machine. To get the list of all imageReferences verified by Azure Batch, see the 'List supported node agent SKUs' operation.

nodeAgentSkuId
String

The Batch node agent is a program that runs on each node in the pool, and provides the command-and-control interface between the node and the Batch service. There are different implementations of the node agent, known as SKUs, for different operating systems. You must specify a node agent SKU which matches the selected image reference. To get the list of supported node agent SKUs along with their list of verified image references, see the 'List supported node agent SKUs' operation.

Exceptions

imageReference or nodeAgentSkuId is null.

Applies to