VirtualMachineScaleSetVMDiagnosticRunCommandsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:virtual_machine_scale_set_vm_diagnostic_run_commands> attribute.
Constructor
VirtualMachineScaleSetVMDiagnosticRunCommandsOperations(*args, **kwargs)
Methods
| begin_create_or_update |
The operation to create or update the VMSS VM diagnostic run command. |
| begin_delete |
The operation to delete the VMSS VM diagnostic run command. |
| begin_update |
The operation to update the VMSS VM diagnostic run command. |
| diagnostic_list |
The operation to get all diagnostic run commands of an instance in Virtual Machine Scaleset. |
| get |
The operation to get the VMSS VM diagnostic run command. |
begin_create_or_update
The operation to create or update the VMSS VM diagnostic run command.
begin_create_or_update(resource_group_name: str, vm_scale_set_name: str, instance_id: 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_scale_set_name
Required
|
The name of the VirtualMachineScaleSet. Required. |
|
instance_id
Required
|
The name of the VirtualMachineScaleSetVM. 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 VMSS VM diagnostic run command.
begin_delete(resource_group_name: str, vm_scale_set_name: str, instance_id: 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_scale_set_name
Required
|
The name of the VirtualMachineScaleSet. Required. |
|
instance_id
Required
|
The name of the VirtualMachineScaleSetVM. 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 VMSS VM diagnostic run command.
begin_update(resource_group_name: str, vm_scale_set_name: str, instance_id: 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_scale_set_name
Required
|
The name of the VirtualMachineScaleSet. Required. |
|
instance_id
Required
|
The name of the VirtualMachineScaleSetVM. Required. |
|
run_command_name
Required
|
The name of the VirtualMachineDiagnosticRunCommand. Required. |
|
run_command
Required
|
Resource create parameters. 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
The operation to get all diagnostic run commands of an instance in Virtual Machine Scaleset.
diagnostic_list(resource_group_name: str, vm_scale_set_name: str, instance_id: 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_scale_set_name
Required
|
The name of the VirtualMachineScaleSet. Required. |
|
instance_id
Required
|
The name of the VirtualMachineScaleSetVM. 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
The operation to get the VMSS VM diagnostic run command.
get(resource_group_name: str, vm_scale_set_name: str, instance_id: 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_scale_set_name
Required
|
The name of the VirtualMachineScaleSet. Required. |
|
instance_id
Required
|
The name of the VirtualMachineScaleSetVM. 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 |
|---|---|