Search code examples
azureazure-virtual-networkazure-ase

Azure: Routing between subnets


I have the following situation:

ASE subnet:
192.168.0.0/24

AKS subnet:
192.168.1.0/24

Both subnets are placed inside virtual network 192.168.0.0/8.

I'm using external ASE, and wanted to route traffic between subnets somehow. In my case:

Function app uses internal service which is placed inside AKS, and need to provide internal access from ASE subnet to this services somehow. I tried to add routing table, but not sure how to properly configure it.


Solution

  • From Microsoft documentation:

    Azure routes traffic between all subnets within a virtual network, by default. You can create your own routes to override Azure's default routing.

    https://learn.microsoft.com/en-us/azure/virtual-network/tutorial-create-route-table-portal

    App Service Environment (ASE), by its nature, is private. Your applications all end up with "app.asename.appserviceenvironment.net".

    Apps running on AKS can call any apps on the ASE using the following name: appname.asename.appserviceenvironment.net (assuming they all have the permissions, which is a question by itself).