How to fix 'deny policy action'

Alfie wilkins 0 Reputation points
2025-10-07T13:51:33.6566667+00:00

Im trying to create a static web app and it keeps saying denied and i dont know why i get this in my activity log

  • Resource/subscriptions/9ef91bc8-4901-4c73-9868-7eeb27a3e0a1/resourceGroups/my-first-static-web-app/providers/Microsoft.Web/staticSites/my-first-static-web-app
  • Operation name'deny' Policy action.
  • Time stampTue Oct 07 2025 14:42:30 GMT+0100 (British Summer Time)
  • Event initiated ******@gmail.com
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shree Hima Bindu Maganti 5,810 Reputation points Microsoft External Staff Moderator
    2025-10-08T15:08:55.3933333+00:00

    Hi @Alfie wilkins
    Deny” error when creating an Azure Static Web App, it means an Azure Policy set by your organization or subscription administrator is blocking your request. These policies determine which resources you can create, their locations, and allowed settings.

    Check the Activity Log, open the failed event, and view the JSON details to identify the policy causing the denial.

    Visit Azure Policy Compliance to find the specific policy.

    The restriction may apply to the resource type (Static Web App) or the region.

    Contact your admin to request access for Static Web Apps or select an approved region.

    If you are working under a managed/company subscription, you may need to use your personal Azure account to avoid these limits.

    Understand the Deny effect in Azure Policy

    Microsoft Q&A – Static Web App creation denied by policy
    Let me know if you have any further assistances needed.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.