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

PatchSettings 构造函数

定义

重载

PatchSettings()

初始化 PatchSettings 类的新实例。

PatchSettings(String, Nullable<Boolean>, String, WindowsVMGuestPatchAutomaticByPlatformSettings)

初始化 PatchSettings 类的新实例。

PatchSettings()

初始化 PatchSettings 类的新实例。

public PatchSettings ();
Public Sub New ()

适用于

PatchSettings(String, Nullable<Boolean>, String, WindowsVMGuestPatchAutomaticByPlatformSettings)

初始化 PatchSettings 类的新实例。

public PatchSettings (string patchMode = default, bool? enableHotpatching = default, string assessmentMode = default, Microsoft.Azure.Management.Compute.Models.WindowsVMGuestPatchAutomaticByPlatformSettings automaticByPlatformSettings = default);
new Microsoft.Azure.Management.Compute.Models.PatchSettings : string * Nullable<bool> * string * Microsoft.Azure.Management.Compute.Models.WindowsVMGuestPatchAutomaticByPlatformSettings -> Microsoft.Azure.Management.Compute.Models.PatchSettings
Public Sub New (Optional patchMode As String = Nothing, Optional enableHotpatching As Nullable(Of Boolean) = Nothing, Optional assessmentMode As String = Nothing, Optional automaticByPlatformSettings As WindowsVMGuestPatchAutomaticByPlatformSettings = Nothing)

参数

patchMode
String

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

enableHotpatching
Nullable<Boolean>

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

assessmentMode
String

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

automaticByPlatformSettings
WindowsVMGuestPatchAutomaticByPlatformSettings

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

适用于