Getting Error: getaddrinfo ENOTFOUND <AppServiceAppName>.scm.<AppServiceEnvironmentName>.appserviceenvironment.net while deploying Azure Functions App in ASE V3 using Azure DevOps CI/CD pipeline.

Amit Anand 60 Reputation points
2024-03-01T16:38:34.49+00:00

Hi Friends,

Greetings of the day.

I am trying to deploy an Azure Function app using a release pipeline created on Azure DevOps. The function app lies within an App Service Environment V3 within a Virtual Network. My build pipeline runs successfully and created the artifact but when I run the release pipeline, it takes at least 15 mins and finally fails with the following error.

Failed to deploy web package to App Service.

Error: Error: Failed to deploy web package to App Service. Error: getaddrinfo ENOTFOUND <AppServiceName>.scm.<AppServiceEnvironmentName>.appserviceenvironment.net

Solutions I have tried so far.

While going through similar issues / discussions on other forums I found that its related to DNS configuration and referred to the below MS Docs.

https://learn.microsoft.com/en-us/azure/app-service/environment/create-ilb-ase#dns-configuration

Also, I have a Azure Private DNS Zone configured with the record sets as mentioned in the above document and also listed below.

To configure DNS in Azure DNS Private zones:

  1. created an Azure DNS private zone named <ASE name>.appserviceenvironment.net
  2. created an A record in that zone that points * to the ILB IP address
  3. created an A record in that zone that points @ to the ILB IP address
  4. created an A record in that zone that points *.scm to the ILB IP address

Although I don't see anything mentioned in the document about whether the Auto Registration setting of the Azure Private DNS Zone should be enable or disabled, I have kept it off. Even after having this configuration my release pipeline still fails with the same error. Could you please help me and let me know if I am missing anything ? Any help is appreciated.

Thanks and Regards,

Amit Anand

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,924 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,448 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,953 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2024-03-03T00:08:16.2433333+00:00

    Hey @Amit Anand

    The use of the DNS zones if for resolving within the VNet your ASE is attached to. You can refer to Connect privately to an App Service apps using private endpoint - Azure App Service | Microsoft Learn, but in order to deploy into that ASE, the agent running your pipeline must also be in that same VNET. The blog post, https://azure.github.io/AppService/2021/01/04/deploying-to-network-secured-sites.html, explains this further. You can either provision a VM in the same VNet or utilize a self-hosted build agent.


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.