Self-managed Microsoft Teams
Last updated
Last updated
Our Microsoft Teams integration requires a Teams app, which needs to be configured in your own Teams workspace when using Cortex Self-Managed.
Use existing OAuth credentials or create a new Enterprise application in Azure. The following environment variables are referred to later on.
MICROSOFT_TEAMS_CLIENT_ID
- the Application ID
MICROSOFT_TEAMS_CLIENT_SECRET
- the Client Secret
MICROSOFT_TEAMS_REDIRECT_URI
- the Redirect URI, "[Cortex Frontend URL]/oauth/internal/microsoft_teams"
Create a Bot Service in Azure. The following environment variables are referred to later on.
MICROSOFT_TEAMS_BOT_APP_ID
- the Microsoft App ID for the bot
MICROSOFT_TEAMS_BOT_APP_PASSWORD
- the Bot Password
Create/Upload the Teams App
Use the following manifest to create a new Teams app in your workspace.
Make sure to replace the URLs found in []
with the .
Configure the Messaging endpoint - "[Cortex API URL]/api/v1/microsoft/teams/webhook"
Upload a zipped manifest along with the icons to your Teams instance. Note: only Teams admins can do this.
If your Cortex Self-Managed installation is not available from the public internet, the Microsoft Teams notifications will not work, as Microsoft Teams needs to be able to hit the Cortex API when a command is run.
You'll need to configure your on-prem deployment to be able to talk your Teams App.
Create a k8s secret and add the secret in your values.yaml
file for the Helm chart. You may already have a secret set up if you had configured a persistent store previously, so be sure to verify in your Helm chart.
Add the follow key/values to the secret (keeping in mind they need to be base64 encoded in k8s):
MICROSOFT_TEAMS_CLIENT_ID
MICROSOFT_TEAMS_CLIENT_SECRET
MICROSOFT_TEAMS_REDIRECT_URI
MICROSOFT_TEAMS_BOT_APP_ID
MICROSOFT_TEAMS_BOT_APP_PASSWORD
Restart your Cortex backend deployment