Forum Discussion
amine_moussa2000
Feb 10, 2025Copper Contributor
Access Denied Due to Deny Assignment
I am encountering an issue with a deny assignment that is blocking my access to perform actions on my Azure resources. Despite having the Owner role for my subscription, I receive the error "DenyAssi...
Kidd_Ip
Feb 11, 2025MVP
Take this:
- Identify the Deny Assignment: Check the resource group or the specific resource to identify the deny assignment. You can do this through the Azure portal or by using Azure CLI/PowerShell.
- Remove the Deny Assignment:
- Azure Portal: Navigate to the resource group, go to the Access control (IAM) section, and look for any deny assignments. If you find one, you may need the necessary permissions to remove it.
- Azure CLI: Use the following command to remove the deny assignment:
Remove-AzRoleAssignment -ObjectId <ObjectId> -Scope <Scope> -RoleDefinitionName <RoleName>
-
- PowerShell: Use the following command to remove the deny assignment:
Remove-AzRoleAssignment -ObjectId <ObjectId> -Scope <Scope> -RoleDefinitionName <RoleName>
Check for Managed Applications: If the deny assignment was created by a managed application, you might need to delete the managed application first.
- amine_moussa2000Feb 13, 2025Copper Contributor
I tried this before, but the problem is that I have a student license under my subscription, which is an Azure for Students subscription. I also tried your solution earlier, but it showed me a "Forbidden" status code.
Thank you for your solution.I really appreciate your help.