Using Console
Using CLI
<assignee-object-id>
with the object ID of the user or service principal you want to revoke the role from, and <role-name>
with the name of the suspicious role.az role definition create
command to create a custom role and the az role assignment create
command to assign it.Using Python
<role-id-to-remove>
with the actual ID of the role you want to remove.
<role-id-to-modify>
with the actual ID of the role you want to modify, and <action-1>
, <action-2>
, etc., with the desired actions.