2016-12-23 167 views
3

刚刚创建了一个Azure存储帐户,并具有以下细节:Azure存储帐户连接

  • 地点:英国西

  • 订阅:现收现付

  • 性能/接入层:Standard/Hot

  • 复制:本地冗余存储(LRS)

我做的第一件事是在F# FSI中执行以下代码(使用我的真实帐户名和帐户密钥代替MyAccountName和MyAccountKey)。

open Microsoft.WindowsAzure.Storage 
let connectionString = @"DefaultEndpointsProtocol=https;AccountName=MyAccountName;AccountKey=MyAccountKey" 

CloudStorageAccount 
    .Parse(connectionString) 
    .CreateCloudTableClient() 
    .ListTables() 
    |> Seq.toArray 

但我收到以下错误:

Microsoft.WindowsAzure.Storage.StorageException: The remote server returned an error: (501) Not Implemented. ---> System.Net.WebException: The remote server returned an error: (501) Not Implemented.

任何想法,为什么?

回答

1

Performance/Access Tier: Standard/Hot

根据您创建存储帐户的详细信息,我假设您的帐户种类为Blob storage。据我所知,Blob存储账户专门用于存储Blob数据。根据您的代码,您需要重新创建Azure存储帐户,并为您的帐户种类选择General purpose,这可以为表提供存储空间。另外,还有类似的issue,你可以参考它。

+0

感谢布鲁斯,将帐户类型更改为“通用”,而不是“Blob存储”。 –