How to mitigate NGNIX container which is missing DNS resolver

Mangi,Balaraju,IN-Chennai 165 Reputation points
2024-01-17T12:32:14.7933333+00:00
Hi,

We have hosted webapps in AKS using NGINX ingress and we were able to retrieve the AKS web app response from the postman for the given API query parameters but not from the powers apps. 
When we try to access AKS  webapp from power app we are getting 500 error.  Based on the Microsoft documentation we are evaluating the Application Gateway Ingress Controls to access web app from power app. 

Currently Power app unable to resolve AKS hostname where the webapp is hosted. Please let us know your suggestions/directions to overcome the below issues.
{
  "error": {
    "code": 500,
    "message": "The remote name could not be resolved: '*******'",

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
667 questions
Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
625 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.
1,952 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anveshreddy Nimmala 3,460 Reputation points Microsoft Vendor
    2024-01-19T04:19:53.26+00:00

    Hello Mangi,Balaraju, Welcome to microsoft Q&A, Thankyou for posting your Query here. AKS web app from Postman, it is able to resolve the hostname and retrieve the response successfully. However, when you try to access the web app from Power Apps, it is unable to resolve the hostname and returns a 500 error. One possible solution to this issue is to use a fully qualified domain name (FQDN) for the AKS web app. You can configure a DNS record for the AKS web app in your DNS server or in Azure DNS. This will allow Power Apps to resolve the FQDN and access the AKS web app. Application Gateway Ingress Controller (AGIC) to expose the AKS web app to the internet. AGIC provides a managed ingress solution for AKS that uses Azure Application Gateway to expose HTTP and HTTPS routes to your AKS cluster. With AGIC, you can use a public IP address to access the AKS web app from Power Apps. To use AGIC, you need to follow these steps: Deploy AGIC to your AKS cluster. Create an ingress resource for the AKS web app. Configure the DNS record for the AKS web app to point to the public IP address of the Azure Application Gateway. use below links to enable AGIC https://video2.skills-academy.com/en-us/azure/application-gateway/tutorial-ingress-controller-add-on-new Hope this helps you, please accept the answer if it is helpful, else comment your error/query in detail to get a better view of the issue and provide exact solution.


0 additional answers

Sort by: Most helpful