After VNET implemenatation my function runtime became unreachable

Neelam Mourya 60 Reputation points Microsoft Employee
2023-07-07T03:24:47.9366667+00:00

After enabling VNET to my function apps, some of the function apps started giving error message at their overview page and the function became unreachable.function error

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,931 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,459 questions
{count} votes

1 answer

Sort by: Most helpful
  1. navba-MSFT 27,550 Reputation points Microsoft Employee Moderator
    2023-07-07T05:24:52.6633333+00:00

    @Neelam Mourya Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    I understand that you are getting the error Error: Azure Functions Runtime is unreachable after configuring VNET for your FunctionApp.

    This issue occurs when the Functions runtime can't start. The most common reason for this is that the function app has lost access to its storage account.

    Action Plan:

    1. Please ensure that the Storage account requirements are met.
    2. Also confirm if your Function App VNET is also added in the Azure Storage Account --> Networking section as shown below:
      User's image
    3. If you are using a new storage account, Secure the new storage account in one of the following ways:

    Create a private endpoint. When using private endpoint connections, the storage account must have private endpoints for the file and blob subresources. For Durable Functions, you must also make queue and table subresources accessible through private endpoints.

    Enable a service endpoint from the virtual network. When using service endpoints, enable the subnet dedicated to your function apps for storage accounts on the firewall.

    3.Update the Application Settings under Configuration for the function app to the following:

    User's image

    1. You can set the vnetrouteallenabled property to true. This indicates whether all outbound traffic from the app is routed through the virtual network. The below CLI command helps to set this:

    az resource update --resource-group <group-name> --name <app-name> --resource-type "Microsoft.Web/sites" --set properties.vnetRouteAllEnabled true

    1. Please follow the steps mentioned here, which talks about troubleshooting the runtime unreachable issue.

    Sharing a few useful articles if that helps:
    https://learn.microsoft.com/en-us/azure/azure-functions/configure-networking-how-to?tabs=portal#restrict-your-storage-account-to-a-virtual-network

    https://learn.microsoft.com/en-us/azure/azure-functions/run-functions-from-deployment-package#using-website_run_from_package--1

    Please let me know if you are still face the issue after following this.


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.