HDInsight群集创建cmdlet错误

时间:2017-12-26 18:27:08

标签: azure hdinsight arm-template

我尝试在PATH中运行cmdlet以使用powershell模板创建群集时收到错误消息。如果我从ARM门户运行它,模板运行正常。

  

错误:

     

New-AzureRmResourceGroupDeployment:无法检索   cmdlet的动态参数。无法加载类型   ' Microsoft.WindowsAzure.Commands.Common.FileUtilities'从装配   ' Microsoft.WindowsAzure.Commands.Common,Version = 4.0.0.0

     

命令:

Azure

1 个答案:

答案 0 :(得分:0)

你能否重新检查你在params.json文件中传递的参数。

我能够使用相同的cmdlet创建HDInsight群集:

New-AzureRmResourceGroupDeployment -ResourceGroupName v-chepra -TemplateFile "H:\Azure Training\template (1)\template.json" -TemplateParameterFile "H:\Azure Training\template (1)\parameters.json"

enter image description here