Files
docs/reference/powershell/azure/connect-to-azure-ad.md
Nicole Rappe e73bb0376f
All checks were successful
GitOps Automatic Documentation Deployment / Sync Docs to https://kb.bunny-lab.io (push) Successful in 4s
GitOps Automatic Documentation Deployment / Sync Docs to https://docs.bunny-lab.io (push) Successful in 6s
Documentation Restructure
2026-01-27 05:25:22 -07:00

675 B

Purpose: Sometimes you will need to connect to Azure AD via powershell in order to perform troubleshooting / automation.

Update Nuget Package Manager

Install-PackageProvider -Name NuGet -Force -ForceBootstrap

Install AzureAD Powershell Modules

You will need to install the modules for AzureAD before you can run the commands necessary for querying Azure.

Install-Module -Name AzureAD

Connect to AzureAD

When you run the following command, it will open a dialog box to take the username, password, and MFA code (if applicable) for an administrative account in the Azure Active Directory.

Connect-AzureAD