Search code examples
azurefunctionprivate

We have private function app while Deploying the function HTTP trigger using VS code we are getting 403 error


We have function App which is created using Private Endpoint and Private Vnet Integration. We are trying to Deploy the code using VS code While on the Deployment phase We are getting 403 Error.

Our Expectation is creating function using VS code


Solution

  • I have reproduced your requirement by creating a simple python function app in VScode and deployed to the Azure function app which is created using Private Endpoints and Private Vnet Integration.

    Steps followed:

    • Create a VNET and Function app in Azure.
    • Open your Function app=>Networking=>Private Endpoints, create private endpoint, Add=>Express:

    enter image description here

    • Navigate to Networking=> VNet Integration=> Add virtual network Integration:

    enter image description here

    • Make sure VNet integration and endpoints configured properly in the function app and necessary firewall rules are in place to allow traffic to and from the private endpoint.

    enter image description here

    • Deployed Function to Azure Function app through VS Code:

    enter image description here

    enter image description here

    Portal:

    enter image description here

    • Could access the function app without any issues:

    enter image description here