DNS Failures in Apps on Consumption / Flex-Consumption Plans

Sabyasachi Bose 30 Reputation points
2025-11-27T22:57:43.3566667+00:00

Since a last few days, function apps deployed on consumption and flex-consumption plans are failing with "([Errno -3] Temporary failure in name resolution)" connecting to other azure services as well as external APIs. We have been managing handful of errors all the time but there is a surge of errors in last 7 days. These apps do not use VNet or any custom networking settings.

Is it a known issue? Is anyone else facing the problem?

Here is the count of DNS failures in this month by date.

User's image

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
{count} vote

2 answers

Sort by: Most helpful
  1. Adam Zachary 2,105 Reputation points
    2025-11-28T02:14:20.67+00:00

    I’ve dealt with this exact problem before on Consumption and Flex-Consumption plans.

    When you see a sudden surge in “Temporary failure in name resolution” and you are not using VNets, the issue is almost always the same:

    Azure rotates the underlying compute hosts for Consumption plans, and sometimes a batch of hosts ends up with broken or degraded DNS resolvers. It doesn’t show in Service Health because these issues are host-level**,** not region-wide, so Microsoft does not classify them as incidents.

    How to confirm it: Restart the Function App (or force a redeploy). If the DNS errors disappear immediately after restart and then come back days later, you are landing on bad backend hosts.

    What actually fixes it:

    1. Restart the Function App to force your app onto a different backend host.
    2. If it continues, switch the app temporarily between Consumption → Flex Consumption → back, which forces a full reallocation.
    3. Add a simple DNS test in Application Insights to confirm if the resolver is failing before your code even runs.
    4. If the issue persists for more than a few hours, open a support ticket with your timestamp and region. Microsoft will drain the faulty hosts manually. I had to do this last time.
    1 person found this answer helpful.

  2. Sabyasachi Bose 30 Reputation points
    2025-11-28T00:25:39.6633333+00:00

    Hello Pashikanti,

    Thank you for the quick response. Azure Service Health isn’t reporting any global issues, including for Functions and DNS in our region. Application Insights is enabled, and our Linux-based apps are using the default dnsRetryAttemptCount of 5. The failures occur even after all retries are exhausted.

    If there is an underlying problem, why isn’t it reflected in Service Health?

    And if there isn’t a problem, what’s causing these errors?

    Appreciate your help in getting to the root of this.

    Regards

    Sabya


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.