While trying to deploy functions to Function Apps it failed with the reason : getaddrinfoENOTFOUND

Hector 61 Reputation points
2020-10-19T16:29:39.537+00:00

While trying to deploy functions to Function Apps it failed with the reason : getaddrinfoENOTFOUND

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,997 questions
{count} votes

2 answers

Sort by: Most helpful
  1. MayankBargali-MSFT 70,451 Reputation points
    2020-10-22T15:09:42.157+00:00

    Hi @AzCoAdmCore02

    Thanks for sharing the details. I see that you are deploying the function to an isolated environment. Please review the ASE publishing document.

    With an ILB ASE, the publishing endpoints are only available through the ILB. The ILB is on a private IP in the ASE subnet in the virtual network. If you don't have network access to the ILB, you can't publish any apps on that ASE. As noted in Create and use an ILB ASE, you must configure DNS for the apps in the system. That requirement includes the SCM endpoint. If the endpoints aren't defined properly, you can't publish. Your IDEs must also have network access to the ILB to publish directly to it.


  2. sadomovalex 3,631 Reputation points
    2020-10-22T15:25:47.147+00:00

    how exactly you deploy functions to Functions App? Do you use zip deploy for that? E.g. we use the following code and it works:

    $kuduApiAuthorisationToken = Get-KuduApiAuthorisationHeaderValue $resourceGroup $webAppName
    
    $kuduApiUrl = "https://$webAppName.scm.azurewebsites.net/api/zipdeploy"
    
    Invoke-RestMethod -Uri $kuduApiUrl `
        -Headers @{"Authorization"=$kuduApiAuthorisationToken;"If-Match"="*"} `
        -Method POST `
        -InFile $localPath `
        -ContentType "multipart/form-data"
    
    0 comments No comments

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.