How to restrict access for an existing Azure Container App to only be accessible via Azure VPN Gateway (Point-to-Site)

Abdelrhman Goma 55 Reputation points
2025-08-08T09:03:15.5366667+00:00

We have over 30 Azure Container Apps in our infrastructure, all currently accessible over the public internet. Our goal is to restrict access so that these Container Apps are only reachable through our Azure VPN Gateway (Point-to-Site configuration), without having to recreate or redeploy the existing containers.

Is there a way to achieve this

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
0 comments No comments
{count} votes

Accepted answer
  1. Sai Prabhu Naveen Parimi 3,470 Reputation points Microsoft External Staff Moderator
    2025-08-11T13:26:00.2+00:00

    @Abdelrhman Goma

    Unfortunately, Microsoft doesn’t provide an in-place way to change the environment type. However, it’s not a full rebuild — you can follow a quick migration:

    Create a new internal (VNet) Container Apps environment in the VPN-connected subnet.

    Copy configurations and secrets from your existing apps.

    Redeploy your container images into the new environment.

    Test connectivity via VPN.

    Update DNS/routing, then retire the old environment.

    This keeps your existing containers intact while moving them to a VPN-only setup.

    You found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.