Error: The account does not have access to partner center
This can come up while trying to grant partner center consent.
There are a couple reasons this can happen.
- When prompted to grant consent, ensure you tick the box to grant permissions for the whole tenant
- Some time the Microsoft partner service principal is missing and fails to create. You can create that manually with the steps below.
Cause: The Microsoft Partner service principal is missing from the partners tenant.
Resolution
Manually add the service principal.
Follow the steps below to fix this. The command is:
- az ad sp create --id "fa3d9a0c-3fb0-42cc-9193-47c7ecd2edbd"