Complete the code to assign the Reader role to a user in Azure CLI.
az role assignment create --assignee user@example.com --role [1] --scope /subscriptions/00000000-0000-0000-0000-000000000000
The Reader role allows viewing resources without making changes. Use 'Reader' to assign this role.
Complete the code to assign the Owner role to a service principal in Azure CLI.
az role assignment create --assignee spn-1234 --role [1] --scope /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup
The Owner role grants full access including managing access. Use 'Owner' to assign this role.
Fix the error in the command to assign the Contributor role to a user.
az role assignment create --assignee user@example.com --role [1] --scope /subscriptions/00000000-0000-0000-0000-000000000000
The correct role name for contributing changes is 'Contributor'. 'Admin' is not a valid built-in role.
Fill both blanks to create a role assignment for a user with the Contributor role on a resource group.
az role assignment create --assignee [1] --role [2] --scope /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup
The assignee is the user's email, and the role is 'Contributor' to allow changes.
Fill all three blanks to assign the Owner role to a service principal on a subscription.
az role assignment create --assignee [1] --role [2] --scope [3]
The service principal ID is 'spn-5678', the role is 'Owner', and the scope is the subscription ID.