gpt4 book ai didi

windows - 使用 powershell Invoke-AdverT KeyVault 命令创建 Azure 自签名证书

转载 作者:可可西里 更新时间:2023-11-01 11:48:30 25 4
gpt4 key购买 nike

最近,我尝试按照微软的手册为Azure服务工厂创建自签名证书: Azure Docs: Secure a Service Fabric cluster, step 2.5, 02/05/2016但是命令 Invoke-AddCertToKeyVault 失败并出现下一个错误:

Invoke-AddCertToKeyVault : The term 'Invoke-AddCertToKeyVault' 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.

我认为 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 后重新启动了电脑。

我可能错过了一些东西,但我坚持了下来。怎么解决?

最佳答案

该命令行开关位于应导入的包中 -

Import-Module "C:\Users\chackdan\Documents\GitHub\Service-Fabric\Scripts\ServiceFabricRPHelpers\ServiceFabricRPHelpers.psm1"

那就是它的implementation顺便说一句,作为引用,它甚至存在:)。尝试导入模块,它应该可以工作。

关于windows - 使用 powershell Invoke-AdverT KeyVault 命令创建 Azure 自签名证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37146448/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com