I am stuck in a problem in Azure PowerShell. I am not able to connect to AzureRM account. It's showing this error:
Connect-AzureRMAccount : The term 'Connect-AzureRMAccount' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + Connect-AzureRMAccount + ~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Connect-AzureRMAccount:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
I'm doing this in Mac OS . Firstly I've installed the PowerShell using: brew cask install PowerShell. Then I've done the following:
- Install-Module AzureRM -AllowClobber -Scope CurrentUser.
- Install-Module Azure.
- Install-Module AzureRM.
- Import-Module AzureRM.
- Connect-AzureRMAccount (It's Showing me the above Error).
I am expecting step 5 to give me the sign in pop up. Please Help
get-command *azurerm*
you can follow this to install PowerShell on mac, thatlazyadmin.com/2169-2 – Nancy Xiong