通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

BatchVmImageReferenceOutput interface

对 Azure 虚拟机市场映像或 Azure 计算库映像的引用。 若要获取 Azure Batch 验证的所有 Azure 市场映像引用的列表,请参阅“列表支持的映像”操作。

属性

communityGalleryImageId

社区库映像唯一标识符。 此属性与其他属性互斥,可以从社区库映像 GET 调用中提取。

exactVersion

用于创建节点的平台映像或市场映像的特定版本。 仅当创建池时为“version”指定的值为“latest”时,此只读字段与“version”不同。

offer

Azure 虚拟机市场映像的产品/服务类型。 例如,UbuntuServer 或 WindowsServer。

publisher

Azure 虚拟机市场映像的发布者。 例如,Canonical 或 MicrosoftWindowsServer。

sharedGalleryImageId

共享库映像唯一标识符。 此属性与其他属性互斥,可以从共享库映像 GET 调用中提取。

sku

Azure 虚拟机市场映像的 SKU。 例如,18.04-LTS 或 2019-Datacenter。

version

Azure 虚拟机市场映像的版本。 可以指定值“latest”以选择最新版本的映像。 如果省略,则默认值为“latest”。

virtualMachineImageId

Azure 计算库映像的 ARM 资源标识符。 池中的计算节点将使用此映像 ID 创建。此格式为 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/gallerys/{galleryName}/images/{imageDefinitionName}/versions/{VersionId} 或 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/gallerys/{galleryName}/images/{imageDefinitionName},以始终默认为最新映像版本。 此属性与其他 ImageReference 属性互斥。 Azure 计算库映像必须在同一区域中具有副本,并且必须与 Azure Batch 帐户位于同一订阅中。 如果未在 imageId 中指定映像版本,将使用最新版本。 有关 Batch 计算节点代理与 Batch 服务通信的防火墙设置的信息,请参阅 https://learn.microsoft.com/azure/batch/nodes-and-pools#virtual-network-vnet-and-firewall-configuration

属性详细信息

communityGalleryImageId

社区库映像唯一标识符。 此属性与其他属性互斥,可以从社区库映像 GET 调用中提取。

communityGalleryImageId?: string

属性值

string

exactVersion

用于创建节点的平台映像或市场映像的特定版本。 仅当创建池时为“version”指定的值为“latest”时,此只读字段与“version”不同。

exactVersion?: string

属性值

string

offer

Azure 虚拟机市场映像的产品/服务类型。 例如,UbuntuServer 或 WindowsServer。

offer?: string

属性值

string

publisher

Azure 虚拟机市场映像的发布者。 例如,Canonical 或 MicrosoftWindowsServer。

publisher?: string

属性值

string

sharedGalleryImageId

共享库映像唯一标识符。 此属性与其他属性互斥,可以从共享库映像 GET 调用中提取。

sharedGalleryImageId?: string

属性值

string

sku

Azure 虚拟机市场映像的 SKU。 例如,18.04-LTS 或 2019-Datacenter。

sku?: string

属性值

string

version

Azure 虚拟机市场映像的版本。 可以指定值“latest”以选择最新版本的映像。 如果省略,则默认值为“latest”。

version?: string

属性值

string

virtualMachineImageId

Azure 计算库映像的 ARM 资源标识符。 池中的计算节点将使用此映像 ID 创建。此格式为 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/gallerys/{galleryName}/images/{imageDefinitionName}/versions/{VersionId} 或 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/gallerys/{galleryName}/images/{imageDefinitionName},以始终默认为最新映像版本。 此属性与其他 ImageReference 属性互斥。 Azure 计算库映像必须在同一区域中具有副本,并且必须与 Azure Batch 帐户位于同一订阅中。 如果未在 imageId 中指定映像版本,将使用最新版本。 有关 Batch 计算节点代理与 Batch 服务通信的防火墙设置的信息,请参阅 https://learn.microsoft.com/azure/batch/nodes-and-pools#virtual-network-vnet-and-firewall-configuration

virtualMachineImageId?: string

属性值

string