How to Install Required Office 365/Azure Modules

Say if you’re trying to do something in 365/Azure via PowerShell and the instructions you find have you run certain commands that come back as ‘not found’. You need to install the required modules. Here’s are to do so.

The ‘Main’ 365 Module:

Install-module MSONline
Import-module MSONline

The Module Required to Run any MSOL Commands:

Install-module exchangeonlinemanagement
Import-module exchangeonlinemanagement

The Module to Administer Teams

Install-module Microsoftteams
Import-module Microsoftteams

The Module Required to Connect to Azure

Install-module AzureAD
Import-module AzureAD

Leave a Reply

Your email address will not be published. Required fields are marked *