VirtualMachineRunCommandsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ComputeManagementClient's

<xref:virtual_machine_run_commands> attribute.

Inheritance
builtins.object
VirtualMachineRunCommandsOperations

Constructor

VirtualMachineRunCommandsOperations(*args, **kwargs)

Methods

get

Gets specific run command for a subscription in a location.

list

Lists all available run commands for a subscription in a location.

get

Gets specific run command for a subscription in a location.

get(location: str, command_id: str, **kwargs: Any) -> RunCommandDocument

Parameters

Name Description
location
Required
str

The location upon which run commands is queried. Required.

command_id
Required
str

The command id. Required.

Returns

Type Description

RunCommandDocument or the result of cls(response)

Exceptions

Type Description

list

Lists all available run commands for a subscription in a location.

list(location: str, **kwargs: Any) -> Iterable[RunCommandDocumentBase]

Parameters

Name Description
location
Required
str

The location upon which run commands is queried. Required.

Returns

Type Description

An iterator like instance of either RunCommandDocumentBase or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.compute.v2017_12_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2017_12_01\\models\\__init__.py'>