VirtualMachineScaleSetVMRunCommandsOperations Class      
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:virtual_machine_scale_set_vm_run_commands> attribute.
Constructor
VirtualMachineScaleSetVMRunCommandsOperations(*args, **kwargs)
	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.
async begin_create_or_update(resource_group_name: str, vm_scale_set_name: str, instance_id: str, run_command_name: str, run_command: _models.VirtualMachineRunCommand, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.VirtualMachineRunCommand]
		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 VirtualMachineRunCommand. Required.  | 
| 
		 run_command 
			
				Required
			 
	 | 
	
		
		 Parameters supplied to the Create Virtual Machine RunCommand operation. Is either a VirtualMachineRunCommand type or a IO[bytes] type. Required.  | 
Returns
| Type | Description | 
|---|---|
| 
					 An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response)  | 
		
Exceptions
| Type | Description | 
|---|---|
begin_delete
The operation to delete the VMSS VM run command.
async begin_delete(resource_group_name: str, vm_scale_set_name: str, instance_id: str, run_command_name: str, **kwargs: Any) -> AsyncLROPoller[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 VirtualMachineRunCommand. Required.  | 
Returns
| Type | Description | 
|---|---|
| 
					 An instance of AsyncLROPoller that returns either None or the result of cls(response)  | 
		
Exceptions
| Type | Description | 
|---|---|
begin_update
The operation to update the VMSS VM run command.
async 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) -> AsyncLROPoller[_models.VirtualMachineRunCommand]
		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 VirtualMachineRunCommand. Required.  | 
| 
		 run_command 
			
				Required
			 
	 | 
	
		
		 Resource create parameters. Is either a VirtualMachineRunCommandUpdate type or a IO[bytes] type. Required.  | 
Returns
| Type | Description | 
|---|---|
| 
					 An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response)  | 
		
Exceptions
| Type | Description | 
|---|---|
get
The operation to get the VMSS VM run command.
async get(resource_group_name: str, vm_scale_set_name: str, instance_id: str, run_command_name: str, expand: str | None = None, **kwargs: Any) -> VirtualMachineRunCommand
		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 VirtualMachineRunCommand. Required.  | 
| 
		 expand 
	 | 
	
		
		 The expand expression to apply on the operation. Default value is None. Default value: None 
			 | 
Returns
| Type | Description | 
|---|---|
| 
					 VirtualMachineRunCommand or the result of cls(response)  | 
		
Exceptions
| Type | Description | 
|---|---|
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: str | None = None, **kwargs: Any) -> AsyncItemPaged[VirtualMachineRunCommand]
		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.  | 
| 
		 expand 
	 | 
	
		
		 The expand expression to apply on the operation. Default value is None. Default value: None 
			 | 
Returns
| Type | Description | 
|---|---|
| 
					 An iterator like instance of either VirtualMachineRunCommand or the result of cls(response)  | 
		
Exceptions
| Type | Description | 
|---|---|
Attributes
models
models = <module 'azure.mgmt.compute.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv89\\Lib\\site-packages\\azure\\mgmt\\compute\\models\\__init__.py'>