Add-AzureAnalysisServicesAccount无法识别为cmdlet

时间:2019-03-01 14:16:14

标签: azure azure-powershell azure-analysis-services

使用适当的参数运行Add-AzureAnalysisServicesAccount时出错

脚本: Add-AzureAnalysisServicesAccount -Credential $ Credential -ServicePrincipal -TenantId $ tenantId -RolloutEnvironment $ rolloutEnvironment

错误::Add-AzureAnalysisServicesAccount:术语“ Add-AzureAnalysisServicesAccount”未被识别为cmdlet,函数,脚本文件或可运行程序的名称。检查名称的拼写,或者是否包含路径,请验证 路径正确,然后重试。

我检查了一下,发现所需的模块( AzureRM.AnalysisServices )已安装并已导入脚本中

1 个答案:

答案 0 :(得分:0)

似乎您需要确保已安装Azure.AnalysisServices模块,Add-AzureAnalysisServicesAccount属于它,而不是AzureRM.AnalysisServices模块。

doc中,看起来该命令属于AzureRM.AnalysisServices

enter image description here

但是实际上我们无法在AzureRM.AnalysisServices包装详细信息中找到它,而我们可以在Azure.AnalysisServices中找到它。

相关问题