Login-azurermaccount: The "Login-azurermaccount" item cannot be identified as a cmdlet, function, script file, or name of a running program. Check the spelling of the name, if the path is included, make sure the path is correct, and then try again.
Location D:\workspace\Hadoop\Create cluster\deploy.ps1:71 Character: 1
+ Login-azurermaccount-environmentname Azurechinacloud;
+ ~~~~~~~~~~~~~~~~~~~~
+ Categoryinfo:objectnotfound: (login-azurermaccount:string) [], parentcontainserrorrecordexception
+ fullyqualifiederrorid:commandnotfoundexception
This issue is due to the PowerShell version issue:
First, it is recommended that all users upgrade to Azure PowerShell 1.0.2 or later, mainly because of the revisions provided in this release. Users with 0.9.x versions are also recommended to upgrade, mainly because some new services are available under the new version.
(e.g. Rediscache Premium)
PowerShell version issues