Skip to main content

virtual_machine_scale_set_rolling_upgrades

Creates, updates, deletes, gets or lists a virtual_machine_scale_set_rolling_upgrades resource.

Overview

Namevirtual_machine_scale_set_rolling_upgrades
TypeResource
Idazure.compute.virtual_machine_scale_set_rolling_upgrades

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
errorobjectError details for this upgrade, if there are any.
locationstringThe geo-location where the resource lives. Required.
policyobjectThe rolling upgrade policies applied for this upgrade.
progressobjectInformation about the number of virtual machine instances in each upgrade state.
runningStatusobjectInformation about the current running state of the overall upgrade.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_latestselectresource_group_name, vm_scale_set_name, subscription_idGets the status of the latest virtual machine scale set rolling upgrade.
start_extension_upgradeexecresource_group_name, vm_scale_set_name, subscription_idStarts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected.
start_os_upgradeexecresource_group_name, vm_scale_set_name, subscription_idStarts 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.
cancelexecresource_group_name, vm_scale_set_name, subscription_idCancels the current virtual machine scale set rolling upgrade.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
vm_scale_set_namestringThe name of the VM scale set. Required.

SELECT examples

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

SELECT
id,
name,
error,
location,
policy,
progress,
runningStatus,
systemData,
tags,
type
FROM azure.compute.virtual_machine_scale_set_rolling_upgrades
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND vm_scale_set_name = '{{ vm_scale_set_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected.

EXEC azure.compute.virtual_machine_scale_set_rolling_upgrades.start_extension_upgrade 
@resource_group_name='{{ resource_group_name }}' --required,
@vm_scale_set_name='{{ vm_scale_set_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;