Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hi Asad,
Thank you @Jerald Felix for providing a clear explanation of the FULL DENY ASSIGNMENT issue. I’d like to include a few additional points to further clarify the resolution process and suggest more options while we wait for support.
The issues you're experiencing with Application Insights, environment variables, WebApp deployments, and other Azure services are due to a Microsoft-enforced deny assignment called:
"[UnusualActivity] Full Deny Assignment on All Users Added"
This security measure is automatically applied by the system at the root level (either subscription or management group) to block all actions when unusual activity is detected, such as rapid resource creation, suspicious API usage, or behavior that may indicate abuse. This often occurs in free or student accounts, or during the initial account setup.
Key points from your screenshots:
- Deny assignment details: Applied to "All principals" (all users), with no exclusions, at the "Root (inherited)" scope. This blocks "allow" permissions granted by roles such as Owner or Contributor.
- Error examples:
- Application Insights: Denied access to Microsoft.Insights/components/.../read because of the deny assignment.
- Environment variables: Read/Write permissions are required but are blocked.
- Deployment: Shows "no subscriptions associated" since deny assignments override access.
- This is a Microsoft-managed deny assignment, not a custom role or lock, so it's read-only for end-users.
Deny assignments take precedence over allow-based role assignments and cannot be bypassed unless removed. They are intended for high-security scenarios, such as compliance or fraud prevention. (Reference: Microsoft Learn documentation on deny assignments.)
Immediate Steps to Verify the Scope
While waiting for support, you can check the deny assignment details:
- Azure Portal
- Navigate to Subscriptions > Your Subscription > Access Control (IAM) > Deny Assignments tab
- Search for "UnusualActivity" or your user/group object ID
- Record the assignment ID, scope, and any excluded principals
- Azure CLI / PowerShell : If you still have access or can use a different account:
az role assignment list --assignee <your-user-id> --include-denyGet-AzDenyAssignment -Scope "/"
Since this deny is enforced by Microsoft and not created by a user, you won't be able to remove it yourself—attempts through the portal, CLI, or PowerShell will result in authorization errors. The only way to resolve this is through Azure Support, which you've already started (good step—escalation to a specialist is standard for these cases). Here’s a clear resolution plan to share with your customer:
- Escalate and Follow Up on the Support Case
- Reason: "UnusualActivity" flags require review by specialists due to security concerns. These are usually resolved within 1–3 business days after escalation, sometimes faster with clear supporting evidence.
- Customer Steps:
- Log in to the Azure Support Portal.
- Locate the open case (search by title or ID; ask the customer to share the case number for coordination).
- Reply to the latest engineer’s message with:
- Screenshots showing the deny assignment (from IAM > Deny assignments).
- Error details (like the full JSON from failed API calls, if available via browser dev tools).
- Proof of legitimate use: project description, confirmation of no suspicious activity (for example, “This is for internal development/testing; no external scripts or bulk creations”).
- Request: “Please review and remove the [UnusualActivity] Full Deny Assignment (ID: [insert ID from portal]) after verification.”
- If there’s no response within 24 hours, create a new severity B (medium impact) case under Technical > Azure Subscriptions > RBAC and role assignments, referencing the original case.
- Expected Result: Support will verify the account, remove the deny, and restore full access. There is no charge for this review.
- Temporary Solutions While Awaiting Resolution (Limited):
- Use a New or Alternate Account: If possible, create a second Azure AD user within the same tenant and assign it the Owner role before the deny takes effect (though this may not work in this situation, it’s worth trying):
- Go to Azure Portal > Microsoft Entra ID > Users > + New user (choose Member type, set up auto-password).
- Assign the Owner role: Subscriptions > Your subscription > IAM > + Add role assignment > Owner > select the new user.
- Log in as the new user and check access (for example, try deploying to a Web App).
- Note: If the deny is set at the tenant level, this may not work. This is not a permanent solution.
- Switch to Pay-As-You-Go: Consider moving to a free trial account (with $200 credit) to continue working without interruption. If possible, export your resources using ARM templates.
- Avoid Triggers: Temporarily pause any automation or scripts that could have caused the issue, such as those making a high number of API calls.
- Post-Resolution Prevention
- Keep an eye on unusual activity alerts in Azure Monitor > Alerts.
- Assign least-privilege roles, such as Contributor for developers instead of Owner.
- Turn on Azure AD Identity Protection to help detect threats proactively.
- Review IAM regularly and configure alerts for any new deny assignments.
Reference:
https://learn.microsoft.com/en-us/azure/role-based-access-control/deny-assignments?tabs=azure-portal
https://azure.microsoft.com/en-us/pricing/purchase-options/azure-account?icid=azurefreeaccount