【发布时间】:2016-05-10 18:39:20
【问题描述】:
最近,我尝试根据微软的手册为 Azure 服务工厂创建自签名证书:
Azure Docs: Secure a Service Fabric cluster, step 2.5, 02/05/2016
但是命令Invoke-AddCertToKeyVault 失败并出现下一个错误:
Invoke-AddCertToKeyVault :术语“Invoke-AddCertToKeyVault”不是 识别为 cmdlet、函数、脚本文件或可操作的名称 程序。检查名称的拼写,或者是否包含路径, 验证路径是否正确,然后重试。
我认为 Azure Powershell 已成功安装在我的机器上,因为我能够通过运行 Login-AzureRmAccount 登录到我的 Azure 帐户。 $env:PSModulePath 还表示 Azure 模块路径已添加到路径变量中(根据文章:Azure Docs: How to install and configure Azure PowerShell, 04/22/2016)。他们在这里:
...\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\;
...\Microsoft SDKs\Azure\PowerShell\ServiceManagement\;
...\Microsoft SDKs\Azure\PowerShell\Storage\;
另外,我在安装 Azure PowerShell 后重新启动了我的电脑。
我可能错过了一些东西,但我被它困住了。怎么解决?
【问题讨论】:
标签: windows powershell azure