我在AzureRM.Profile下看到Connect-AzureRmAccount命令:
Get-Command -Module AzureRM.Profile*
CommandType Name Version
Cmdlet Connect-AzureRmAccount 0.13.1
但当我运行它时,得到以下错误:
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
我搜索了stackoverflow,检查了我是否有最新的Powershell版本,是否安装了NetCore.Preview。我想不出是哪里出了问题,有没有人能指点一下?
https://stackoverflow.com/questions/52191638
复制相似问题