[UnusualActivity] Full Deny assignment

Ghassen Latrach 0 Reputation points
2025-01-28T17:46:11.7966667+00:00

I can't perform any action on my account using my student credit .
I can't create nor manage any resource even though I still have unused credits and valid azure account.
The client with object id '.............' has permission to perform action 'Microsoft.OperationalInsights/workspaces/delete' on scope '/subscriptions/.............../resourceGroups/DefaultResourceGroup-francecentral/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-francecentral'; however, the access is denied because of the deny assignment with name '[UnusualActivity] Full Deny assignment on ................ for user .................. at root added' and Id '...............' at scope '/'. (Code: DenyAssignmentAuthorizationFailed)

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
243 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,742 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,228 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,060 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Naveena Patlolla 80 Reputation points Microsoft Vendor
    2025-01-29T07:41:40.6233333+00:00

    Hi Ghassen Latrach,

    Welcome to Microsoft Q&A Forum, thank you for posting your query here!

    It looks like your account has been added to a Deny Assignment at the root level, which prevents you from performing any actions in your subscription.

    This may have happened because you were running scripts using access tokens from your account, and Microsoft may have applied this policy to restrict your access.

    For example, actions like: Microsoft.Insights/Metrics/write was not allowed

    Warning: If a service principal repeatedly hits the GIG endpoint without proper permissions, it may get blacklisted.

    Try the Following Solutions

    • Solution 1: Remove the Deny Assignment

    Go to the Azure Portal: https://portal.azure.com

    Navigate to "Subscriptions" and select your subscription.

    Go to "Access Control (IAM)" at the root scope ('/').

    Find the "Deny Assignments" tab.

    Look for your Object ID (e.g., 653ad2b4ae4b4bb3a7e62651f19ddba9) or Name.

    Remove or Modify the Deny Assignment as needed.

    If it is in Read mode try Solution2

    • Solution 2: Create a New Azure AD User and Assign Owner Role

    If Solution 1 doesn’t work, create a new admin account and use it to remove the deny assignment.

    Step 1: Create a New User in Azure AD

    Open Azure Portal → Go to Microsoft Entra ID (Azure AD) > Users.

    Click "+ New user".

    Enter User Details:

    User Type: Member

    Username: newuser@yourdomain.onmicrosoft.com

    Name: <Full Name>

    Password: Auto-generated Click "Create".

    Step 2: Assign "Owner" Role to the New User

    Go to "Subscriptions" → Select your subscription.

    Navigate to "Access Control (IAM)".

    Click "+ Add" > "Add role assignment".

    Choose "Owner" → Click Next.

    Select the newly created user (newuser@yourdomain.onmicrosoft.com).

    Click "Review + Assign".

    Step 3: Remove Deny Assignment Using the New Account

    Log in with the newly created account.

    Try removing the Deny Assignment as described in Solution 1.

    Alternatively, run the following PowerShell command:

    Remove-AzRoleAssignment -ObjectId "your-object-id" -Scope "/" -RoleDefinitionName "Deny Assignment" 
    
    
    • Solution 3:

    Log in to the Azure portal using the newly created account and attempt to create Azure resources.

    Feel free to reach out if you have any further questions or need additional information—I’m happy to assist!

    Please provide your valuable comments User's image

    Please do not forget to "Accept the answer” and “upvote it” wherever the information provided helps you, this can be beneficial to other community members.it would be greatly appreciated and helpful to others.


Your answer

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