VirtualMachineScaleSetRollingUpgradesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ComputeManagementClient's

<xref:virtual_machine_scale_set_rolling_upgrades> attribute.

Inheritance
builtins.object
VirtualMachineScaleSetRollingUpgradesOperations

Constructor

VirtualMachineScaleSetRollingUpgradesOperations(*args, **kwargs)

Methods

begin_cancel

Cancels the current virtual machine scale set rolling upgrade.

begin_start_os_upgrade

Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected.

get_latest

Gets the status of the latest virtual machine scale set rolling upgrade.

begin_cancel

Cancels the current virtual machine scale set rolling upgrade.

async begin_cancel(resource_group_name: str, vm_scale_set_name: str, **kwargs: Any) -> AsyncLROPoller[OperationStatusResponse]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

vm_scale_set_name
Required
str

The name of the VM scale set. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response)

Exceptions

Type Description

begin_start_os_upgrade

Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected.

async begin_start_os_upgrade(resource_group_name: str, vm_scale_set_name: str, **kwargs: Any) -> AsyncLROPoller[OperationStatusResponse]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

vm_scale_set_name
Required
str

The name of the VM scale set. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response)

Exceptions

Type Description

get_latest

Gets the status of the latest virtual machine scale set rolling upgrade.

async get_latest(resource_group_name: str, vm_scale_set_name: str, **kwargs: Any) -> RollingUpgradeStatusInfo

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

vm_scale_set_name
Required
str

The name of the VM scale set. Required.

Returns

Type Description

RollingUpgradeStatusInfo or the result of cls(response)

Exceptions

Type Description

Attributes

models

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