Skip to content

Procedure to Bootstap Mac Powershell #24

@jakiefermsft

Description

@jakiefermsft

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions