Virtual Machine Scale Set Rolling Upgrades - Get Latest
Gets the status of the latest virtual machine scale set rolling upgrade.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest?api-version=2024-11-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
The name of the resource group. |
subscription
|
path | True |
string |
Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
vm
|
path | True |
string |
The name of the VM scale set. |
api-version
|
query | True |
string |
Client Api Version. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Virtual |
Virtual |
VirtualMachineScaleSetRollingUpgrade_GetLatest_MaximumSet_Gen
Sample request
Sample response
{
"properties": {
"policy": {
"maxBatchInstancePercent": 49,
"maxUnhealthyInstancePercent": 81,
"maxUnhealthyUpgradedInstancePercent": 98,
"pauseTimeBetweenBatches": "aaaaaaaaaaaaaaa",
"enableCrossZoneUpgrade": true,
"prioritizeUnhealthyInstances": true,
"rollbackFailedInstancesOnPolicyBreach": true,
"maxSurge": true
},
"runningStatus": {
"code": "RollingForward",
"startTime": "2021-11-30T13:06:23.362Z",
"lastAction": "Start",
"lastActionTime": "2021-11-30T13:06:23.362Z"
},
"progress": {
"successfulInstanceCount": 6,
"failedInstanceCount": 25,
"inProgressInstanceCount": 20,
"pendingInstanceCount": 27
},
"error": {
"details": [
{
"code": "aaaaaaaaaaaaaaaaaaaaaaaa",
"target": "aaaa",
"message": "aa"
}
],
"innererror": {
"exceptiontype": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"errordetail": "aaaaaaaaaaaaaaaaaaaaaaaa"
},
"code": "aaaaaaa",
"target": "aaaaaaa",
"message": "aaaaaaaaa"
}
},
"id": "aaaaaaaaaa",
"name": "aaaaaaaaaaaaaaaaaaa",
"type": "aaaaaaaaaaaaaaaaaaaaa",
"location": "aaaaaa",
"tags": {
"key8533": "aaaaaaaaaaaaaaaaaaaaaaaa"
}
}
VirtualMachineScaleSetRollingUpgrade_GetLatest_MinimumSet_Gen
Sample request
Sample response
{
"location": "aaaaaa",
"id": "aaaaaaaaaa"
}
Definitions
Name | Description |
---|---|
Api |
Api error. |
Api |
Api error base. |
Cloud |
An error response from the Compute service. |
Inner |
Inner error details. |
Rolling |
The last action performed on the rolling upgrade. |
Rolling |
The configuration parameters used while performing a rolling upgrade. |
Rolling |
Information about the number of virtual machine instances in each upgrade state. |
Rolling |
Information about the current running state of the overall upgrade. |
Rolling |
Code indicating the current status of the upgrade. |
Rolling |
The status of the latest virtual machine scale set rolling upgrade. |
ApiError
Api error.
Name | Type | Description |
---|---|---|
code |
string |
The error code. |
details |
The Api error details |
|
innererror |
The Api inner error |
|
message |
string |
The error message. |
target |
string |
The target of the particular error. |
ApiErrorBase
Api error base.
Name | Type | Description |
---|---|---|
code |
string |
The error code. |
message |
string |
The error message. |
target |
string |
The target of the particular error. |
CloudError
An error response from the Compute service.
Name | Type | Description |
---|---|---|
error |
Api error. |
InnerError
Inner error details.
Name | Type | Description |
---|---|---|
errordetail |
string |
The internal error message or exception dump. |
exceptiontype |
string |
The exception type. |
RollingUpgradeActionType
The last action performed on the rolling upgrade.
Value | Description |
---|---|
Cancel | |
Start |
RollingUpgradePolicy
The configuration parameters used while performing a rolling upgrade.
Name | Type | Description |
---|---|---|
enableCrossZoneUpgrade |
boolean |
Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. |
maxBatchInstancePercent |
integer (int32) minimum: 5maximum: 100 |
The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. |
maxSurge |
boolean |
Create new virtual machines to upgrade the scale set, rather than updating the existing virtual machines. Existing virtual machines will be deleted once the new virtual machines are created for each batch. |
maxUnhealthyInstancePercent |
integer (int32) minimum: 5maximum: 100 |
The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%. |
maxUnhealthyUpgradedInstancePercent |
integer (int32) minimum: 0maximum: 100 |
The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%. |
pauseTimeBetweenBatches |
string |
The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S). |
prioritizeUnhealthyInstances |
boolean |
Upgrade all unhealthy instances in a scale set before any healthy instances. |
rollbackFailedInstancesOnPolicyBreach |
boolean |
Rollback failed instances to previous model if the Rolling Upgrade policy is violated. |
RollingUpgradeProgressInfo
Information about the number of virtual machine instances in each upgrade state.
Name | Type | Description |
---|---|---|
failedInstanceCount |
integer (int32) |
The number of instances that have failed to be upgraded successfully. |
inProgressInstanceCount |
integer (int32) |
The number of instances that are currently being upgraded. |
pendingInstanceCount |
integer (int32) |
The number of instances that have not yet begun to be upgraded. |
successfulInstanceCount |
integer (int32) |
The number of instances that have been successfully upgraded. |
RollingUpgradeRunningStatus
Information about the current running state of the overall upgrade.
Name | Type | Description |
---|---|---|
code |
Code indicating the current status of the upgrade. |
|
lastAction |
The last action performed on the rolling upgrade. |
|
lastActionTime |
string (date-time) |
Last action time of the upgrade. |
startTime |
string (date-time) |
Start time of the upgrade. |
RollingUpgradeStatusCode
Code indicating the current status of the upgrade.
Value | Description |
---|---|
Cancelled | |
Completed | |
Faulted | |
RollingForward |
RollingUpgradeStatusInfo
The status of the latest virtual machine scale set rolling upgrade.
Name | Type | Description |
---|---|---|
id |
string |
Resource Id |
location |
string |
Resource location |
name |
string |
Resource name |
properties.error |
Error details for this upgrade, if there are any. |
|
properties.policy |
The rolling upgrade policies applied for this upgrade. |
|
properties.progress |
Information about the number of virtual machine instances in each upgrade state. |
|
properties.runningStatus |
Information about the current running state of the overall upgrade. |
|
tags |
object |
Resource tags |
type |
string |
Resource type |