An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
Hi @Henrique Faria,
Thank you for reaching out on the Microsoft Q&A forum.
Since the same FQDN resolves to the private IP of the Application Gateway and access works without issues from an Azure VM but fails from the on‑premises network, this points to a network connectivity or security configuration issue between on‑premises and the Application Gateway subnet. DNS resolution and the backend application itself are unlikely to be the cause.
Below are the most common areas to review in this scenario:
1. Application Gateway subnet NSG
Even though traffic is coming over the VPN from on‑premises, it must still be explicitly allowed on the Application Gateway subnet.
- Verify the NSG allows inbound TCP 443 from your on‑premises IP address ranges.
- Check for any higher‑priority deny rules that might be blocking this traffic.
2. User‑Defined Routes (UDR) on the Application Gateway subnet
If a UDR is associated with the Application Gateway subnet, ensure that:
- Return traffic to on‑premises is routed via the VPN gateway
- It is not sent to Internet or a firewall/NVA without symmetric routing, which can cause silent connection failures.
3. VPN routing and address space propagation
On the Site‑to‑Site VPN, please confirm that:
- The Application Gateway subnet address range is included in the Local Network Gateway (on‑prem side)
- The same address range appears in the effective routes within the Azure VNet
- There is no CIDR overlap between on‑premises and Azure address spaces
https://learn.microsoft.com/azure/vpn-gateway/vpn-gateway-about-vpngateways
Why Azure access works
Access from an Azure VM succeeds because the traffic stays entirely within Azure, bypassing VPN routing, on‑premises firewalls, and return‑path constraints that can affect on‑prem connectivity.
Please let us know if the above helps or if you need any further assistance.
If this answer was helpful,please 'Accept the answer' and kindly consider upvoting it. For any follow‑up questions, feel free to leave a comment.