Hi @Nguyen,
Thanks for contacting Microsoft Q&A platform.
To access an on-premises container registry from Azure Container Apps, you need to ensure secure and reliable connectivity between your on-premises environment and Azure. Here's a step-by-step guide to achieve this:
- First, you need to establish a secure network connection between your on-premises environment and Azure. This can be done using:
- VPN Gateway: Establish a Site-to-Site VPN connection between your on-premises network and your Azure Virtual Network (VNet).
- ExpressRoute: Use Azure ExpressRoute to create a private connection between your on-premises network and Azure.
- Ensure that your Azure Container Apps environment is part of a VNet that is connected to your on-premises network.
- Create a VNet: If you don't already have a VNet, create one.
- Add a Subnet for Container Apps: Ensure that your Container Apps environment is deployed in a subnet within this VNet.
- Establish Connectivity: Use either a VPN Gateway or ExpressRoute to connect your on-premises network to this VNet.
- Ensure your on-premises container registry is accessible from the VNet. This may involve configuring firewall rules or network security groups (NSGs) to allow traffic from the Azure VNet.
- When creating your Azure Container Apps environment, ensure it is associated with the VNet.
- You need to provide Azure Container Apps with credentials to pull images from your on-premises container registry.
- Deploy your container app ensuring it can access the on-premises container registry for pulling images.
- Ensure that your Container App can successfully pull images from the on-premises container registry. This might require troubleshooting network connectivity, DNS resolution, and firewall rules.
Hope this helps you.