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:
- created an Azure DNS private zone named <ASE name>.appserviceenvironment.net
- created an A record in that zone that points * to the ILB IP address
- created an A record in that zone that points @ to the ILB IP address
- 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