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 minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
vm
|
path | True |
string |
The name of the VM scale set. |
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Azure operation completed successfully. |
|
Other Status Codes |
An unexpected error response. |
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. |
created |
The type of identity that created the resource. |
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. |
system |
Metadata pertaining to creation and last modification of the resource. |
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. |
createdByType
The type of identity that created the resource.
Value | Description |
---|---|
User | |
Application | |
ManagedIdentity | |
Key |
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 |
---|---|
Start | |
Cancel |
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) maximum: 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 |
---|---|
RollingForward | |
Cancelled | |
Completed | |
Faulted |
RollingUpgradeStatusInfo
The status of the latest virtual machine scale set rolling upgrade.
Name | Type | Description |
---|---|---|
id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
location |
string |
The geo-location where the resource lives |
name |
string |
The name of the resource |
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. |
|
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
tags |
object |
Resource tags. |
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |