Microsoft.Azure.AgregatorService could not be found
I followed steps to resolve Microsoft Graph API issue. I switched reference and re-packaged and get error,
“[HTTP]:400 – Bad Request [CorrelationId]:153a819e-d09f-0000-08ac-5fb83e23e391 [Version]:16.0.0.7925 – A service principal with the name Microsoft.Azure.AgregatorService could not be found.”
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 83c47bef-6351-3ab4-41e0-0abec261278f
- Version Independent ID: 332d0d0f-6d57-93d2-49b4-98a29e21eac2
- Content: Consume the Microsoft Graph in the SharePoint Framework
- Content Source: docs/spfx/use-aad-tutorial.md
- Product: sharepoint
- GitHub Login: @spdevdocs
- Microsoft Alias: spdevdocs
What do you mean exactly when you say you switched the reference... where did you do that? If you're referring to the scopes you're defining, the graph is "Microsoft Graph"
When I say that I switched the reference, I am referring to the workaround mentioned in this bug document - https://github.com/SharePoint/sp-dev-docs/issues/1401
where the bug/error is "[HTTP]:400 - [CorrelationId] when trying to approve a MS Graph permission request in a SPFx package"
and the workaround mentioned by Vesa is "The workaround is to use the following configuration in the package-solution.json for those tenants where the Principal Name for Microsoft Graph is using old value. Basically use the "Microsoft.Azure.AgregatorService" as the value for the resource entry."
Ah... that was a temp workaround (notice Vesa's comment was from March 2018... during the "dev preview" phase). The feature that went GA wants the name of the service as the resource. In this case, it's "Microsoft Graph"
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues