Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
To successfully create a webhook subscription for an Outlook or Exchange mailbox, you typically need to use a Microsoft 365 account rather than a personal Outlook account. The error message you are encountering, which indicates an "Unauthorized" status, suggests that the credentials being used may not have the necessary permissions or that the account is not valid for the operation you are trying to perform.
Here are some steps to troubleshoot the issue:
- Account Type: Ensure that you are using a Microsoft 365 business account. Personal accounts may not support the required API operations.
- Credentials: Double-check the username and password you are using. Make sure they are correct and that the account has the necessary permissions to access the mailbox and create subscriptions.
- API Permissions: Verify that the application has the correct permissions set in Azure AD to access the mailbox and create subscriptions. You may need to grant additional permissions for the Microsoft Graph API.
- Test Connection: Note that the test connection feature may not validate all credentials properly. Ensure that the connection is configured correctly and test it against the actual API endpoint.
- OAuth Configuration: If you are using OAuth for authentication, ensure that the access tokens are being obtained correctly and that they are valid for the operations you are trying to perform.
If you continue to face issues, consider reaching out to your administrator or support for further assistance regarding the account and permissions.