An Azure service that provides an event-driven serverless compute platform.
Hi @Leo Chen ,
Thanks for reaching out to Microsoft Q&A.
ManagedIdentityCredential: Network unreachable occurring only on newly created Flex Consumption instances after the host build change, while older host builds and another region continue to function correctly this appears to indicate a runtime managed identity endpoint/connectivity issue rather than a problem with your application code or managed identity permissions.
We engaged Product team to investigate this issue and here's the analysis we received:
A regression in the Azure Functions host build 4.1052.300 caused managed identity token requests to fail on every new Node.js worker instance in Flex Consumption. The worker process lacked the required environment variables, causing fallback to an unsupported metadata address and network unreachable errors. Python workers were unaffected. The issue was isolated to the Node.js image which regressed from Node 20 to Node 18. The problem caused critical application failures impacting messaging and database APIs. The incident was escalated and mitigated by rolling back to the last known good image.
Managed identity token requests fail on new Node.js instances due to network connectivity issues with the local identity endpoint.
Solution:
The backend team mitigated the issue by rolling back to the previous host build image (4.1052.200)** **to restore managed identity functionality on Node.js workers.
A defective host build image (4.1052.300) regressed the Node.js runtime from Node 20 to Node 18, causing managed identity environment variables to be missing and token requests to fail on new instances. Hope this helps!
If the resolution was helpful, kindly take a moment to click on and click on Yes for was this answer helpful. And, if you have any further query do let us know.