Installing and connecting to AAD via PowerShell
Azure AD can be managed easily using PowerShell cmdlets, in the same way as we've demonstrated with general O365 administration via PowerShell in Chapter 3, Administering Office 365 with PowerShell. Remember to run PowerShell as an administrator (right-click, and then choose Run as administrator) when running commands to ensure you'll be able to complete actions (assuming your credentials are also valid for the action you're attempting to perform). In this recipe, we'll install and connect to AAD via PowerShell to unlock many more administrative capabilities.
Getting ready
You must be a global administrator to complete the steps in this recipe.
If you haven't done so already (perhaps in Chapter 3, Administering Office 365 with PowerShell), download and install the Microsoft Online Services Sign-In Assistant at http://go.microsoft.com/fwlink/?LinkID=286152.
How to do it…
- Install either...