ImageReference Class
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.
- Inheritance
-
azure.mgmt.batch._serialization.ModelImageReference
Constructor
ImageReference(*, publisher: str | None = None, offer: str | None = None, sku: str | None = None, version: str | None = None, id: str | None = None, shared_gallery_image_id: str | None = None, community_gallery_image_id: str | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
publisher
|
For example, Canonical or MicrosoftWindowsServer. |
offer
|
For example, UbuntuServer or WindowsServer. |
sku
|
For example, 18.04-LTS or 2022-datacenter. |
version
|
A value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'. |
id
|
This property is mutually exclusive with other properties. The Azure Compute Gallery Image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. |
shared_gallery_image_id
|
This property is mutually exclusive with other properties and can be fetched from shared gallery image GET call. |
community_gallery_image_id
|
This property is mutually exclusive with other properties and can be fetched from community gallery image GET call. |
Variables
Name | Description |
---|---|
publisher
|
For example, Canonical or MicrosoftWindowsServer. |
offer
|
For example, UbuntuServer or WindowsServer. |
sku
|
For example, 18.04-LTS or 2022-datacenter. |
version
|
A value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'. |
id
|
This property is mutually exclusive with other properties. The Azure Compute Gallery Image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. |
shared_gallery_image_id
|
This property is mutually exclusive with other properties and can be fetched from shared gallery image GET call. |
community_gallery_image_id
|
This property is mutually exclusive with other properties and can be fetched from community gallery image GET call. |
Azure SDK for Python