VirtualMachineScaleSetVMRunCommandsOperations Class
VirtualMachineScaleSetVMRunCommandsOperations operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectVirtualMachineScaleSetVMRunCommandsOperations
Constructor
VirtualMachineScaleSetVMRunCommandsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| begin_create_or_update |
The operation to create or update the VMSS VM run command. |
| begin_delete |
The operation to delete the VMSS VM run command. |
| begin_update |
The operation to update the VMSS VM run command. |
| get |
The operation to get the VMSS VM run command. |
| list |
The operation to get all run commands of an instance in Virtual Machine Scaleset. |
begin_create_or_update
The operation to create or update the VMSS VM 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.VirtualMachineRunCommand, **kwargs: Any) -> LROPoller[_models.VirtualMachineRunCommand]
Parameters
- run_command
- VirtualMachineRunCommand
Parameters supplied to the Create Virtual Machine RunCommand operation.
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or PollingMethod
By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response)
Return type
Exceptions
begin_delete
The operation to delete the VMSS VM 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
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or PollingMethod
By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_update
The operation to update the VMSS VM run command.
begin_update(resource_group_name: str, vm_scale_set_name: str, instance_id: str, run_command_name: str, run_command: _models.VirtualMachineRunCommandUpdate, **kwargs: Any) -> LROPoller[_models.VirtualMachineRunCommand]
Parameters
- run_command
- VirtualMachineRunCommandUpdate
Parameters supplied to the Update Virtual Machine RunCommand operation.
- cls
- callable
A custom type or function that will be passed the direct response
- continuation_token
- str
A continuation token to restart a poller from a saved state.
- polling
- bool or PollingMethod
By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response)
Return type
Exceptions
get
The operation to get the VMSS VM run command.
get(resource_group_name: str, vm_scale_set_name: str, instance_id: str, run_command_name: str, expand: Optional[str] = None, **kwargs: Any) -> _models.VirtualMachineRunCommand
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
VirtualMachineRunCommand, or the result of cls(response)
Return type
Exceptions
list
The operation to get all run commands of an instance in Virtual Machine Scaleset.
list(resource_group_name: str, vm_scale_set_name: str, instance_id: str, expand: Optional[str] = None, **kwargs: Any) -> Iterable[_models.VirtualMachineRunCommandsListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either VirtualMachineRunCommandsListResult or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.compute.v2020_12_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2020_12_01\\models\\__init__.py'>
Feedback
Submit and view feedback for