共用方式為


VirtualMachineRunCommand 類別

描述虛擬機器執行命令。

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

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

繼承
azure.mgmt.compute.v2021_11_01.models._models_py3.Resource
VirtualMachineRunCommand

建構函式

VirtualMachineRunCommand(*, location: str, tags: Dict[str, str] | None = None, source: _models.VirtualMachineRunCommandScriptSource | None = None, parameters: List[_models.RunCommandInputParameter] | None = None, protected_parameters: List[_models.RunCommandInputParameter] | None = None, async_execution: bool = False, run_as_user: str | None = None, run_as_password: str | None = None, timeout_in_seconds: int | None = None, output_blob_uri: str | None = None, error_blob_uri: str | None = None, **kwargs: Any)

Keyword-Only Parameters

location
str

資源位置。 必要。

tags
dict[str, str]

資源標籤。

source
VirtualMachineRunCommandScriptSource

執行命令腳本的來源。

parameters
list[RunCommandInputParameter]

腳本所使用的參數。

protected_parameters
list[RunCommandInputParameter]

腳本所使用的參數。

async_execution
bool

選擇性。 如果設定為 true,布建會在腳本啟動時立即完成,且不會等待腳本完成。

run_as_user
str

在執行執行命令時,指定 VM 上的使用者帳戶。

run_as_password
str

在執行執行命令時,指定 VM 上的使用者帳戶密碼。

timeout_in_seconds
int

執行執行命令的逾時以秒為單位。

output_blob_uri
str

指定將上傳腳本輸出資料流程的 Azure 儲存體 Blob。

error_blob_uri
str

指定將上傳腳本錯誤資料流程的 Azure 儲存體 Blob。

變數

id
str

資源識別碼。

name
str

資源名稱。

type
str

資源類型。

location
str

資源位置。 必要。

tags
dict[str, str]

資源標籤。

source
VirtualMachineRunCommandScriptSource

執行命令腳本的來源。

parameters
list[RunCommandInputParameter]

腳本所使用的參數。

protected_parameters
list[RunCommandInputParameter]

腳本所使用的參數。

async_execution
bool

選擇性。 如果設定為 true,布建會在腳本啟動時立即完成,且不會等待腳本完成。

run_as_user
str

在執行執行命令時,指定 VM 上的使用者帳戶。

run_as_password
str

在執行執行命令時,指定 VM 上的使用者帳戶密碼。

timeout_in_seconds
int

執行執行命令的逾時以秒為單位。

output_blob_uri
str

指定將上傳腳本輸出資料流程的 Azure 儲存體 Blob。

error_blob_uri
str

指定將上傳腳本錯誤資料流程的 Azure 儲存體 Blob。

provisioning_state
str

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

instance_view
VirtualMachineRunCommandInstanceView

虛擬機器執行命令實例檢視。