# Not allowed resource types

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

Not allowed resource types is an Azure guardrail written in Azure Policy. Denies deployment of the resource types you list, for example expensive or high-risk services. What it breaks: a deny effect returns 403 for any create or update of a listed type, and compliance results are shown only for non-compliant resources.

```text
Built-in policy definition: Not allowed resource types
Definition ID: 6c112d4e-5bc7-47ae-a041-ea2d9dccd749
Category: General
Supported effects: Audit, Deny, Disabled
policyRule (copied from the repository file):
{
    "if": {
      "allOf": [
        {
          "field": "type",
          "in": "[parameters('listOfResourceTypesNotAllowed')]"
        },
        {
          "value": "[field('type')]",
          "exists": true
        }
      ]
    },
    "then": {
      "effect": "[parameters('effect')]"
    }
  }
```

- **Blocks:** Denies deployment of the resource types you list, for example expensive or high-risk services.
- **Breaks:** A deny effect returns 403 for any create or update of a listed type, and compliance results are shown only for non-compliant resources. ([source](https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/General/InvalidResourceTypes_Deny.json))
- **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/General/InvalidResourceTypes_Deny.json), MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE

## What the source says

"Restrict which resource types can be deployed in your environment." (read 10 Nov 2026).

On what it breaks: "Compliance results are only shown for non-compliant resources."

## 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
- [Allowed virtual machine size SKUs](/guardrails/azure-policy-allowed-vm-sizes/): Azure, Azure Policy (built-in definitions), resource and cost

## Related pages

- [Do not allow deletion of resource types (Azure Azure Policy)](/guardrails/azure-policy-deny-action-delete/)
- [Allowed virtual machine size SKUs (Azure Azure Policy)](/guardrails/azure-policy-allowed-vm-sizes/)
- [Network interfaces should not have public IPs (Azure Azure Policy)](/guardrails/azure-policy-nic-no-public-ip/)

## Sources

- Not allowed resource types: https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/General/InvalidResourceTypes_Deny.json (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-not-allowed-resource-types/
