ComputeBatchModelFactory.BatchVmImageReference 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 BatchVmImageReference.
public static Azure.Compute.Batch.BatchVmImageReference BatchVmImageReference(string publisher = default, string offer = default, string sku = default, string version = default, Azure.Core.ResourceIdentifier virtualMachineImageId = default, string exactVersion = default, string sharedGalleryImageId = default, string communityGalleryImageId = default);
static member BatchVmImageReference : string * string * string * string * Azure.Core.ResourceIdentifier * string * string * string -> Azure.Compute.Batch.BatchVmImageReference
Public Shared Function BatchVmImageReference (Optional publisher As String = Nothing, Optional offer As String = Nothing, Optional sku As String = Nothing, Optional version As String = Nothing, Optional virtualMachineImageId As ResourceIdentifier = Nothing, Optional exactVersion As String = Nothing, Optional sharedGalleryImageId As String = Nothing, Optional communityGalleryImageId As String = Nothing) As BatchVmImageReference
Parameters
- publisher
- String
The publisher of the Azure Virtual Machines Marketplace Image. For example, Canonical or MicrosoftWindowsServer.
- offer
- String
The offer type of the Azure Virtual Machines Marketplace Image. For example, UbuntuServer or WindowsServer.
- sku
- String
The SKU of the Azure Virtual Machines Marketplace Image. For example, 18.04-LTS or 2019-Datacenter.
- version
- String
The version of the Azure Virtual Machines Marketplace Image. A value of 'latest' can be specified to select the latest version of an Image. If omitted, the default is 'latest'.
- virtualMachineImageId
- ResourceIdentifier
The ARM resource identifier of the Azure Compute Gallery Image. Compute Nodes in the Pool will be created using this Image Id. This is of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{VersionId} or /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName} for always defaulting to the latest image version. This property is mutually exclusive with other ImageReference properties. The Azure Compute Gallery Image must have replicas in the same region and must be in the same subscription as the Azure Batch account. If the image version is not specified in the imageId, the latest version will be used. For information about the firewall settings for the Batch Compute Node agent to communicate with the Batch service see https://free.blessedness.top/azure/batch/nodes-and-pools#virtual-network-vnet-and-firewall-configuration.
- exactVersion
- String
The specific version of the platform image or marketplace image used to create the node. This read-only field differs from 'version' only if the value specified for 'version' when the pool was created was 'latest'.
- sharedGalleryImageId
- String
The shared gallery image unique identifier. This property is mutually exclusive with other properties and can be fetched from shared gallery image GET call.
- communityGalleryImageId
- String
The community gallery image unique identifier. This property is mutually exclusive with other properties and can be fetched from community gallery image GET call.
Returns
A new BatchVmImageReference instance for mocking.