[Powershell]如果订阅是ARM,如何访问经典存储帐户? [英] [Powershell] How to access the classic storage account when the subscription is ARM?
本文介绍了[Powershell]如果订阅是ARM,如何访问经典存储帐户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在访问ARM订阅中存在的经典存储帐户时遇到了困难。
I am facing difficulty accessing classic storage account which is present in an ARM subscription.
当我执行
When I execute
Get-AzureStorageAccount -StorageAccountName "MyClassicStorageAccount"
我得到了以下错误:
Get-AzureStorageAccount : ResourceNotFound: The storage account 'MyClassicStorageAccount' was not found.OperationID : 'f3cbd14bb3183d6ba05835660a9dceb6'At line:1 char:19+ ... orageAccount = Get-AzureStorageAccount -StorageAccountName MyClassicStorageAccount+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Get-AzureStorageAccount], ComputeCloudException + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.StorageServices.GetAzureStorageAccountCommand
我做了一个Login-AzureRmAccount
I did a Login-AzureRmAccount
并尝试了Add-AzureAccount同样没什么帮助。
and tried Add-AzureAccount as well but nothing helped.
推荐答案
以管理员模式启动PowerShell并运行下面提到的命令。
#This cmdlet will allow you to login
Add-azureaccount
#This is will list the Azure Subscription
Get-AzureRMSubscription
# This cmdlet will provide the complete details of the storage account
Get-AzureStorageAccount -StorageAccountName *******
你也可以参考
中提到的建议
MSDN 主题。
You may also refer to the suggestion mentioned in the MSDN thread.
这篇关于[Powershell]如果订阅是ARM,如何访问经典存储帐户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文