You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Web Farm环境下DataProtection密钥持久化到Blob遇UnsupportedHttpVerb错误

Web Farm场景下DataProtection密钥无法持久化到Azure Blob Storage问题

我在Web Farm场景部署应用,无法将DataProtection的密钥持久化到数据库,转而尝试把密钥文件存储到Azure Blob Storage,但操作失败。

我参考文档编写了以下代码:

builder.Services.AddDataProtection()
    .PersistKeysToAzureBlobStorage('blob-sas-uri')
    .ProtectKeysWithAzureKeyVault('keyvault identifier');

运行应用时出现如下错误:

RequestFailedException: The resource doesn't support specified Http Verb.
 ErrorCode: UnsupportedHttpVerb Content:
Azure.Storage.Blobs.BlockBlobRestClient.Upload(long contentLength, Stream body, Nullable<int> timeout, byte[] transactionalContentMD5, string blobContentType, string blobContentEncoding, string blobContentLanguage,...

请问我是否在Azure门户中遗漏了某些配置?


内容的提问来源于stack exchange,提问作者roopteja

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.21 18:22:02