VirtualMachineRunCommandsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:virtual_machine_run_commands> attribute.
- Inheritance
-
builtins.objectVirtualMachineRunCommandsOperations
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.
async get(location: str, command_id: str, **kwargs: Any) -> RunCommandDocument
Parameters
Name | Description |
---|---|
location
Required
|
The location upon which run commands is queried. Required. |
command_id
Required
|
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) -> AsyncIterable[RunCommandDocumentBase]
Parameters
Name | Description |
---|---|
location
Required
|
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_03_30.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2017_03_30\\models\\__init__.py'>