Unable to deploy function to the Function App with Private Endpoints.
We created a Virtual Network (Vnet) with two subnets: one designated for private endpoints (Private Subnet) and the other for Vnet integration of the function app (Function Subnet). The function app and its associated storage account were deployed within this setup, utilizing private endpoints to restrict public access. Additionally, private DNS zones were configured for both the function app and storage account to enable DNS resolution within the private network. The functions a deployed with the C# with .Net Core framework.
Function App nslookup from the VM.
We also created the Self Hosted agent which resides in the same vnet and subnet where our function app is present. We are trying to deploy the resources using this self hosted and we are facing the below mentioned error.
Additionally , we have checked the NSG rules which are associated with PrivateSubnet. Attaching the screenshot for the same.
We are able to successfully deploy the App Settings for the Function App with the private endpoint attached to it. But failed to deploy the function for the Function App.
Please refer to the attached Screenshot for the App Settings.
Error while deploying functions to function app using CI/CD pipelines :