[Eng]: Return a more explicit error message when New-AzADServicePrincipal hit MS Graph latency #16777
Labels
AAD
AzAd cmdlets in Az.Resources
feature-request
This issue requires a new behavior in the product in order be resolved.
Resource Authorization
AzRole* in Az.Resources
Milestone
Description
Creating a service principal with a role may fail due to latency before the principal can be queried in Graph
After executing
New-AzADServicePrincipal -DisplayName "serviceprincipalname" -Role Contributor
you may receive the following error:
In the debug traces, we see the following error returned:
The text was updated successfully, but these errors were encountered: