Well can you load the Azure AD module there? :) I'd strongly recommend you do direct Graph API calls instead of using the module btw.
Get-AzureADUser in Azure Function
stout27
1
Reputation point
Is it possible to run the Get-AzureADUser in Azure Functions (Consumption Plan)?
Thanks