An Azure service that provides streamlined full-stack web app development.
In addition to Deepanshukatara-6769, to help you better, please check these below points:
The error RequestDisallowedByPolicy means your Azure subscription only allows creating resources in certain regions. You're allowed to use regions like westus3, eastus, northcentralus, canadacentral, mexicocentral
This happens because your organization only allows certain regions, but Static Web Apps may not support those regions—like westus3—for parts like the Functions API.
Since the portal doesn’t show unsupported regions, you can’t select them, and Azure blocks the request. If you can’t create other resources either, it means this region restriction applies to your whole subscription.
Is there a common set of issues that are denying me the ability to create a resource here?
Yes. The error RequestDisallowedByPolicy means your subscription only allows creating resources in certain regions like westus3, eastus, northcentralus, canadacentral, and mexicocentral. But Static Web Apps don’t support westus3 yet, so it doesn’t appear in the region list, and the creation fails.
Are there any techniques to troubleshoot my subscription?
Yes, here are a few steps you can try:
- To check the applied policy and view region restrictions, go to Azure Portal > Subscriptions > [Your Subscription] > Policies.
- Confirm your permissions by checking that your user has sufficient privileges under Access Control (IAM).
- Use Azure CLI to deploy directly by specifying an allowed region (like westus3), but only if the service supports that region.
az staticwebapp create \
--name my-static-app \
--resource-group my-rg \
--location westus3 \
--source https://github.com/user/repo \
--branch main \
--login-with-github
- Check if the service is available in westus3 using this below link
https://azure.microsoft.com/en-us/explore/global-infrastructure/products-by-region
Please accept as "Yes" if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.