共用方式為


VirtualMachineExtension 類別

描述虛擬機器擴充功能。

變數只會由伺服器填入,而且會在傳送要求時予以忽略。

必須填入所有必要的參數,才能傳送至 Azure。

繼承
azure.mgmt.compute.v2016_04_30_preview.models._models_py3.Resource
VirtualMachineExtension

建構函式

VirtualMachineExtension(*, location: str, tags: Dict[str, str] | None = None, force_update_tag: str | None = None, publisher: str | None = None, type_properties_type: str | None = None, type_handler_version: str | None = None, auto_upgrade_minor_version: bool | None = None, settings: MutableMapping[str, Any] | None = None, protected_settings: MutableMapping[str, Any] | None = None, instance_view: _models.VirtualMachineExtensionInstanceView | None = None, **kwargs: Any)

Keyword-Only Parameters

location
str

資源位置。 必要。

tags
dict[str, str]

資源標籤。

force_update_tag
str

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

publisher
str

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

type_properties_type
str

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

type_handler_version
str

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

auto_upgrade_minor_version
bool

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

settings
<xref:JSON>

擴充功能的 Json 格式化公用設定。

protected_settings
<xref:JSON>

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

instance_view
VirtualMachineExtensionInstanceView

虛擬機器擴充實例檢視。

變數

id
str

資源識別碼。

name
str

資源名稱。

type
str

資源類型。

location
str

資源位置。 必要。

tags
dict[str, str]

資源標籤。

force_update_tag
str

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

publisher
str

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

type_properties_type
str

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

type_handler_version
str

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

auto_upgrade_minor_version
bool

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

settings
<xref:JSON>

擴充功能的 Json 格式化公用設定。

protected_settings
<xref:JSON>

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

provisioning_state
str

布建狀態,只會出現在回應中。

instance_view
VirtualMachineExtensionInstanceView

虛擬機器擴充實例檢視。