【发布时间】:2018-05-01 13:44:37
【问题描述】:
仍然想知道为什么 Azure Powershell 不能始终如一地工作。
我尝试使用以下命令行通过 powershell 拉出所有 azure vault,但没有任何结果来自此命令:
添加-azurermaccount
登录-AzureRmAccount
Select-AzureRmSubscription -SubscriptionId "XXXXX-b8ee-4533-a2c2-3ee6b4f01a8d"
获取-AzureRmBackupVault
与 Get-AzureRmResourceGroup 等许多其他 powershell 命令相同的问题,而其他 Get-AzureRmVM 工作正常。
【问题讨论】:
-
您需要传递您尝试获取错误消息的资源的名称。
-
你应该更新你的模块,
Add-AzureRmAccount不再是一个东西。 -
执行我,
add-azurermaccount有什么问题?它正在使用最新版本的 Azure PowerShell @TheMadTechnician;到 OP,删除所有 Azure PowerShell 模块并安装最新版本 -
要运行 Get-AzureRMBackupvault 命令,您需要 PowerShell 模块 1.7.0 从以下链接下载最新的 PowerShell 模块并重试操作powershellgallery.com/packages/AzureRM.DataLakeStore/5.0.0
标签: powershell azure backup azure-backup-vault