【发布时间】:2015-04-22 00:12:52
【问题描述】:
我想使用 Azure 存储作为我的静态文件的备份。我安装了 Azure PowerShell 并连接到我的订阅遵循本指南:http://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/
下一步我去了我的 Azure 门户并创建了存储:
然后我复制了一个主存储键
并执行命令
$ctx=New-AzureStorageContext account-name account-key
我的存储帐户名称(上图中的第一个字段)和主帐户密钥。 没关系。
然后我尝试创建一个共享并得到错误:
PS C:\> $s=New-AzureStorageShare mysd -Context $ctx
New-AzureStorageShare : The remote name could not be resolved: 'myxxxbackup.file.core.windows.net'
At line:1 char:4
+ $s=New-AzureStorageShare mysd -Context $ctx
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzureStorageShare], StorageException
+ FullyQualifiedErrorId : StorageException,Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet.NewAzureStorageShare
为什么以及如何解决这个问题?
【问题讨论】:
标签: powershell azure azure-storage