VirtualMachineExtensionsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:virtual_machine_extensions> attribute.
Constructor
VirtualMachineExtensionsOperations(*args, **kwargs)
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.
async begin_create_or_update(resource_group_name: str, vm_name: str, vm_extension_name: str, extension_parameters: _models.VirtualMachineExtension, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.VirtualMachineExtension]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
vm_name
Required
|
The name of the virtual machine. Required. |
|
vm_extension_name
Required
|
The name of the virtual machine extension. Required. |
|
extension_parameters
Required
|
Parameters supplied to the Create Virtual Machine Extension operation. Is one of the following types: VirtualMachineExtension, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns VirtualMachineExtension. The VirtualMachineExtension is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
begin_delete
The operation to delete the extension.
async begin_delete(resource_group_name: str, vm_name: str, vm_extension_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_name
Required
|
The name of the virtual machine. Required. |
|
vm_extension_name
Required
|
The name of the virtual machine extension. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns None |
Exceptions
| Type | Description |
|---|---|
begin_update
The operation to update the extension.
async begin_update(resource_group_name: str, vm_name: str, vm_extension_name: str, extension_parameters: _models.VirtualMachineExtensionUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.VirtualMachineExtension]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
vm_name
Required
|
The name of the virtual machine. Required. |
|
vm_extension_name
Required
|
The name of the virtual machine extension. Required. |
|
extension_parameters
Required
|
Parameters supplied to the Update Virtual Machine Extension operation. Is one of the following types: VirtualMachineExtensionUpdate, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns VirtualMachineExtension. The VirtualMachineExtension is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
get
The operation to get the extension.
async get(resource_group_name: str, vm_name: str, vm_extension_name: str, *, expand: str | None = None, **kwargs: Any) -> VirtualMachineExtension
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
vm_name
Required
|
The name of the virtual machine. Required. |
|
vm_extension_name
Required
|
The name of the virtual machine extension. 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 |
|---|---|
|
VirtualMachineExtension. The VirtualMachineExtension is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
list
The operation to get all extensions of a Virtual Machine.
async list(resource_group_name: str, vm_name: str, *, expand: str | None = None, **kwargs: Any) -> VirtualMachineExtensionsListResult
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
vm_name
Required
|
The name of the virtual machine. 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 |
|---|---|
|
VirtualMachineExtensionsListResult. The VirtualMachineExtensionsListResult is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|