Conect Azure Api Management with Azure Function only with Private endpoints

342 views Asked by At

I have a Virtual Network (Vnet) with a Subnet (SVnet) inside the Vnet, I have a private Api Management (Apim) with a Private Endpoint associated with SVnet and a private Azure Function (AzFunc) with a Private Endpoint associated with SVnet.

It is important to clarify that both Apim and AzFucn are not directly connected to the Vnet, nor to the SVnet, they only have Private Endpoints to the SVnet.

¿Can the Apim access the AzFunc resource with this configuration?

¿Can you answer my question?

1

There are 1 answers

0
Imran On

Yes, it is possible that Apim and the Azure Func have Private Endpoints associated with the same subnet SVnet, they can communicate with each other over the private network.

Created virtual network with subnet like below:

enter image description here

Created Azure API Management private endpoint with same virtual network like below:

enter image description here

enter image description here

Now I created function app with same SVnet like below:

enter image description here

Both the Apim and the AzFunc have Private Endpoints connected to the same subnet (SVnet) they can communicate with each other over the private network. The Private Endpoint for the Apim will resolve to an IP address within the subnet, and the Private Endpoint for the AzFunc will also resolve to an IP address within the same subnet.

Created vm with same vnet when I check the endpoints it resolves successfully like below:

enter image description here