Not able to create a VM

Aarav Maurya 0 Reputation points
2026-09-24T11:03:10.5033333+00:00

Not able to create a VM
{ "error": { "code": "DenyAssignmentAuthorizationFailed", "message": "The client '@kiet.edu' with object id '35a8478f-0cf4-4567-af89-8fa2a9c5c3d6' has permission to perform action 'Microsoft.Resources/subscriptions/resourceGroups/write' on scope '/subscriptions/90a1d0c4-230a-46a8-8fda-651989ca00d3/resourceGroups/Aman'; however, the access is denied because of the deny assignment with name '[UNUSUALACTIVITY] FULL DENY ASSIGNMENT ON / FOR ALL USERS ADDED' and Id '4d32aa21e2144c20ad72d58dd5edeacf' at scope '/'." }, "details": { "code": "DenyAssignmentAuthorizationFailed", "message": "The client '@kiet.edu' with object id '35a8478f-0cf4-4567-af89-8fa2a9c5c3d6' has permission to perform action 'Microsoft.Resources/subscriptions/resourceGroups/write' on scope '/subscriptions/90a1d0c4-230a-46a8-8fda-651989ca00d3/resourceGroups/Aman'; however, the access is denied because of the deny assignment with name '[UNUSUALACTIVITY] FULL DENY ASSIGNMENT ON / FOR ALL USERS ADDED' and Id '4d32aa21e2144c20ad72d58dd5edeacf' at scope '/'." } }

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

0 comments No comments

1 answer

Sort by: Newest
  1. Allan Solomon Mejia 9,735 Reputation points
    2026-09-25T14:45:33.0033333+00:00

    Hi @Aarav Maurya

    The error identifies the cause: DenyAssignmentAuthorizationFailed

    Your account has permission to perform: Microsoft.Resources/subscriptions/resourceGroups/write

    but Azure is overriding that permission because of this deny assignment:

    [UNUSUALACTIVITY] FULL DENY ASSIGNMENT ON / FOR ALL USERS ADDED

    The deny assignments block Azure resource actions even when an RBAC role assignment otherwise grants the user permission.

    Check Azure portal → Subscription → Access control (IAM) → Deny assignments and inspect that assignment's scope, denied actions, principals, exclusions, and System protected status. This is the supported method for examining effective deny assignments.

    You can also list effective deny assignments with PowerShell: Get-AzDenyAssignment

    This cmdlet lists deny assignments effective on the selected scope.

    The assignment shown in your error is at scope /, so it can affect resources below that scope unless its configuration prevents inheritance or excludes your principal.

    If the assignment is system-protected, Azure created it, and you can't edit or delete it directly. In that case, identify which Azure service/resource created it and address the deny assignment through that service or contact your Azure administrator/Microsoft Support.

    Do not change your VM configuration or assign yourself additional RBAC roles. The error already confirms you have the required resourceGroups/write permission and that the deny assignment is blocking the operation.

    References:

    List Azure deny assignments

    Get-AzDenyAssignment


    Help make this community better for everyone: If this answer helped or resolved your issue, please accept it or upvote it. If not, share more details in a comment so we can continue the discussion and find the right solution. Thank you.

    Was this answer helpful?

    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.