Using Console
Using CLI
principalId
and scope
values for each role assignment.
<principalId>
with the principalId
value obtained in step 5 and <scope>
with the scope
value obtained in step 5.
Using Python
delete
method from the RoleAssignmentsOperations
class:
<your-subscription-id>
with your actual Azure subscription ID in step 4.By following these steps, you can identify and remediate the misconfiguration of roles assumable by compute services in Azure using Python.