Azure (Resource Manager deployments)

Azure OperationNotAllowed: operation results in exceeding quota limits

Azure OperationNotAllowed during deployment usually means a quota, such as regional vCPUs, would be exceeded, or the operation is not allowed on the chosen SKU.

By EpiFive Editorial TeamSources checked How we check our guides

What the error means

OperationNotAllowed is an Azure Resource Manager error with more than one meaning, and Microsoft's common deployment errors table says so: there can be several reasons for this error message. The deployment may be attempting an operation which is not allowed on the specified SKU, or an operation that exceeds the quota for the subscription, resource group or region. The second reason is the one most people meet, and it reads like this: "Operation results in exceeding quota limits of Core. Maximum allowed: 4, Current in use: 4, Additional requested: 2."

Microsoft's resource quota article explains that Azure quotas are enforced at different scopes, such as per subscription, per region or per resource group, depending on the resource type. A typical example is a subscription limited to a number of vCPUs in a region: deploying a virtual machine that needs more vCPUs than are left produces this error. The numbers in the message tell you the limit, what is already in use and how much more the deployment asked for.

A related code, ResourceQuotaExceeded, is used when a deployment would exceed the number of resources of one type allowed per resource group. The fix is similar: delete resources or request a higher quota.

Common causes

  • The deployment needs more vCPUs or VM cores than the regional quota for the subscription allows.
  • The resource count per resource group, or the total instances of a resource type in the subscription, would exceed its quota.
  • The operation is not allowed on the SKU specified in the deployment.

How to fix it

1. Identify the quota scope from the message

Microsoft's article maps the message to a scope. A message about vCPUs or VM cores is a subscription plus region quota. A resource count per resource group is a resource group quota. Total instances of a resource type is a subscription quota.

2. Check current usage and limits

For virtual machine quotas, use Azure CLI:

az vm list-usage --location "West US" --output table

Or Azure PowerShell:

Get-AzVMUsage -Location "West US"

Compare Total Regional vCPUs and the family line for your VM size, such as Standard BS Family vCPUs, with what the deployment requests.

3. Reduce what the deployment asks for

If possible, Microsoft says to revise your deployment to stay within the quotas. For a vCPU quota, that can mean a smaller VM size, fewer instances, or deleting or deallocating VMs you no longer need. If the message is ResourceQuotaExceeded, delete some resources of that type in the resource group before creating new ones.

4. Request a quota increase in the portal

Sign in to the Azure portal, search for Subscriptions and select your subscription. Select Usage + quotas, then Request increase. For quotas with a pencil icon you can enter a new limit, which is reviewed and either approved or rejected; a rejected request shows a link to open a support request. Remember that a regional quota is requested per region.

5. Check the SKU if quota is not the problem

If your usage is well under every quota, the error is the other documented case: an operation not allowed on the specified SKU. Check that the resource SKU supports the feature or setting your deployment uses, and choose a different SKU if it does not.

If nothing works

If a quota increase is rejected, use the support request link that the portal shows. As a general step, consider deploying to another region where your subscription has free quota, after checking that the VM size is available there; an unavailable size returns SkuNotAvailable instead.

What we checked

Two Microsoft Learn pages were read. "Troubleshoot common Azure deployment errors" lists OperationNotAllowed with its two reasons, an operation not allowed on the SKU and an operation that exceeds a quota. "Resolve errors for resource quotas" shows the OperationNotAllowed and ResourceQuotaExceeded messages, the quota scopes, the az vm list-usage and Get-AzVMUsage commands, and the portal steps to request an increase. The error was not reproduced for this page.

Last checked: 2026-11-21.

Official sources

Questions people ask

What does OperationNotAllowed mean in an Azure deployment?

Microsoft lists two reasons: the deployment attempts an operation that is not allowed on the specified SKU, or it would exceed a quota for the subscription, resource group or region. The quota form says the operation results in exceeding quota limits.

How do I see my vCPU quota?

Run az vm list-usage --location "<region>" --output table in Azure CLI, or Get-AzVMUsage -Location "<region>" in PowerShell. Both show current usage and the limit for each quota, including Total Regional vCPUs and per-family vCPUs.

Is a vCPU quota increase for one region valid everywhere?

No. Microsoft notes that the quota is for each individual region. To deploy 30 vCPUs in West US you request 30 in West US; to deploy them in any region, you request 30 in all regions.

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.