CmdID / az / az role / az role assignment
az role assignment create
Create a new role assignment for a user, group, or service principal. Azure CLI reference
1 option Its page in the Azure CLI reference
Options
--assignee-principal-typeuse with --assignee-object-id to avoid errors caused by propagation latency in Microsoft Graph