Using Console
Using CLI
Using Python
subscription_id
with the ID of the Azure subscription you want to remediate.acdd72a7-3385-48ef-bd42-f606fba81ae7
role definition ID is for the Owner role.your-owner-principal-id
with the principal ID of the user or service principal you want to add as an owner.