I have enabled Azure AD for the function APP. AzureIdentity is my Function APP name.
I am using "\oauth2\token"
Get:
https://login.microsoftonline.com/{my tenant ID}/oauth2/token
Headers: Content-Type: application/x-www-form-urlencoded
Body:
grant_type:client_credentials
resource:https://management.azure.com/
client_id:04e17699-64cd-42ec-96ec-23be345ef6ed
client_secret:{My secret}
I am getting bearer token on Get request and passing it to the Function, but I am getting 401 Authentication error as below. Not sure where I am doing wrong.

Please help how can I authenticate the function, Thank you.


To resolve the error, make use of 

