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

PatchSettings.PatchMode 属性

定义

获取或设置指定 VM 来宾修补到 IaaS 虚拟机或与虚拟机规模集关联的虚拟机的模式,业务流程模式为灵活。<br /><br />可能的值为:<br /><br /> 手动 - 控制将修补程序应用到虚拟机。 为此,可以在 VM 中手动应用修补程序。 在此模式下,自动更新处于禁用状态;属性 WindowsConfiguration.enableAutomaticUpdates 必须为 false<br /><br /> AutomaticByOS - 操作系统会自动更新虚拟机。 属性 WindowsConfiguration.enableAutomaticUpdates 必须为 true。 <br /><br /> AutomaticByPlatform - 虚拟机将由平台自动更新。 属性 provisionVMAgent 和 WindowsConfiguration.enableAutomaticUpdates 必须为 true。 可能的值包括:“Manual”、“AutomaticByOS”、“AutomaticByPlatform”

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

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

适用于