【发布时间】:2016-09-05 02:12:32
【问题描述】:
我正在尝试安装和配置 Azure Powershell,但令人惊讶的是,我在设置 StorageAccountName 参数时遇到了问题。
我在企业帐户上设置了 vm,资源组名称为 "RG-1",存储帐户名称为 rg13675 and rg16461。在深入了解我的资源组后,我找到了这些存储帐户名称。
在运行命令时,
Set-AzureRmCurrentStorageAccount –ResourceGroupName “RG-1” –StorageAccountName “rg16461"
我的 powershell 报错:
Set-AzureRmCurrentStorageAccount : The Resource 'Microsoft.Storage/storageAccounts/rg16461' under resource group 'RG-1' was not found.
At line:1 char:1
+ Set-AzureRmCurrentStorageAccount –ResourceGroupName “RG-1” –StorageAc ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Set-AzureRmCurrentStorageAccount], CloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Management.Storage.SetAzureRmCurrentStorageAccount
【问题讨论】:
标签: powershell azure