Share via


RunCommandDocument 類別

描述執行命令的屬性。

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

繼承
azure.mgmt.compute.v2020_12_01.models._models_py3.RunCommandDocumentBase
RunCommandDocument

建構函式

RunCommandDocument(*, schema: str, id: str, os_type: str | _models.OperatingSystemTypes, label: str, description: str, script: List[str], parameters: List[_models.RunCommandParameterDefinition] | None = None, **kwargs: Any)

Keyword-Only Parameters

schema
str

VM 執行命令架構。 必要。

id
str

VM 執行命令識別碼。必要。

os_type
strOperatingSystemTypes

作業系統類型。 必要。 已知值為:「Windows」 和 「Linux」。

label
str

VM 執行命令標籤。 必要。

description
str

VM 執行命令描述。 必要。

script
list[str]

要執行的腳本。 必要。

parameters
list[RunCommandParameterDefinition]

腳本所使用的參數。

變數

schema
str

VM 執行命令架構。 必要。

id
str

VM 執行命令識別碼。必要。

os_type
strOperatingSystemTypes

作業系統類型。 必要。 已知值為:「Windows」 和 「Linux」。

label
str

VM 執行命令標籤。 必要。

description
str

VM 執行命令描述。 必要。

script
list[str]

要執行的腳本。 必要。

parameters
list[RunCommandParameterDefinition]

腳本所使用的參數。