I will walk you through two methods to run PowerShell (cross platform) in Docker containers.
In the first example, I will pull ubuntu:20.04 image and install PowerShell from scratch, while for the second, I’ll pull a PowerShell “ready” image.
We will take advantage of having two separate environments to test and compare two different Exchange Online PowerShell Modules.
As a bonus I will wrap up this video by importing data from PowerShell container to local host.
Enjoy
Connect to Exchange Online PowerShell
https://docs.microsoft.com/en-us/powe...
Installing PowerShell on Ubuntu
https://docs.microsoft.com/en-us/powe...
Using PowerShell in Docker
https://docs.microsoft.com/en-us/powe...
0:00 Intro
0:54 1. Install PowerShell (core) from scratch in ubuntu:20.04 container
to test Exchange Online PowerShell V2 Version 2.0.5 lastest release
3:16 2. Pull and run a PowerShell preinstalled Docker image
to test Exchange Online PowerShell V2 Version 2.0.6-preview
8:42 Conncet to Exchange Online using Echange Online PowerShell V2 Version 2.0.5
10:06 Conncet to Exchange Online using Echange Online PowerShell V2 Version 2.0.6-preview
10:58 Fix connection error and connect to Exchange Online using Echange Online PowerShell V2 Version 2.0.5
14:30 Export Exchange Online data csv to your container
15:00 Import data from PowerShell container to local host
15:39 Wrap up