如何在虚拟网络中创建 Azure 容器注册表?

How to create Azure Container Registry inside the Virtual Network?

我正在使用 AKS 管理 K8s 集群。我的主要目标是将 K8s 所需的所有资源保存在同一个 Vnet 中。

资源之一是 ACR。我想将其设为私有,而且它应该只能在 Vnet 内访问。

如果可能的话请告诉我,或者给我指出正确的方向。谢谢!

不幸的是,ACR 只是一个存储库,用于创建和维护 Azure 容器注册表以存储和管理您的私有 Docker 容器映像。似乎没有Vnet与之关联。您可以关注document to see the feature of it. But it is a private Container Registry, so you can control the access with Service Principal.