다음을 통해 공유


VirtualMachineRunCommand 클래스

Virtual Machine 실행 명령에 대해 설명합니다.

변수는 서버에서만 채워지고 요청을 보낼 때 무시됩니다.

Azure로 보내려면 모든 필수 매개 변수를 채워야 합니다.

상속
azure.mgmt.compute.v2022_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 Storage Blob을 지정합니다.

error_blob_uri
str

스크립트 오류 스트림이 업로드될 Azure Storage Blob을 지정합니다.

변수

id
str

리소스 ID입니다.

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 Storage Blob을 지정합니다.

error_blob_uri
str

스크립트 오류 스트림이 업로드될 Azure Storage Blob을 지정합니다.

provisioning_state
str

응답에만 표시되는 프로비전 상태입니다.

instance_view
VirtualMachineRunCommandInstanceView

가상 머신 실행 명령 instance 보기입니다.