I\'m trying to write a simple Azure Function that calls the Microsoft Graph API. But I could not make the access_token work. Here is what I\'ve done:
The header should contain the proper access-token (more details here): https://docs.microsoft.com/en-us/azure/app-service-api/app-service-api-authentication
Here's another post which runs into the same error and may be of help: How do I create an auth token with the new microsoft graph api?
One possible workaround is to use the service principal authentication flow, where you enable the function app to call Graph API via AAD.
https://docs.microsoft.com/en-us/azure/app-service/app-service-authentication-overview#service-to-service-authentication