Cask for installing alpha powershell on MacOS.
Install with:
brew cask install RichardWLaub/powershell-alpha/powershell-alpha
Launch powershell:
powershell
Install, import, and login with:
Install-Package -Name AzureRM.NetCore.Preview -Source https://www.powershellgallery.com/api/v2 -ProviderName NuGet -ExcludeVersion -Destination /usr/local/share/powershell/Modules
Import-Module AzureRM.NetCore.Preview
Login-AzureRMAccount
Sources: