Azure / azure-functions-microsoftgraph-extension

Microsoft Graph extension for Azure Functions
MIT License
46 stars 23 forks source link

The Functions Graph Extension doesn't support the National Clouds. #106

Open FinVamp1 opened 5 years ago

FinVamp1 commented 5 years ago

We have had some customers report that they are seeing errors when using the Graph Extension in the National Clouds.

E.G

image

azure-functions-microsoftgraph-extension\src\MicrosoftGraphBinding\Bindings\O365Constants.cs has this code.

{ ///

/// Base URL used to make any rest API calls /// public const string GraphBaseUrl = "https://graph.microsoft.com";

All of the national cloud Graph endpoints are documented here.

https://docs.microsoft.com/en-us/graph/deployments#microsoft-graph-and-graph-explorer-service-root-endpoints

It looks like the Graph Extension needs to be updated to support these endpoints as well.