Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

create 2 different endpoints in azure APIM for same function app

I have single azure function app. I want to create 2 different API endpoints in Azure APIM. How I can do that?

like image 766
Swap Avatar asked Apr 23 '26 02:04

Swap


1 Answers

According to some test, it seems we can't implement the requirement by adding an operation in api management because it will show error message Operation with the same method and URL template already exists. enter image description here

And if we use some other methods such as clone the operation, it will also fail with 404 error because the URL field will change and can not match the function url.

So I think you can just add another api in your api management to implement the requirement (shown like below screenshot). enter image description here

The two APIM endpoints should be: https://huryapim.azure-api.net/huryFun1/HttpTrigger1 and https://huryapim.azure-api.net/huryFun2/HttpTrigger1. Both of them request the same azure function url in backend.

like image 129
Hury Shen Avatar answered Apr 28 '26 12:04

Hury Shen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!