An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
Hi @anes-_- انس
Based on the information you have shared the RequestDisallowedByAzure error appears to be caused by an Azure Policy restriction that is preventing resource deployments. Microsoft documentation explains that this error occurs when a policy assignment blocks the requested deployment because it doesn't comply with the policy requirements.
These subscriptions have an Azure Policy called Allowed resource deployment regions, which limits where resources can be deployed.
The key observation is that your query indicates the allowedLocations parameter may be returning no values. If this is confirmed, it could explain why deployments are being denied regardless of the region selected.
Recommended Next Steps:
- In the Azure portal, navigate to Policy → Assignments.
- Locate the policy assignment named Allowed resource deployment regions (or a similarly named assignment).
- Open the assignment and review the Allowed locations parameter.
- Please deploy the resource only in one of the permitted regions.
This is a common hurdle for students but once you deploy in an approved region the resource deployment creation should work without further issues.
Please refer the official documentation for more details:
https://learn.microsoft.com/en-us/azure/governance/policy/assign-policy-portal
If you have further questions regarding this answer, feel free to click "Comment". If you find the answer helpful, please click "upvote" and accept it. This helps the community by allowing others with similar queries to easily find the solution.