VirtualMachineDiagnosticRunCommandsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:virtual_machine_diagnostic_run_commands> attribute.
Constructor
VirtualMachineDiagnosticRunCommandsOperations(*args, **kwargs)
Methods
| begin_create_or_update |
The operation to create or update the diagnostic run command. |
| begin_delete |
The operation to delete the diagnostic run command. |
| begin_update |
The operation to update the diagnostic run command. |
| diagnostic_list_by_virtual_machine |
The operation to get all diagnostic run commands of a Virtual Machine. |
| get_by_virtual_machine |
The operation to get the diagnostic run command. |
begin_create_or_update
The operation to create or update the diagnostic run command.
begin_create_or_update(resource_group_name: str, vm_name: str, run_command_name: str, run_command: _models.VirtualMachineDiagnosticRunCommand, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[None]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
vm_name
Required
|
The name of the VirtualMachine. Required. |
|
run_command_name
Required
|
The name of the VirtualMachineDiagnosticRunCommand. Required. |
|
run_command
Required
|
Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. Is either a VirtualMachineDiagnosticRunCommand type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns None |
Exceptions
| Type | Description |
|---|---|
begin_delete
The operation to delete the diagnostic run command.
begin_delete(resource_group_name: str, vm_name: str, run_command_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
vm_name
Required
|
The name of the VirtualMachine. Required. |
|
run_command_name
Required
|
The name of the VirtualMachineDiagnosticRunCommand. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns None |
Exceptions
| Type | Description |
|---|---|
begin_update
The operation to update the diagnostic run command.
begin_update(resource_group_name: str, vm_name: str, run_command_name: str, run_command: _models.VirtualMachineRunCommandUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[None]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
vm_name
Required
|
The name of the VirtualMachine. Required. |
|
run_command_name
Required
|
The name of the VirtualMachineDiagnosticRunCommand. Required. |
|
run_command
Required
|
Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. Is either a VirtualMachineRunCommandUpdate type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns None |
Exceptions
| Type | Description |
|---|---|
diagnostic_list_by_virtual_machine
The operation to get all diagnostic run commands of a Virtual Machine.
diagnostic_list_by_virtual_machine(resource_group_name: str, vm_name: str, *, expand: str | None = None, **kwargs: Any) -> ItemPaged[VirtualMachineDiagnosticRunCommand]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
vm_name
Required
|
The name of the VirtualMachine. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
expand
|
The expand expression to apply on the operation. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
An iterator like instance of VirtualMachineDiagnosticRunCommand |
Exceptions
| Type | Description |
|---|---|
get_by_virtual_machine
The operation to get the diagnostic run command.
get_by_virtual_machine(resource_group_name: str, vm_name: str, run_command_name: str, *, expand: str | None = None, **kwargs: Any) -> VirtualMachineDiagnosticRunCommand
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
vm_name
Required
|
The name of the VirtualMachine. Required. |
|
run_command_name
Required
|
The name of the VirtualMachineDiagnosticRunCommand. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
expand
|
The expand expression to apply on the operation. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
VirtualMachineDiagnosticRunCommand. The VirtualMachineDiagnosticRunCommand is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|