question

walidrifai-3785 avatar image
1 Vote"
walidrifai-3785 asked ryanchill edited

AzureWebJob The request failed. The remote server returned an error: (401) Unauthorized

I have been trying to deploy an azure webjob that sends an email to a specific user, although i am correctly inputting the credentials and exchange server into the appSettings.json file, the authorization proccess still fails with:

The request failed. The remote server returned an error: (401) Unauthorized. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Microsoft.Exchange.WebServices.Data.EwsHttpWebRequest.Microsoft.Exchange.WebServices.Data.IEwsHttpWebRequest.GetResponse() at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request) --- End of inner exception stack trace

Help would be Much appreciated.


azure-webappsazure-ad-authenticationazure-webapps-development
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers