Explore the new Era of AIOps: Read the article

Integrating Microsoft Teams with Azure for K8s Deployments

Oct 30, 2023
15 min
Maria Ashby
Developer Advocate

Botkube is entering the MS teams world

Share on Twitter
Share on LinkedIn
Share on Reddit
Share on HackerNews
Copy URL

Table of Contents

Start Using Botkube AI Assistant Today!

Start Receiving Kubernetes Notifications Now with Botkube Cloud

As Microsoft Teams continues its steady rise as the go to platform for enterprise-level workplace collaboration, it is parallel to the rapid adoption of Azure and Azure Kubernetes Service (AKS). These collective forces drive organizations toward innovation, scalability, and streamlined cloud-native application deployment. However, this highlights a major challenge: as teams begin to incorporate Kubernetes and all of its complexities into their workflows, the need for a collaborative troubleshooting tool becomes essential. 

Enter Botkube - a Kubernetes troubleshooting and monitoring tool designed to empower DevOps teams to work more efficiently. Botkube has now expanded its capabilities to seamlessly integrate with Microsoft Teams, fostering collaborative troubleshooting tailored to your organization's Teams workspace. 

Botkube has a new version of MS Teams. It is easy to install and get up in running in five minutes or less. Click here to find out more! 

Benefits of Using Botkube and MS Teams

Botkube’s integration offers useful features for Microsoft users working with Azure Kubernetes Service (AKS). It simplifies interactions with Kubernetes and the broader cloud-native ecosystem. With the Botkube plugin system, users can easily integrate tools like Prometheus for monitoring and Helm for application package management within the Microsoft ecosystem. With Botkube, you can manage your deployments with Helm and customize your alerting set with Prometheus directly in Teams! This integration facilitates smoother deployment processes and more consistent monitoring. 

Botkube empowers developers with self-service access while ensuring a controlled and secure environment. It offers a controlled environment for developers to access their Kubernetes resources. It enables the whitelist of potent commands like 'create' and 'delete,' allowing developers to experiment with Kubernetes tools without granting them full control over the clusters. This is particularly useful for enterprise teams because it allows for a balance between developer autonomy and maintaining security standards. In essence, Botkube enhances the AKS experience by streamlining tool integration and offering controlled access for developers.

Tutorial Guide 

In this tutorial, we will guide you through the step-by-step process of configuring and leveraging Botkube for Microsoft Teams and AKS. This enhancement empowers your team to efficiently establish a connection between Kubernetes and Microsoft Teams, facilitating the streamlined management of multiple Kubernetes clusters and significantly improving incident resolution times.


  • Botkube Cloud account
  • Access to a Kubernetes cluster
  • MS Teams account

One-Time Setup and Ongoing Flexibility

** Steps 1-4 and 7-10 are one-time operations requiring administrative privileges. Once set up, Botkube can be configured across various channels and clusters without needing further admin access in Teams. This means after the initial setup, users can easily manage alerts and configurations through the Botkube Web App.**

Creating Botkube Cloud Account

  1. On the Botkube homepage, locate the “Get Started” button and click on it. This will take you to the account registration page.
  2. Fill in the required information in the registration form. You can sign up with your email address or Github account.

Dashboard setup

  1. Select create a new instance
Web Dashboard to connect Botkube to your Cluster
Commands to run to add Botkube to Kubernetes Cluster for Teams
  1. Next, use homebrew or curl to install Botkube CLI on your terminal (Step 1)
  2. Copy and paste the `Botkube install`... command (Step 2)
  3. Wait for the cluster to connect and click, Next

Select preferred communication platform connection
  1. Name your instance and select the Teams option 
Setting up Teams to receive Kubernetes alerts

Installing Botkube to Microsoft Teams

If you set this connection up previously, it should still be connected. However Botkube recently got listed on the Microsoft Teams App Store, so the connection just got way easier with less steps. So if you want to set the connection up again you may notice it went from 18 steps to now only 11 with Botkube being an approved Teams and Azure application.

  1. Navigate to the Microsoft Teams application and select Manage your Apps at the button of the screen 
Adding Teams Apps from Store
  1. Next select Search for Botkube in the search bar at the top of the screen.
Botkube's listing on Microsoft teams store
  1. And then select the Add to team button 
Further info on the Microsoft Teams Kubernetes connection

4. Select your preferred team or channel you would like to add Botkube to

Adding bot to chat channel

5. Next, Navigate to the chat window and a welcome message should appear

Welcome message

6. Select Connect to Botkube Cloud

Further adding the bot

7. This will take you to the Botkube Cloud dashboard. Your Teams channel will appear. Select the Connect Button.

Simple connect button
Success message for alerts to show up in channel

8. All of your Teams information will appear in the dashboard. Select the channels you want to use with Botkube. 

Control all channels that the Azure Kubernetes cluster is connected to in a dashboard

9. Connect your preferred plugins 

Add extra DevOps related plugins to the cluster

10. Review and select your preferred Botkube defaults. 

Adding kubectl aliases to Teams

11. Select Apply changes

12. Congratulations! You have successfully deployed Botkube for Microsoft Teams!


The new Botkube Microsoft Teams integration offers an all-in-one solution for MS Teams users. This integration enhances the Azure Kubernetes experience by simplifying interactions with Kubernetes and the broader cloud-native ecosystem. Botkube’s features like real-time notifications support across multiple channels streamline deployment management and open up a range of potential use cases for incident response management and troubleshooting. This integration empowers developers with self-service access while ensuring control and security, making it a valuable tool for enterprise teams seeking a balance between autonomy and compliance with security standards.

Check out Botkube Microsoft Teams integration here.

Get Started with Botkube

Whether you're a seasoned Kubernetes pro or just getting started, Botkube can help supercharge your troubleshooting process. Sign up now for free and join the community of users who are already benefiting from the power of Botkube. 

We want to know what you think of Botkube and how we can make it even better. Email our Developer Advocate, Maria or schedule a quick 15 meeting at your preferred time. As a thank you, we’ll send you some great Botkube swag!