【问题标题】:Add-AzureAnalysisServicesAccount not recognized as cmdletAdd-AzureAnalysisServicesAccount 未被识别为 cmdlet
【发布时间】:2019-03-04 09:34:06
【问题描述】:

使用正确的参数运行 Add-AzureAnalysisServicesAccount 时出错

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

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

我检查并可以看到所需的模块 (AzureRM.AnalysisServices) 已安装并导入到脚本中

【问题讨论】:

  • 尝试升级它?或者,也许,您正在使用新的 az 模块?然后试试 add-azanalysisservicesaccount?
  • @4c74356b41 感谢您的回复。但没有运气!
  • 它能解决你的问题吗?
  • 它也没有用!但我通过使用 REST API 调用解决了这个问题!

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


【解决方案1】:

看来你需要确保你已经安装了Azure.AnalysisServices 模块,Add-AzureAnalysisServicesAccount 属于它而不是AzureRM.AnalysisServices 模块。

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

但实际上我们在AzureRM.AnalysisServicesPackage Details中找不到它,我们可以在Azure.AnalysisServices找到它。

【讨论】:

    猜你喜欢
    • 2018-01-18
    • 1970-01-01
    • 1970-01-01
    • 2017-03-26
    • 2022-01-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多