WindowsVMGuestPatchMode type

將 VM 客體修補模式指定為彈性的 IaaS 虛擬機或與虛擬機擴展集相關聯的虛擬機。

可能的值為:

手動 - 您可以控制將修補程式的應用程式套用至虛擬機。 您可以手動在 VM 內套用修補程式來執行此動作。 在此模式中,會停用自動更新;屬性 WindowsConfiguration.enableAutomaticUpdates 必須為 false

AutomaticByOS - 作業系統會自動更新虛擬機。 屬性 WindowsConfiguration.enableAutomaticUpdates 必須為 true。

AutomaticByPlatform - 虛擬機會由平台自動更新。 provisionVMAgent 與 WindowsConfiguration.enableAutomaticUpdates 這兩個屬性必須為 true。
KnownWindowsVMGuestPatchMode 可與 WindowsVMGuestPatchMode 交替使用,此列舉包含服務支援的已知值。

服務支援的已知值

手動
AutomaticByOS
AutomaticByPlatform

type WindowsVMGuestPatchMode = string