共用方式為


PatchSettings 類別

指定與 Windows 上的 VM 客體修補相關的設定。

繼承
azure.mgmt.compute._serialization.Model
PatchSettings

建構函式

PatchSettings(*, patch_mode: str | _models.WindowsVMGuestPatchMode | None = None, enable_hotpatching: bool | None = None, assessment_mode: str | _models.WindowsPatchAssessmentMode | None = None, **kwargs)

變數

patch_mode
strWindowsVMGuestPatchMode

指定 VM 客體修補至 IaaS 虛擬機器的模式,或與 OrchestrationMode 為 Flexible.:code 之虛擬機器擴展集相關聯的虛擬機器:
<br />可能的值為: <br />``<br />Manual - 您可以控制修補程式對虛擬機器的應用程式。 您可以在 VM 內手動套用修補程式來執行此動作。 在此模式中,自動更新會停用;屬性 WindowsConfiguration.enableAutomaticUpdates 必須是 false:code:
<br />AutomaticByOS - 作業系統會自動更新虛擬機器。 WindowsConfiguration.enableAutomaticUpdates 屬性必須是 true。 <br />``<br />AutomaticByPlatform - 虛擬機器將會由平臺自動更新。 provisionVMAgent 和 WindowsConfiguration.enableAutomaticUpdates 屬性必須是 true。 已知值為:「Manual」、「AutomaticByOS」 和 「AutomaticByPlatform」。

enable_hotpatching
bool

可讓客戶修補其 Azure VM,而不需要重新開機。 針對 enableHotpatching,'provisionVMAgent' 必須設定為 true,而且 'patchMode' 必須設定為 'AutomaticByPlatform'。

assessment_mode
strWindowsPatchAssessmentMode

指定 IaaS 虛擬機器的 VM 客體修補評估模式。:code:
<br />可能的值為: <br />``<br />ImageDefault - 您可以在虛擬機器上控制修補程式評估的時間。:code:
<br />AutomaticByPlatform - 平臺會觸發定期修補評估。 屬性 provisionVMAgent 必須是 true。 已知值為:「ImageDefault」 和 「AutomaticByPlatform」。