未找到访问级别私有的 Azure Blob 资源

Azure Blob Resource Not Found for Access Level Private

我容器的访问级别是'Private (no anonymous access)'。我更喜欢此访问级别,因为我只希望授权用户查看我的内容。但是,当我尝试通过容器 URL 访问文件时,出现 ResourceNotFound 错误。

我想还有其他步骤可以验证请求的有效性。有人可以告诉我显示文件的步骤来帮助我吗?

我的前端是Angular/HTML.

这是预期的行为。如果 blob 位于具有 Private ACL 的 blob 容器中,则无法直接访问该 blob。

您需要做的是在 blob 上创建一个 Shared Access Signature (SAS) on the blob with at least read permission and use the SAS URL of the blob. You can create a Service SAS

通常的工作方式是在后端 API 的 blob 上创建一个 SAS,然后将该 SAS token/URL 传递给前端。