CONNECT TO AZURE AD WITH POWERSHELL (GRAPH MODULE)

This post details how to connect to Azure AD using the Azure AD PowerShell for Graph module.

Install Module

From an elevated Windows PowerShell command prompt, run the following command.

Install-Module AzureAD

If you are warned about installing the modules from an untrusted repository, press A, and then enter.

Upgrade Module

In this example, I already have the module installed (version 2.0.2.4), but can install a newer version (2.0.2.16) using the -Force parameter.

AzureADModule1

Install-Module AzureAD -Force

AzureADModule2

Connect

With the module installed, connect to Azure AD using the following command.

Connect-AzureAD

Enter your username, click Next.

AzureADModule3

Enter your password, click Sign in.

AzureADModule4

Enjoy 🙂

AzureADModule5

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s