Azure AD / Entra ID with PowerShell

Connecting Azure AD with PowerShell

I have already made an Azure AD account using the Azure portal. From my computer, I connected my PowerShell using the <Connect-msolservice> command. From there I was able to retrieve the list of Users I had created using the GUI interface.

Creating a New User

Here I created a new user and assigned them to a department. The new changes from PowerShell are reflected in Azure Portal.

Connecting to 365

I wanted to connect to 365 to manage groups through PowerShell. However, I ran into some trouble. I read through the error and realized I had to modify the Execution Policy to Unrestricted.

Connecting to 365 continued...

After configuring the Execution Policy, I was able to successfully connect to 365 in order to manage and create new Groups.