This sample Azure Function App, monitores for O365 service degradation and notifies to a Teams Channel.
Application queries O365 service management API. https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-service-communications-api-reference writes the json to Azure blob. PowerBI Report can be used to visualise the information.
- Create a new azure app registration, and create client secrets.
- Copy Domain Name, Client Id, Client Secret from the created app registration.
- Grant ServiceHealth.Read permission to the newly created applicaiton.
- Create a new Storage account (general purpose v1) and copy the connection string (from under Access Keys).
- Create a Teams webhook to write notifications to Teams https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook
- Download the source code, build and publish the project to create a new Azure function app/or use existing function app.
- On the Newly created function app, provide/create the following application settings
- ClientId
- ClientSecret
- Domain
- TeamsWebhookURL
- StorageConnectionString
- Env