也可以通过 Azure 公共 IP 访问 Azure Blob 文件

问题描述

我想访问一个 blob,例如https://mystorage.blob.core.windows.net/container/file.dat 还通过在我的嵌入式应用程序中使用来自 Azure 的公共 IP。例如 https://1.2.3.4/container/file.dat 应该是同一个文件

我检查了 Azure 负载均衡器、应用网关、应用代理、Azure CDN 和 Azure Front Door 服务,但找不到解决方案。

编辑:

Azure 存储有私有链接选项。我今天试过了,没有成功。基本上,我试图将我的公共 IP 链接到 Azure 存储 blob 访问。

解决方法

这是你得到的错误:

enter image description here

首先,确保您的 blob 可以被公众访问:

enter image description here

如果您没有设置网络的要求,请确保:

enter image description here

然后设置容器访问级别:

enter image description here

enter image description here

那么,应该没问题了。