Skip to content
Cloud Governance Tools

Allowed virtual machine size SKUs

Allowed virtual machine size SKUs is an Azure guardrail written in Azure Policy. Denies creation of virtual machines whose size is not on the allowed list, which limits expensive VM sizes. What it breaks: requests for VM sizes outside the list are rejected with 403 at create or update time.

More resource and cost guardrails ยท About Azure Policy

Built-in policy definition: Allowed virtual machine size SKUs
Definition ID: cccc23c7-8427-4f53-ad12-b6a63eb452b3
Category: Compute
Supported effects: Deny
policyRule (copied from the repository file):
{
    "if": {
      "allOf": [
        {
          "field": "type",
          "equals": "Microsoft.Compute/virtualMachines"
        },
        {
          "not": {
            "field": "Microsoft.Compute/virtualMachines/sku.name",
            "in": "[parameters('listOfAllowedSKUs')]"
          }
        }
      ]
    },
    "then": {
      "effect": "Deny"
    }
  }
Blocks
Denies creation of virtual machines whose size is not on the allowed list, which limits expensive VM sizes.
Breaks
Requests for VM sizes outside the list are rejected with 403 at create or update time. (source)
Test before applying
As for every Azure Policy guardrail: how to test before enforcing
Mechanism
Azure Policy (built-in definitions): Resources at the scope of the assignment (management group, subscription, resource group) and their children, except notScopes and exemptions
Taken from
open source set, MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE

What the source says

"This policy enables you to specify a set of virtual machine size SKUs that your organization can deploy." (read 10 Nov 2026).

What it breaks is documented for every guardrail of this mechanism: see Azure Policy.

Sources

  1. Allowed virtual machine size SKUs, read 10 Nov 2026
  2. What it breaks, read 10 Nov 2026
  3. How to test it first, read 10 Nov 2026

Last reviewed 16 Nov 2026.