VirtualMachineExtensionsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ComputeManagementClient's

<xref:virtual_machine_extensions> attribute.

Inheritance
builtins.object
VirtualMachineExtensionsOperations

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.

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) -> LROPoller[_models.VirtualMachineExtension]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

vm_name
Required
str

The name of the virtual machine where the extension should be created or updated. Required.

vm_extension_name
Required
str

The name of the virtual machine extension. Required.

extension_parameters
Required

Parameters supplied to the Create Virtual Machine Extension operation. Is either a VirtualMachineExtension type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response)

Exceptions

Type Description

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

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

vm_name
Required
str

The name of the virtual machine where the extension should be deleted. Required.

vm_extension_name
Required
str

The name of the virtual machine extension. Required.

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

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, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.VirtualMachineExtension]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

vm_name
Required
str

The name of the virtual machine where the extension should be updated. Required.

vm_extension_name
Required
str

The name of the virtual machine extension. Required.

extension_parameters
Required

Parameters supplied to the Update Virtual Machine Extension operation. Is either a VirtualMachineExtensionUpdate type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response)

Exceptions

Type Description

get

The operation to get the extension.

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
str

The name of the resource group. Required.

vm_name
Required
str

The name of the virtual machine containing the extension. Required.

vm_extension_name
Required
str

The name of the virtual machine extension. Required.

Keyword-Only Parameters

Name Description
expand
str

The expand expression to apply on the operation. Default value is None.

Returns

Type Description

VirtualMachineExtension or the result of cls(response)

Exceptions

Type Description

list

The operation to get all extensions of a Virtual Machine.

list(resource_group_name: str, vm_name: str, *, expand: str | None = None, **kwargs: Any) -> VirtualMachineExtensionsListResult

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

vm_name
Required
str

The name of the virtual machine containing the extension. Required.

Keyword-Only Parameters

Name Description
expand
str

The expand expression to apply on the operation. Default value is None.

Returns

Type Description

VirtualMachineExtensionsListResult or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.compute.v2024_03_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2024_03_01\\models\\__init__.py'>