PatchSettings 類別
指定與 Windows 上的 VM 客體修補相關的設定。
- 繼承
-
azure.mgmt.compute._serialization.ModelPatchSettings
建構函式
PatchSettings(*, patch_mode: str | _models.WindowsVMGuestPatchMode | None = None, enable_hotpatching: bool | None = None, assessment_mode: str | _models.WindowsPatchAssessmentMode | None = None, **kwargs)
變數
- patch_mode
- str 或 WindowsVMGuestPatchMode
指定 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
- str 或 WindowsPatchAssessmentMode
指定 IaaS 虛擬機器的 VM 客體修補評估模式。:code:<br />
可能的值為: <br />``<br />
ImageDefault - 您可以在虛擬機器上控制修補程式評估的時間。:code:<br />
AutomaticByPlatform - 平臺會觸發定期修補評估。 屬性 provisionVMAgent 必須是 true。 已知值為:「ImageDefault」 和 「AutomaticByPlatform」。
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應