GraphRbacManagementClient fails when not setting baseUri explicitly #3191
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Graph
Mgmt
This issue is related to a management-plane library.
Describe the bug
When using a
GraphRbacManagementClient
, requests will fail if you do not explicitly set the baseUri to "https://graph.windows.net"To Reproduce
Steps to reproduce the behavior:
client.signedInUser.get()
Expected behavior
Expect to not need to set this explicitly.
Additional context
Add any other context about the problem here.
I believe the issue is the credentials I'm getting does have an environment (azcli based auth), which causes the base class to set the resourceManagerEndpointUrl as the baseUri: https://github.com/Azure/ms-rest-azure-js/blob/master/lib/azureServiceClient.ts#L46-L49
which prevents the Graph specific default from being respected: https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/graphrbac/graph/src/graphRbacManagementClientContext.ts#L50
The text was updated successfully, but these errors were encountered: