Calling Microsoft Graph API from inside Azure Functions

后端 未结 3 701
傲寒
傲寒 2020-12-18 07:37

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:

  1. Created a
3条回答
  •  生来不讨喜
    2020-12-18 07:56

    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

提交回复
热议问题