【问题标题】:Azure Get Certificate in Power ShellAzure 在 Powershell 中获取证书
【发布时间】:2017-09-16 10:32:11
【问题描述】:

试图列出我帐户中的所有证书。

使用Get-AzureCertificate 时,它抱怨我需要使用Select-AzureSubscription 选择默认订阅。 但是Select-AzureSubscription不能选择订阅,
我只能选择Select-AzureRmSubscription 订阅。但是这个Get-AzureCertificate需要Select-AzureSubscription

如何使用 PowerShell 列出我的 Azure 中的所有证书?

【问题讨论】:

  • 您的 Azure PowerShell 的哪个版本?请运行此脚本检查Get-Module -ListAvailable -Name Azure -Refresh,其他命令是否运行正常?

标签: powershell azure


【解决方案1】:

您是否登录了 ASM 订阅?看起来您已使用 Add-AzureRMAccount 或 Login-AzureRMAccount 登录。请改用 Add-AzureAccount。

【讨论】:

  • 我确实尝试过Add-AzureAccount,但我的订阅未列出,它告诉我我不是管理员或共同管理员。当我登录到我的 Azure 门户时,我可以看到订阅和所有证书。 Login-AzureRmAccountAdd-AzureAccount 之间有什么区别?
猜你喜欢
  • 2019-02-28
  • 2011-11-21
  • 2013-06-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-28
  • 2015-03-21
  • 2016-12-13
相关资源
最近更新 更多