If you want to connect to Azure AD using PowerShell on Mac then follow the below steps.
- Step 1: Open the Terminal App and switch to PowerShell using pwsh command.
- Step 2: We install the Install Azure PowerShell Module using the below command,
Install-Module -Name AzType Y when prompted.
Untrusted repository You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from 'PSGallery'? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): Y - Step 3: Once complete, to connect to Azure AD Account, run the below command,
Connect-AzAccount - Step 4: You will be taken to your browser and asked to sign into the Microsoft Azure Account.

Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!