Make Rest API call to a endpoint which is inside a private network from Azure function

Thakur, Abhishek 21 Reputation points
2023-01-04T10:20:38.507+00:00

Hi,

I am trying to access a Rest API Endpoint which is inside my companies private network, but I am having issues.

The connection works when my Function app is running locally, but when I deploy my Function app to Azure the API call fails.

Below is a diagram of what I am trying to achieve.

275968-question.png

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. TP 124.7K Reputation points Volunteer Moderator
    2023-01-04T10:48:10.21+00:00

    Hi,

    Are you using Virtual Network integration so that your function can connect to a VNet that is connected to your company's private network via Site-to-Site VPN connection? Or are you using some other method to allow your function to make a REST call into the private network?

    Please provide more details and/or set up VNet integration and reply back with your results.

    Virtual network integration

    https://learn.microsoft.com/en-us/azure/azure-functions/functions-networking-options?tabs=azure-cli#virtual-network-integration

    Thanks.

    -TP

    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.