你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PatchSettings 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public class PatchSettings
type PatchSettings = class
Public Class PatchSettings
- 继承
-
PatchSettings
构造函数
PatchSettings() |
初始化 PatchSettings 类的新实例。 |
PatchSettings(InGuestPatchMode) |
初始化 PatchSettings 类的新实例。 |
属性
PatchMode |
获取或设置指定对 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” |