A few of us on mac got stuck with the very first powershell step and getting the correct modules installed. The following process was used by a few of us and seemed to work pretty well.
Bootstrap Mac Powershell
brew cask install powershell or Restart powershell
- Uninstall Az, Azure, AzureRM and AzureAD
Unregister-PSRepository -Name 'Posh Test Gallery'
This should get you "clean", then:
- Restart powershell
Install-Module Az
Install-Module Azure
Install-Module -Name Az.Accounts -AllowPrerelease -Force
Register-PackageSource -Trusted -ProviderName 'PowerShellGet' -Name 'Posh Test Gallery' -Location https://www.poshtestgallery.com/api/v2/
Install-Module AzureAD.Standard.Preview
- Restart powershell
Import-Module Az
Import-Module Azure
Import-Module AzureAD.Standard.Preview
You should then be able to login, set you subscription then set your azuread to point at the new tenant.
When you go to run the first ps1 file you need to add the -adminPassword as explained in the docs because you are on mac.
A few of us on mac got stuck with the very first powershell step and getting the correct modules installed. The following process was used by a few of us and seemed to work pretty well.
Bootstrap Mac Powershell
brew cask install powershellor Restart powershellUnregister-PSRepository -Name 'Posh Test Gallery'This should get you "clean", then:
Install-Module AzInstall-Module AzureInstall-Module -Name Az.Accounts -AllowPrerelease -ForceRegister-PackageSource -Trusted -ProviderName 'PowerShellGet' -Name 'Posh Test Gallery' -Location https://www.poshtestgallery.com/api/v2/Install-Module AzureAD.Standard.PreviewImport-Module AzImport-Module AzureImport-Module AzureAD.Standard.PreviewYou should then be able to login, set you subscription then set your azuread to point at the new tenant.
When you go to run the first ps1 file you need to add the -adminPassword as explained in the docs because you are on mac.