azure - 无法通过浏览器访问Azure容器

标签 azure azure-container-instances azure-storage-account

这是当我点击容器的 url 时浏览器中显示的错误:

此 XML 文件似乎没有任何与其关联的样式信息。文档树如下所示。

ResourceNotFound

The specified resource does not exist. RequestId:3fc3c275-301e-000f-3193-f99692000000 Time:2022-11-16T08:13:12.8837824Z

但是当我点击 blob 的 URL 时,我就能够访问该 blob。

最佳答案

我尝试在我的环境中重现相同的错误,如下所示:

enter image description here

要解决此问题,请尝试使用 SAS token 在容器 URL 中授予访问权限,如下所示:

enter image description here

并生成 SAS token 并将其包含在以下 URL 中:

https://<storage-account-name>.blob.core.windows.net/<containername>?restype=container&comp=list&<sas-token>

当我运行相同的命令时,我成功地得到了结果,如下所示:

enter image description here

关于azure - 无法通过浏览器访问Azure容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74457281/

相关文章:

python - 如何使用 python sdk 访问 Azure 存储表中的最新条目?

excel - Azure机器学习工作室: how to add a dataset from a local Excel file?

sql-server - 在 Azure 上运行 MVC4 时出错

azure - 使用 MSI 从本地 Service Fabric 群集访问 Key Vault

azure - 逻辑应用程序的 Until 循环限制到底如何工作?

Azure 应用服务被存储帐户拒绝并出现 403 错误

c# - 不能在通过 CloudTable.CreateQuery<T>() 创建的查询上调用 Fluent 方法

c# - CreateDocumentQuery 不绑定(bind)到 CLR 对象

docker - 是否需要使用 Azure 容器注册表才能使用 Azure 容器?

azure - 如何在azure容器实例中指定端口?