【发布时间】:2019-11-07 04:26:32
【问题描述】:
我尝试根据以下文档获取 Azure Stack 身份健康报告。但是,如果软件包安装在 power shell 上,则会出错。 Link
Get-AzsHealthReport : The term 'Get-AzsHealthReport' 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:3 char:17
+ $healthReport = Get-AzsHealthReport -AdminResourceManagerEndpoint $Ad ...
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-AzsHealthReport:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
【问题讨论】:
-
您是否按照link 安装了模块?使用正确的命令取决于您的 Azure Stack 版本,docs.microsoft.com/en-us/azure-stack/operator/…
-
@JoyWang 是的。然后我重新安装它们并得到同样的错误。 AzS 版本 1908
-
你确认安装了吗?docs.microsoft.com/en-us/azure-stack/operator/…如果你运行
Get-Command -Name Get-AzsHealthReport,结果是什么?
标签: azure powershell azure-stack