Using Console
Using CLI
<principal-id>
with the ID of the misconfigured principal, <role-name>
with the name of the role assigned to the principal, and <scope>
with the scope where the misconfiguration exists (e.g., resource group, subscription, etc.).az role assignment list
command again to verify that the misconfigured role assignments have been successfully removed.Using Python
subscription_id
with your Azure subscription ID.