VirtualMachineScaleSetsOperations Class
VirtualMachineScaleSetsOperations async 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.objectVirtualMachineScaleSetsOperations
Constructor
VirtualMachineScaleSetsOperations(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 |
Create or update a VM scale set. |
| begin_deallocate |
Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates. |
| begin_delete |
Deletes a VM scale set. |
| begin_delete_instances |
Deletes virtual machines in a VM scale set. |
| begin_power_off |
Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. |
| begin_reimage |
Reimages (upgrade the operating system) one or more virtual machines in a VM scale set. |
| begin_reimage_all |
Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. |
| begin_restart |
Restarts one or more virtual machines in a VM scale set. |
| begin_start |
Starts one or more virtual machines in a VM scale set. |
| begin_update_instances |
Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. |
| get |
Display information about a virtual machine scale set. |
| get_instance_view |
Gets the status of a VM scale set instance. |
| list |
Gets a list of all VM scale sets under a resource group. |
| list_all |
Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. |
| list_skus |
Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. |
begin_create_or_update
Create or update a VM scale set.
async begin_create_or_update(resource_group_name: str, name: str, parameters: azure.mgmt.compute.v2016_04_30_preview.models._models_py3.VirtualMachineScaleSet, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.VirtualMachineScaleSet]
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 AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. 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 AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response)
Return type
Exceptions
begin_deallocate
Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates.
async begin_deallocate(resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.VirtualMachineScaleSetVMInstanceIDs] = None, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.OperationStatusResponse]
Parameters
- vm_instance_i_ds
- VirtualMachineScaleSetVMInstanceIDs
A list of virtual machine instance IDs from the VM scale set.
- 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 AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. 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 AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response)
Return type
Exceptions
begin_delete
Deletes a VM scale set.
async begin_delete(resource_group_name: str, vm_scale_set_name: str, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.OperationStatusResponse]
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 AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. 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 AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response)
Return type
Exceptions
begin_delete_instances
Deletes virtual machines in a VM scale set.
async begin_delete_instances(resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: azure.mgmt.compute.v2016_04_30_preview.models._models_py3.VirtualMachineScaleSetVMInstanceRequiredIDs, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.OperationStatusResponse]
Parameters
- vm_instance_i_ds
- VirtualMachineScaleSetVMInstanceRequiredIDs
A list of virtual machine instance IDs from the VM scale set.
- 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 AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. 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 AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response)
Return type
Exceptions
begin_power_off
Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges.
async begin_power_off(resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.VirtualMachineScaleSetVMInstanceIDs] = None, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.OperationStatusResponse]
Parameters
- vm_instance_i_ds
- VirtualMachineScaleSetVMInstanceIDs
A list of virtual machine instance IDs from the VM scale set.
- 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 AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. 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 AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response)
Return type
Exceptions
begin_reimage
Reimages (upgrade the operating system) one or more virtual machines in a VM scale set.
async begin_reimage(resource_group_name: str, vm_scale_set_name: str, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.OperationStatusResponse]
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 AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. 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 AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response)
Return type
Exceptions
begin_reimage_all
Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks.
async begin_reimage_all(resource_group_name: str, vm_scale_set_name: str, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.OperationStatusResponse]
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 AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. 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 AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response)
Return type
Exceptions
begin_restart
Restarts one or more virtual machines in a VM scale set.
async begin_restart(resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.VirtualMachineScaleSetVMInstanceIDs] = None, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.OperationStatusResponse]
Parameters
- vm_instance_i_ds
- VirtualMachineScaleSetVMInstanceIDs
A list of virtual machine instance IDs from the VM scale set.
- 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 AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. 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 AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response)
Return type
Exceptions
begin_start
Starts one or more virtual machines in a VM scale set.
async begin_start(resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.VirtualMachineScaleSetVMInstanceIDs] = None, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.OperationStatusResponse]
Parameters
- vm_instance_i_ds
- VirtualMachineScaleSetVMInstanceIDs
A list of virtual machine instance IDs from the VM scale set.
- 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 AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. 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 AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response)
Return type
Exceptions
begin_update_instances
Upgrades one or more virtual machines to the latest SKU set in the VM scale set model.
async begin_update_instances(resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: azure.mgmt.compute.v2016_04_30_preview.models._models_py3.VirtualMachineScaleSetVMInstanceRequiredIDs, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.OperationStatusResponse]
Parameters
- vm_instance_i_ds
- VirtualMachineScaleSetVMInstanceRequiredIDs
A list of virtual machine instance IDs from the VM scale set.
- 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 AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. 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 AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response)
Return type
Exceptions
get
Display information about a virtual machine scale set.
async get(resource_group_name: str, vm_scale_set_name: str, **kwargs: Any) -> azure.mgmt.compute.v2016_04_30_preview.models._models_py3.VirtualMachineScaleSet
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
VirtualMachineScaleSet, or the result of cls(response)
Return type
Exceptions
get_instance_view
Gets the status of a VM scale set instance.
async get_instance_view(resource_group_name: str, vm_scale_set_name: str, **kwargs: Any) -> azure.mgmt.compute.v2016_04_30_preview.models._models_py3.VirtualMachineScaleSetInstanceView
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
VirtualMachineScaleSetInstanceView, or the result of cls(response)
Return type
Exceptions
list
Gets a list of all VM scale sets under a resource group.
list(resource_group_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.VirtualMachineScaleSetListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either VirtualMachineScaleSetListResult or the result of cls(response)
Return type
Exceptions
list_all
Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets.
list_all(**kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.VirtualMachineScaleSetListWithLinkResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either VirtualMachineScaleSetListWithLinkResult or the result of cls(response)
Return type
Exceptions
list_skus
Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU.
list_skus(resource_group_name: str, vm_scale_set_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2016_04_30_preview.models._models_py3.VirtualMachineScaleSetListSkusResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either VirtualMachineScaleSetListSkusResult or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.compute.v2016_04_30_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2016_04_30_preview\\models\\__init__.py'>
Feedback
Submit and view feedback for