Connect to Microsoft Teams PowerShell From a Docker Container

In this blog, post, I will show you how to manage Microsoft Teams using Teams PowerShell module from Docker.

PowerShell Core

Since the Microsoft Teams PowerShell module runs on PowerShell Core, we can easily use inside a Docker container.

In the article, I will use the official PowerShell Core Docker image, which is available on Docker Hub.

Download image

To download the official image, I will run the following command

docker pull

Run Container

Using the command below, I will deploy my PowerShell container container

docker run -it --name teams

Install Microsoft Teams Module

Now, I will install the PowerShell module using the following cmdlet:

Install-module microsoftteams


In the final step, I will connect to Teams using the following cmdlet.


Open the login URL and type to code to connect.