@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:
- Please ensure that the Storage account requirements are met.
- Also confirm if your Function App VNET is also added in the Azure Storage Account --> Networking section as shown below:
- 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:
- You can set the
vnetrouteallenabled
property totrue
. 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
- 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
Please let me know if you are still face the issue after following this.