Get-AzureRmBackupVault 不返回任何错误或结果

Get-AzureRmBackupVault not returning any error or result

仍然想知道为什么 Azure Powershell 不能始终如一地工作。

我尝试使用以下命令行通过 powershell 拉取所有 azure vault,但是来自此命令的结果 none:

添加-azurermaccount

登录-AzureRmAccount

Select-AzureRmSubscription -SubscriptionId "XXXXX-b8ee-4533-a2c2-3ee6b4f01a8d"

获取 AzureRmBackupVault

许多其他 powershell 命令(如 Get-AzureRmResourceGroup)也存在同样的问题,而其他地方的 Get-AzureRmVM 工作正常。

请确保您的订阅中有 Backup vault (classic)

Backup Vault 是经典资源,如果你创建 Recovery Services vault,

请执行以下 cmdlet。

Get-AzureRmRecoveryServicesVault 

有关此的更多信息,请参阅此 link

注意:您无法使用 Get-AzureRmBackupVault 获取 Recovery Sevices Vault。您的订阅中似乎没有备份保管库(经典)。

如果您的订阅中有备份保管库,您可以从 link.

下载并安装最新版本的 Azure Power Shell