OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Unable to deploy azure application gateway

  • Thread starter Thread starter Sharat Bhaskar
  • Start date Start date
S

Sharat Bhaskar

Guest
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 for /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:

Code:
Path: /abc/functionapp1/function1*
Target name: function1
backendsetting: default
backend target: functionapp1bp

path rule 2:

Code:
Path: /abc/functionapp2/function2*
Target name: function2
backendsetting: default
backend target: functionapp2bp
<p>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.</p>
<p>Now i want to do path based routing so that:</p>
<ul>
<li>if the request comes for <code>/abc/functionapp1/anyfunction</code> then it should be routed to first functionapp1 backend pool</li>
<li>if the request comes for <code>/def/functionapp2/anyfunction</code> then it
should be routed to second functionapp2 backend pool</li>
</ul>
<p>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 <code>/api/functionname</code> in their url.</p>
<p>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.</p>
<p>My path based routing section is given below:</p>
<p>path rule 1:</p>
<pre class="lang-txt prettyprint-override"><code>Path: /abc/functionapp1/function1*
Target name: function1
backendsetting: default
backend target: functionapp1bp
</code></pre>
<p>path rule 2:</p>
<pre class="lang-txt prettyprint-override"><code>Path: /abc/functionapp2/function2*
Target name: function2
backendsetting: default
backend target: functionapp2bp
</code></pre>
Continue reading...
 

Latest posts

I
Replies
0
Views
1
impact christian
I
Top