How to call Azure Private Zone custom URLs points to AKS from App Service?

JaiHoDevs 0 Reputation points
2023-09-28T15:21:28.5333333+00:00

We have created an AKS Cluster and deployed two services using ingress controller as load balancer. Also created a private DNS Zone with A records for these two services. The host with prefix properly given Ingress.YAML file and configured. Able to curl call to private links from AKS run command window.

Ex: http://api1.<private DNS Zone name>

http://ap2.<private DNS Zone name>

Now we have an UI application hosted on Azure app service (Allow public access is checked), now from that UI unable to call these links. Getting GET <url> net::ERR_NAME_NOT_Resolved

A virtual network created with two Subnets, one for AKS cluster and another for App service.. App service also enabled VNet Integration.


For more trouble to avoid client environment, we have done same kind of setup using another subscription.. Same issue from browser but curl -v <url> getting output in middle with Http/1.1 200 OK with connection #0 to host <url> left intact (in red lines).. Also host:port able to call from Azure app service Network troubleshoot page..

Both envs, from cluster able to curl all to private DNS links. But client env, links not able to call in Kudo, our env able to get Http/1.1 200 OK with connection #0 to host <url> left intact (in red lines).

Client Environment troubleshoot from Kudu app service(scm link):


tcpping ap1.<private dns zone name>

Connection attempt failed: Connection timed out.

tcpping <dns zone name>

Connection attempt failed: No such host is known.

nameresolver <private dns zone name>

Server: 168.63.129.16

Non-authoritative answer:

Name: <private dns zone name>

nameresolver api1.<private dns zone name>

Server: 168.63.129.16

Non-authoritative answer:

Name: <private dns zone name>

Addresses: 10.xxx.x.x (ingress controller load balancer)

Expecting that these private dns zone links should call from UI app via browser window.

Please suggest. Appreciate your Quick help here. Thank you.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,445 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,112 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,770 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 26,136 Reputation points Microsoft Employee
    2023-09-29T09:24:45.3233333+00:00

    @JaiHoDevs , Following-up on this, I understand you have already tried several things to isolate the issue.

    Just to highlight, please sure that from your App Service you can reach the DNS Server (defined in VNET). You may test this with "tcpping <IP_DNS_Server>:53".

    Also, ensure that the App Service do not have other DNS defined in addition to the one in the VNET. To review this, you will need to check the property: properties.dnsConfiguration.dnsServers - as outlined in this doc Name resolution (DNS) in App Service - You may check this in JSON view of the resource or in Resource Explorer.

    Kindly confirm that you do not have an appsetting of type WEBSITE_DNS_SERVER (App Service > Configuration > AppSettings).

    Kindly let us know how it goes, I'll follow-up with you further.


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.