# Allowed virtual machine size SKUs

Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.

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.

```text
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](https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-deny))
- **Test before applying:** As for every Azure Policy guardrail: [how to test before enforcing](/mechanisms/azure-policy/)
- **Mechanism:** [Azure Policy (built-in definitions)](/mechanisms/azure-policy/): Resources at the scope of the assignment (management group, subscription, resource group) and their children, except notScopes and exemptions
- **Taken from:** [open source set](https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Compute/VMSkusAllowed_Deny.json), 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](/mechanisms/azure-policy/).

## Related guardrails

- [Restrict EC2 launches to approved instance types](/guardrails/aws-scp-restrict-ec2-instance-types/): AWS, Service control policies (SCPs), resource and cost
- [Restrict AWS Marketplace subscription changes](/guardrails/aws-scp-restrict-marketplace-subscriptions/): AWS, Service control policies (SCPs), resource and cost
- [Shared reservations owner projects](/guardrails/gcp-orgpolicy-shared-reservations-owner-projects/): Google Cloud, Organization Policy Service (managed and legacy constraints), resource and cost
- [Allowed resource types](/guardrails/azure-policy-allowed-resource-types/): Azure, Azure Policy (built-in definitions), resource and cost
- [Not allowed resource types](/guardrails/azure-policy-not-allowed-resource-types/): Azure, Azure Policy (built-in definitions), resource and cost

## Related pages

- [Network interfaces should not have public IPs (Azure Azure Policy)](/guardrails/azure-policy-nic-no-public-ip/)
- [Network interfaces should disable IP forwarding (Azure Azure Policy)](/guardrails/azure-policy-nic-no-ip-forwarding/)
- [Gateway subnets should not have a network security group (Azure Azure Policy)](/guardrails/azure-policy-gateway-subnet-no-nsg/)

## Sources

- Allowed virtual machine size SKUs: https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Compute/VMSkusAllowed_Deny.json (read 10 Nov 2026)
- What it breaks: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-deny (read 10 Nov 2026)
- How to test it first: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/assignment-structure (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudgovernancetools.com/guardrails/azure-policy-allowed-vm-sizes/
