Microsoft Teams call record data is currently the only supported source for these functions
A collection of Azure Functions for:
- Managing Microsoft Graph notification subscriptions
- Retrieving data about notifications received from Microsoft Graph subscriptions
- Sending Microsoft Graph resource data to Splunk via HTTP Event Collector
When you register an application with Azure AD, you are creating an identity configuration. The Azure Functions in this project will use the application for authentication when interacting with the Microsoft Graph API.
- Registering an Azure AD application provides a detailed walkthrough
- Application and service principal objects in Azure Active Directory
Use the above button to deploy the Azure Functions from this repo to your Azure account. During setup, you will be prompted for the following information:
- Client ID
- Client Secret
- Splunk HTTP Event Collector Endpoint
- Splunk HTTP Event Collector Token
Microsoft stores the above values as application settings. These settings are stored encrypted, but you may opt to transfer one or more of these settings to a Key Vault. Refer to the following documentation for details on this procedure:
A Microsoft Graph subscription defines where Microsoft should deliver notifications. To create a subscription, execute the create-subscription function from the Azure Portal.
- Launch the Azure Portal
- Navigate to the Function app section in the portal
- Select the Function app created previously
- Click Functions -> create-subscription
- Note: only callRecords subscriptions are created in this release.
- In the Overview section, click Get Function Url
- Copy the URL and paste it in a new browser tab
Note: you may receive a timeout when executing this function for the first time. In this event, refresh your browser. The reason for this is the
create-subscriptionfunction makes a call to thesubscription-webhookfunction which may not be running yet.
- To list subscriptions, execute the
list-subscriptionsfunction. - To delete a subscription, copy the subscription's ID field and pass it as a query parameter named
subscriptionIdto thedelete-subscriptionfunction.- Example:
https://FUNCTION-APP.azurewebsites.net/api/delete-subscription?code=CODE&subscriptionId=SUBSCRIPTION_ID
- Example:
Run the following Splunk query
sourcetype="m365:*"
(optional) Download and install the Microsoft 365 App for Splunk
This software is released as-is. Splunk provides no warranty and no support on this software. If you have any issues with the software, please file an issue on the repository.
- When the
create-subscriptionfunction successfully creates a Microsoft Graph subscription, the subscription ID and expiration date is written to a storage blob. - After a subscribed event occurs, a notification is sent to the
subscription-webhook. Thesubscription-webhookcommits the data to a notification queue to keep things speedy. - When an event arrives on the notification queue, the
process-notification-queuefunction is triggered. This function retrieves the data from Microsoft Graph and forwards the data to Splunk. - Since subscriptions have a short lifespan, the
update-subscriptionsfunction periodically reads the blobs and will update subscriptions if they are about to expire.

