【问题标题】:Azure storage account connectionAzure 存储帐户连接
【发布时间】:2017-05-09 04:18:31
【问题描述】:

刚刚创建了一个包含以下详细信息的 Azure 存储帐户:

  • 位置:英国西部

  • 订阅:按需付费

  • 性能/访问层:标准/热

  • 复制:本地冗余存储 (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.

知道为什么吗?

【问题讨论】:

    标签: f# azure-storage


    【解决方案1】:

    性能/访问层:标准/热门

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

    【讨论】:

    • 感谢 Bruce,将帐户类型更改为 General Purpose 而不是 Blob Storage 成功了。
    猜你喜欢
    • 2018-12-20
    • 2019-02-01
    • 2019-06-08
    • 1970-01-01
    • 1970-01-01
    • 2015-03-17
    • 2021-12-17
    • 2018-05-18
    • 2015-12-02
    相关资源
    最近更新 更多