Hiten Samalia
Hiten Samalia

Reputation: 59

Azure Container Apps Internal with Function App (Gateway-Based VNET Integration)

I am trying to make Azure Container Apps (ACA) internal and allow them to communicate with an Azure Function App that is using Gateway-based VNET Integration.

Approach I Used:

Questions:

  1. How can I configure Azure Container Apps to communicate with a Function App that has Gateway-based VNET Integration?
  2. Do I need additional networking settings (private endpoints, route tables, NAT gateway, etc.)?
  3. Is there a fundamental limitation with Gateway-based VNET Integration that prevents this from working?
  4. Could Azure Private DNS Zone configuration (as mentioned in the WAF/App Gateway guide) be relevant here?
  5. Are there any alternative solutions to achieve secure internal communication between Container Apps and the Function App?

Any guidance or insights would be greatly appreciated!

Upvotes: 0

Views: 58

Answers (1)

Vinay B
Vinay B

Reputation: 2401

Azure Container Apps Internal communicates with Function App

Instead of communicating to the function app behind a gateway this approach you mentioned is tricky as this works only when the Function App is not using Gateway-based VNET Integration.

As Thomas mentioned there might be multiple reasons for the cause of blocking like NSG preventing the connection between the subnets.

Instead of this NatGateway approach since the communication is from the container app to the function app you can try using Private Endpoint for Function App + Private DNS.

  • Create both the Container apps and function apps with in same VNet but in different subnets. enter image description here

  • Enable a Private Endpoint for the Function App using DNS zone using the same VNet and in other subnets.

    enter image description here

    enter image description here

  • Test and validate the communication from the Container App to Function App

Test HTTP Communication:

curl -v https://<your-function-app-name>.azurewebsites.net

enter image description here

enter image description here

Refer:

https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-vnet

https://learn.microsoft.com/en-us/azure/container-apps/how-to-use-private-endpoint

Upvotes: 0

Related Questions