Hi @SivaSri B Thanks for reaching out. Consumption SKU uses dynamic hosting model, so it's not guaranteed to have stable IP address, but you can add APIM service as a backend pool to APP Gateway by providing FQDN. I tried at my end and I could also see 404 error for this probe url: https://<servicename>-api.net/status-0123456789abcdef
could you please use this alternate url for testing the health probe https://<servicename>.azure-api.net/internal-status-0123456789abcdef this would give you 200 status code
let me know incase of further queries, I would be glad to assist you.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.
Hi @SivaSri B thanks for getting back, yes you can use /internal-status url as a path in health prob let me know if you're facing any issue.
Hi @JananiRamesh-MSFT , I need your suggestion for below scenario. Request you to help.
->Users connect to APIs using APIM URL like https://apim-nonprod1.azure-api.net/test/api. Now the request is to use application gateway to more secure APIs and use path based routing for nonprod1 and nonprod2 APIM services in application gateway to route the traffic using URL path based routing.
I have configured Application gateway as
->static public IP address as frontEnd IP
->Listener with port 80 default
->APIM service FQDN's as backendpool
->Path-based routing rule
/Nonprod1/* and respective backendpool http settings(port 443)
/Nonprod2/* and respective backendpool http settings(port 443)
-> Custom health probes for nonprod1 APIM & nonprod2 APIM. In APIM service i created a health check GET API with 200 OK response and updated the path in probe as 'healthcheck/testapi?subscription-key=<xxxxxxxxxxxxxx>' (subscription-key enabled in API). Backendpools are healthy.
But the issue is whenever i tried to hit the API with App gateway URL it's throwing the error 404.
{ "statusCode": 404, "message": "Resource not found" }
URL: http://gwtesting.eastus.cloudapp.azure.com/nonprod2/healthcheck2/test?subscription-key=6d0cc6bfb4cd49c4a267561410302863
Did i miss anything in the configuration, or do i need to set anything on APIM services, please help me out
I followed below links to create the Application gateway
https://learn.microsoft.com/en-us/azure/application-gateway/quick-create-portal
to set path-based routing: https://learn.microsoft.com/en-us/azure/application-gateway/create-url-route-portal
Hi, The issue been resolved after i mentioned / in override path in http settings. It's working now.
Thank you all for the support.
Sign in to comment