This Azure setup uses Application Gateway with AKS and Istio acting as ingress controller. There is also a Hub and Spoke where the Application Gateway is in one of the Spokes.
The request enters via the Application Gateway, reaches the AKS but then does not return to the Application Gateway.
If I add an UDR (user defined route) to 0.0.0.0/0 with "Internet" as the Next Hop then I get a response (I can access the applications on the AKS).
This happens when the Vnet is peered with the hub. If we break the peering there are no issues.
Is this an Egress issue where Istio sends the traffic back directly to the initial source IP and not to the Application Gateway IP? And should I set an Egress Gateway to send the request back to the Application Gateway?