Problem
When adding a new resource group in Microsoft Azure, you receive the error You do not have permission to create resource groups under subscription ${YOUR_SUBSCRIPTION_NAME}.

Solution
The resource group must be created by the subscription owner or by a user with sufficient permissions on the subscription. You can
- ask the subscription owner to create the resource group,
- ask the subscription owner to also assign you the Owner or Contributor role,
- or let the subscription owner create a custom RBAC role with the Microsoft.Resources/subscriptions/resourceGroups/write permission.
Granting the Owner or Contributor role
As the subscription owner
- go to Subscriptions >
${YOUR_SUBSCRIPTION_NAME} - below Access control (IAM) select Add > Add role assignment and assign the Contributor or Owner role. The Owner role can additionally manage access (role assignments), so you probably want to use the Contributor role instead. Both roles apply to every resource in the subscription; for least privilege, prefer the custom role above:
