VirtualMachineExtensionsOperations Class
VirtualMachineExtensionsOperations 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.objectVirtualMachineExtensionsOperations
Constructor
VirtualMachineExtensionsOperations(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 extension. |
| begin_delete |
The operation to delete the extension. |
| begin_update |
The operation to update the extension. |
| get |
The operation to get the extension. |
| list |
The operation to get all extensions of a Virtual Machine. |
begin_create_or_update
The operation to create or update the extension.
begin_create_or_update(resource_group_name: str, vm_name: str, vm_extension_name: str, extension_parameters: _models.VirtualMachineExtension, **kwargs: Any) -> LROPoller[_models.VirtualMachineExtension]
Parameters
- vm_name
- str
The name of the virtual machine where the extension should be created or updated.
- extension_parameters
- VirtualMachineExtension
Parameters supplied to the Create Virtual Machine Extension 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 VirtualMachineExtension or the result of cls(response)
Return type
Exceptions
begin_delete
The operation to delete the extension.
begin_delete(resource_group_name: str, vm_name: str, vm_extension_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 extension.
begin_update(resource_group_name: str, vm_name: str, vm_extension_name: str, extension_parameters: _models.VirtualMachineExtensionUpdate, **kwargs: Any) -> LROPoller[_models.VirtualMachineExtension]
Parameters
- extension_parameters
- VirtualMachineExtensionUpdate
Parameters supplied to the Update Virtual Machine Extension 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 VirtualMachineExtension or the result of cls(response)
Return type
Exceptions
get
The operation to get the extension.
get(resource_group_name: str, vm_name: str, vm_extension_name: str, expand: Optional[str] = None, **kwargs: Any) -> _models.VirtualMachineExtension
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
VirtualMachineExtension, or the result of cls(response)
Return type
Exceptions
list
The operation to get all extensions of a Virtual Machine.
list(resource_group_name: str, vm_name: str, expand: Optional[str] = None, **kwargs: Any) -> _models.VirtualMachineExtensionsListResult
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
VirtualMachineExtensionsListResult, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.compute.v2018_10_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2018_10_01\\models\\__init__.py'>
Feedback
Submit and view feedback for