Azure表存储返回404 API调用的资源未找到

标签 azure azure-storage azure-table-storage azure-storage-account

我想查询 Azure 中的表存储。我使用的网址如下:

https://SA-name.table.core.windows.net/table-name()

我得到了回复:

ResourceNotFound The specified resource does not exist. RequestId:id Time:2022-03-18T07:25:18.4393071Z

我的问题是,如何将存储帐户中的表存储设置为公共(public)访问?

最佳答案

该错误可能是因为在创建 Azure 表时,访问级别默认为私有(private),不允许访问资源。

但是 请Note: 只能向 Azure blob 或 blob 容器授予未经身份验证的公共(public)访问权限。

Every request made against a storage service must be authorized, unless the request is for a blob or container resource that has been made available for public or signed access. Azure Storage supports optional anonymous public read access for containers and blobs. By default, anonymous access to your data is never permitted.

您需要提供带有授权 header 的请求,如下所述:authorize-with-shared-key

或者使用共享访问签名,如下所述:storageservices/delegate-access-with-shared-access-signature .

URI 的访问策略部分指示共享访问签名有效的时间段以及要授予用户的权限。 specifying-the-access-policy

关于Azure表存储返回404 API调用的资源未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71523644/

相关文章:

Azure Http 到 Https 重定向不适用于 SPA

azure - 将每个拉取请求部署到具有唯一 URL 的应用服务

r - 在 Azure 中创建运行 R 脚本的管道,而无需通用化 VM

c# - 在 C# 中同步多个 Azure 表/容器 - 最佳实践是什么?

android - Azure SignatureHash 拒绝来自 debug.keystore 的 Base64 编码 SHA1 哈希

azure - 多个客户端访问同一 Azure Blob 容器的连接吞吐量是多少?

c# - 缺少队列触发属性

c# - 为什么 CloudTable.ExecuteQuerySegmentedAsync 只返回最大 1k 实体的一小部分?

c# - 我可以让我的类在运行时从另一个类继承吗?

azure - 从 Azure 表存储中删除数百个实体