共用方式為


VirtualMachineExtensionUpdate 類別

描述虛擬機器擴充功能。

繼承
azure.mgmt.compute.v2021_07_01.models._models_py3.UpdateResource
VirtualMachineExtensionUpdate

建構函式

VirtualMachineExtensionUpdate(*, tags: Dict[str, str] | None = None, force_update_tag: str | None = None, publisher: str | None = None, type: str | None = None, type_handler_version: str | None = None, auto_upgrade_minor_version: bool | None = None, enable_automatic_upgrade: bool | None = None, settings: MutableMapping[str, Any] | None = None, protected_settings: MutableMapping[str, Any] | None = None, suppress_failures: bool | None = None, **kwargs)

變數

tags
dict[str, str]

資源標籤。

force_update_tag
str

延伸模組處理常式應該如何強制更新,即使延伸模組組態尚未變更也一樣。

publisher
str

擴充處理常式發行者的名稱。

type
str

指定延伸模組的類型;例如「CustomScriptExtension」。

type_handler_version
str

指定腳本處理常式的版本。

auto_upgrade_minor_version
bool

指出擴充功能是否應該在部署時使用較新的次要版本。 不過,部署之後,除非重新部署延伸模組,否則延伸模組將不會升級次要版本,即使此屬性設定為 true 亦然。

enable_automatic_upgrade
bool

指出如果有較新版本的擴充功能可用,平臺是否應該自動升級延伸模組。

settings
<xref:JSON>

延伸模組的 Json 格式化公用設定。

protected_settings
<xref:JSON>

延伸模組可以包含 protectedSettings 或 protectedSettingsFromKeyVault,或完全不包含受保護的設定。

suppress_failures
bool

指出從擴充功能產生的失敗是否會隱藏 (作業失敗,例如不會連線到 VM,而不論此值為何) 。 預設為 false。