BatchVmImageReference interface
指 Azure 虛擬機器 Marketplace Image 或 Azure Compute Gallery Image。 要取得所有 Azure Marketplace 影像參考的清單,經過 Azure Batch 驗證,請參閱「List Supported Images」操作。
屬性
| community |
社群圖庫圖片唯一識別碼。 這個屬性與其他屬性互斥,而且可以從社群資源庫映像 GET 呼叫擷取。 |
| exact |
用於建立節點的特定平台映像檔或市場映像版本。 此唯讀欄位與「版本」只有在建立池時指定的「版本」值為「最新」時才會有所不同。 |
| offer | Azure 虛擬機器 Marketplace 映像的 offer 類型。 例如,UbuntuServer 或 WindowsServer。 |
| publisher | Azure 虛擬機器 Marketplace 映像的發佈者。 例如,Canonical 或 MicrosoftWindowsServer。 |
| shared |
共用圖庫影像唯一識別碼。 這個屬性與其他屬性互斥,而且可以從共用資源庫映像 GET 呼叫擷取。 |
| sku | The SKU of the Azure 虛擬機器 Marketplace Image. 例如,18.04-LTS 或 2019-Datacenter。 |
| version | Azure 虛擬機器 Marketplace 映像版本。 可設定「最新」值以選擇最新版本的映像檔。 如果省略,預設值為 'latest'。 |
| virtual |
Azure Compute Gallery 映像的 ARM 資源識別碼。 池中的運算節點將使用此映像 ID 建立。此格式為 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft。Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{VersionId} 或 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName} 預設為最新的圖片版本。 此特性與其他 ImageReference 屬性互斥。 Azure Compute Gallery 映像檔必須在相同區域內有副本,且必須與 Azure Batch 帳號處於相同的訂閱中。 若 imageID 未指定映像版本,則會使用最新版本。 關於批次運算節點代理與批次服務通訊的防火牆設定,請參見 https://learn.microsoft.com/azure/batch/nodes-and-pools#virtual-network-vnet-and-firewall-configuration。 |
屬性詳細資料
communityGalleryImageId
社群圖庫圖片唯一識別碼。 這個屬性與其他屬性互斥,而且可以從社群資源庫映像 GET 呼叫擷取。
communityGalleryImageId?: string
屬性值
string
exactVersion
用於建立節點的特定平台映像檔或市場映像版本。 此唯讀欄位與「版本」只有在建立池時指定的「版本」值為「最新」時才會有所不同。
exactVersion?: string
屬性值
string
offer
Azure 虛擬機器 Marketplace 映像的 offer 類型。 例如,UbuntuServer 或 WindowsServer。
offer?: string
屬性值
string
publisher
Azure 虛擬機器 Marketplace 映像的發佈者。 例如,Canonical 或 MicrosoftWindowsServer。
publisher?: string
屬性值
string
sharedGalleryImageId
共用圖庫影像唯一識別碼。 這個屬性與其他屬性互斥,而且可以從共用資源庫映像 GET 呼叫擷取。
sharedGalleryImageId?: string
屬性值
string
sku
The SKU of the Azure 虛擬機器 Marketplace Image. 例如,18.04-LTS 或 2019-Datacenter。
sku?: string
屬性值
string
version
Azure 虛擬機器 Marketplace 映像版本。 可設定「最新」值以選擇最新版本的映像檔。 如果省略,預設值為 'latest'。
version?: string
屬性值
string
virtualMachineImageId
Azure Compute Gallery 映像的 ARM 資源識別碼。 池中的運算節點將使用此映像 ID 建立。此格式為 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft。Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{VersionId} 或 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName} 預設為最新的圖片版本。 此特性與其他 ImageReference 屬性互斥。 Azure Compute Gallery 映像檔必須在相同區域內有副本,且必須與 Azure Batch 帳號處於相同的訂閱中。 若 imageID 未指定映像版本,則會使用最新版本。 關於批次運算節點代理與批次服務通訊的防火牆設定,請參見 https://learn.microsoft.com/azure/batch/nodes-and-pools#virtual-network-vnet-and-firewall-configuration。
virtualMachineImageId?: string
屬性值
string