PatchSettings interface
指定了与Windows虚拟机访客补丁相关的设置。
属性
| assessment |
指定 IaaS 虚拟机的 VM 来宾修补程序评估模式。 |
| automatic |
在 Windows 虚拟机访客补丁中,指定了补丁模式 AutomaticByPlatform 的额外设置。 |
| enable |
使客户能够在无需重启的情况下修补 Azure 虚拟机。 对于 enableHotpatching,必须将“provisionVMAgent”设置为 true,并且“patchMode”必须设置为“AutomaticByPlatform”。 |
| patch |
指定 VM 来宾修补到 IaaS 虚拟机的模式,或与将 OrchestrationMode 作为灵活业务流程模式的虚拟机规模集关联的虚拟机。 |
属性详细信息
assessmentMode
指定 IaaS 虚拟机的 VM 来宾修补程序评估模式。
可能的值为:
ImageDefault - 控制虚拟机上的修补程序评估的时间。
AutomaticByPlatform - 平台将触发定期修补评估。 属性 provisionVMAgent 必须为 true。
assessmentMode?: string
属性值
string
automaticByPlatformSettings
在 Windows 虚拟机访客补丁中,指定了补丁模式 AutomaticByPlatform 的额外设置。
automaticByPlatformSettings?: WindowsVMGuestPatchAutomaticByPlatformSettings
属性值
enableHotpatching
使客户能够在无需重启的情况下修补 Azure 虚拟机。 对于 enableHotpatching,必须将“provisionVMAgent”设置为 true,并且“patchMode”必须设置为“AutomaticByPlatform”。
enableHotpatching?: boolean
属性值
boolean
patchMode
指定 VM 来宾修补到 IaaS 虚拟机的模式,或与将 OrchestrationMode 作为灵活业务流程模式的虚拟机规模集关联的虚拟机。
可能的值为:
手动 - 可以控制将修补程序应用到虚拟机。 为此,请在 VM 中手动应用修补程序。 在此模式下,自动更新处于禁用状态;属性 WindowsConfiguration.enableAutomaticUpdates 必须为 false
AutomaticByOS - 虚拟机将由 OS 自动更新。 属性 WindowsConfiguration.enableAutomaticUpdates 必须为 true。
AutomaticByPlatform - 虚拟机将由平台自动更新。 属性 provisionVMAgent 和 WindowsConfiguration.enableAutomaticUpdates 必须为 true
patchMode?: string
属性值
string