Host instance 'xxx' failed to acquire host lock lease: Azure.Core: Name or service not known (xxx.blob.core.windows.net:443).

Tyler Suard 105 Reputation points
2025-01-06T21:44:47.59+00:00

I am trying to deploy to my Azure function app. The app will not update with our new code. In the app logs, it gives me the above error with no explanation as to why it is happening or what process is triggering the error.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,303 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,312 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,020 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Tyler Suard 105 Reputation points
    2025-01-08T16:43:41.6066667+00:00

    Hell Venkatesh, thank you for your help. The built-in detectors were not able to find any issues. We discovered it was because the storage had been migrated and the function app did not have access anymore. Deleted rogue private endpoint references that were created in a different subscription by user and migrated to primary subscription. As a result, these references were generating a conflict within the storage firewall. Once they were removed, access to the storage account was restored.


  2. VenkateshDodda-MSFT 23,436 Reputation points Microsoft Employee
    2025-01-09T04:36:50.8+00:00

    @Tyler Suard

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue: Function app is failing with below error.

    Host instance 'xxx' failed to acquire host lock lease: Azure.Core: Name or service not known (xxx.blob.core.windows.net:443)

    Solution:

    Customer has deleted rogue private endpoint references that were created in a different subscription by user and migrated to the primary subscription. As a result, these references were generating a conflict within the storage firewall. Once they were removed, access to the storage account was restored.

    If you have any other questions or are still running into more issues, please let me know. Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    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.