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

PatchSettings 类

定义

指定与 Windows 上的 VM 来宾修补相关的设置。

public class PatchSettings
type PatchSettings = class
Public Class PatchSettings
继承
PatchSettings

构造函数

PatchSettings()

初始化 PatchSettings 的新实例。

属性

AssessmentMode

指定 IaaS 虚拟机的 VM 来宾修补程序评估模式。<br /><br /> 可能的值为:<br /><br />ImageDefault - 可以控制虚拟机上的修补程序评估的时间。<br /><br />AutomaticByPlatform - 平台将触发定期补丁评估。 属性 provisionVMAgent 必须为 true。

AutomaticByPlatformSettings

指定 Windows 上的 VM 来宾修补中的修补模式 AutomaticByPlatform 的其他设置。

EnableHotpatching

使客户无需重新启动即可修补其 Azure VM。 对于 enableHotpatching,必须将“provisionVMAgent”设置为 true,“patchMode”必须设置为“AutomaticByPlatform”。

PatchMode

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

适用于