Share via

Automatic OS Upgrade operations are not supported for this subscription

Nitin Jamadagni Madapura Rajashekhar 20 Reputation points Microsoft Employee
2026-01-07T00:07:24.7233333+00:00
az vmss update --name <vmss-name> --resource-group <rg> --enable-auto-os-upgrade true --upgrade-policy-mode Automatic

(OperationNotAllowed) Automatic OS Upgrade operations are not supported for this subscription. Please register the Subscription with Automatic OS Upgrade feature.

Code: OperationNotAllowed

Message: Automatic OS Upgrade operations are not supported for this subscription. Please register the Subscription with Automatic OS Upgrade feature.


When i try to update my subscription to have this feature enabled

az feature register --namespace Microsoft.Compute --name AutoOSUpgradePreview
az provider register --namespace Microsoft.Compute

az feature show --namespace Microsoft.Compute --name RollingUpgradePreview --query "{name: name, state: properties.state}" -o json

{

"id": "<PII info removed>",
"name": "Microsoft.Compute/RollingUpgradePreview",
"properties": {
  "state": "Pending"
},
"type": "Microsoft.Features/providers/features"
```  }


I need help with getting this to a registered state so that I can enable Automatic OS upgrades on my VMSS

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets

Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.

0 comments No comments
{count} votes

Answer accepted by question author
  1. Ankit Yadav 12,205 Reputation points Microsoft External Staff Moderator
    2026-01-07T00:27:29.6433333+00:00

    After working together with the customer offline, we found that this VMSS uses Flexible Orchestration. As a result, it does not support the option to enable Automatic OS upgrades.

    This limitation is specific to Flexible Orchestration type VMSS, which means that automatic updates for the operating system cannot be activated for this configuration.

    User's image

    Source: https://github.com/MicrosoftDocs/azure-compute-docs/blob/main/articles/virtual-machine-scale-sets/virtual-machine-scale-sets-orchestration-modes.md#autoscaling-and-instance-orchestration

    [Note: The initial cause of the AutomaticOSUpgrade failure error was the absence of the RP feature VMSSFlexAutoOSUpgrade for the subscription]

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.