I have site lets call it test.air.be and i have two azure functions and they are part of different backend pools. I am using one listener on port 443 with the certificate. Now i want to do path based routing so that if the request comes(/abc/functionapp1/anyfunction) then it should be routed to first functionapp1 backend pool. if the request comes for (/def/functionapp2/anyfunction) then it should be routed to second functionapp2 backend pool.
Also do note that i think i need to use rewrite option as well as i would like to forward the request to the particular function in end as you know functions url have /api/functionname in their url. When i try to hit the url of an Application gateway, URL path-based routing always redirect to default backend pool always and it always go to one backend pool and not the other backend pool. My path based routing section is given below:
path rule 1:
Path: /abc/functionapp1/function1*
Target name: function1
backendsetting: default
backend target: functionapp1bp
path rule 2:
Path: /abc/functionapp2/function2*
Target name: function2
backendsetting: default
backend target: functionapp2bp