Option 1: Assign Owner at the Tenant (Directory) Level |
- Sign in to the Azure portal with your account.
- In the Azure portal, go to Azure Active Directory by searching for it in the search bar.
- In the left-hand menu, select Roles and administrators.
- Find and click on the Owner role.
- Click + Add assignment.
- In the Members section, select the user, group, or service principal to which you want to assign the Owner role.
- After selecting the members, click Assign.
Note: Assigning this at the directory level is typically not recommended as this grants broad access to all subscriptions in the tenant.
|
Option 2: Assign Owner at the Subscription Level |
- Sign in to the Azure portal.
- Go to Subscriptions by searching for it in the search bar.
- Select the subscription for which you want to assign the Owner role.
- In the left-hand menu, under Access control (IAM), click on Role assignments.
- Click + Add > Add role assignment.
- In the Role dropdown, select Owner.
- In the Select field, choose the user, group, or service principal that you want to assign the role to.
- Click Save.
|
Option 3: Use Azure CLI |
- Open Azure Cloud Shell or your terminal with the Azure CLI installed.
- Log in to Azure:
az login
- Assign the Owner role at the subscription level:
az role assignment create --assignee <user-email-or-object-id> --role Owner --subscription <subscription-id>
|