关于Blob存储API [英] About blob storage api

查看:70
本文介绍了关于Blob存储API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个c#控制台应用程序,以完成读取blob内容并写入sql数据库的任务.但是我遇到了存储帐户连接字符串的问题,如果我使用从[访问密钥]获取的连接字符串,则会返回错误(请参阅 (如屏幕截图所示),当我使用从[共享访问签名]获取连接字符串时,将不会发生此类错误,有人遇到像我一样的问题吗?我按照ms官方blob存储api文档编写我的应用程序(https://docs.microsoft.com/zh-cn/azure/storage/blobs/storage-quickstart-blobs-dotnet?tabs=macos), 它确实表明我应该使用从[访问密钥]获取的连接字符串.

I create a c# console app to finish a task reading blob content and writing to sql database. But I met a problem with storage account connection string, if I use the connection string getting from [access key], then an error will be returned(please refer to the screenshot), when I used the connection string getting from [shared access signature], then such error will not occur, are there anybody met the same issue like me? I follow ms official blob storage api docs to write my app(https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-dotnet?tabs=macos), it does shows that I should use the connection string getting from [access key].

推荐答案

Hello Bright-Sun,

Hello Bright-Sun,

只是为了确保我在这里正确无误,您使用的是

Just to make sure I'm on the right path here, you're using the REST API for this connection string, correct?

哪种类型的 您正在尝试获得授权补助吗?最有可能的是,如果您过早地需要授权码或类似的混合步骤,便会使用令牌.

Which type of authorization grant are you attempting to obtain? Most likely, you're using a token when you need a authorization code or a similar mixup one step too early.


这篇关于关于Blob存储API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆