Can I use GetAzureADAppOnlyAuthenticatedContext in Azure Functions?

Jeremy Hancock
Occasional Contributor

I am trying out using SharePoint webhooks with Azure Functions. I have the webhook functioning okay, but looking at the authentication options for calling back into SharePoint, I would like to be able to use the GetAzureADAppOnlyAuthenticatedContext from the function.


I have watched the webcast on Authentication Manager;



I have 2 questions;

  1. Is it possible to use GetAzureADAppOnlyAuthenticatedContext from an Azure Function and is there any guidance if it is?
  2. What is the recommended authentication model from Azure functions to SharePoint?






2 Replies
For 2: have you considered to use the "classic" SPO App Only?

Hi, thanks for the response.


Yes, I am planning to try that, but I was hoping to work out whether the new Azure AD methods are an option in this scenario.





Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
16 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
11 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
Early preview of Microsoft Edge group policies
Sean Lyndersay in Discussions on
65 Replies