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

ImageReference.Version 属性

定义

获取或设置指定用于创建虚拟机的平台映像或市场映像的版本。 允许的格式为 Major.Minor.Build 或“latest”。 主要、次要和内部版本是十进制数。 指定“latest”以使用部署时可用的最新版本的映像。 即使使用“最新”,VM 映像也不会在部署后自动更新,即使新版本可用。 请不要对库映像部署使用字段“version”,库映像应始终使用“id”字段进行部署,若要使用库映像的“最新”版本,只需在“id”字段中设置“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/gallerys/{galleryName}/images/{imageName}”即可。

[Newtonsoft.Json.JsonProperty(PropertyName="version")]
public string Version { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="version")>]
member this.Version : string with get, set
Public Property Version As String

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

适用于