An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
RequestDisallowedByPolicy means the virtual network deployment is being blocked by an Azure Policy assignment in the environment. In this case, the blocking policy is Not allowed resource types, which is used to deny creation of specific resource types.
What this means:
- The subscription, management group, or resource group has a policy assignment that disallows the resource type being deployed.
- Azure blocks the deployment when the resource doesn't comply with that policy.
- The error message includes the policy assignment name and policy definition so the blocking rule can be identified.
What to do next:
- In Azure portal, go to Policy.
- Open Assignments and locate the assignment named Not allowed resource types.
- Open the assignment and review the Parameters to see which resource types are disallowed.
- If a virtual network resource type is disallowed, either:
- deploy a different resource that complies with policy, or
- have the policy assignment updated by the team that manages Azure Policy in the environment.
- If an exception is intended for a lower scope, an exemption can be created for that subscope.
If command-line inspection is preferred, the policy details can be checked with:
az policy definition show --name {policy-name}
az policy assignment show --name {assignment-name} --resource-group {resource-group-name}
If the policy is centrally managed and the message says to contact the Cloud Team, the required action is for that team to review the assignment or create an exemption. This is not a deployment error in the virtual network itself; it is a governance restriction.
References: