Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I tried to repo your set up and I was not able to.
I had an IIS Service with 2 Ports - 80 and 81.
- A single end point
- Route1
- Patterns to match - /*
- OriginGroup - origingroup1 has one origin with a PublicIP
- origingroup1's origin has HTTP port as 80
- Route2
- Patterns to match - /api/*
- OriginGroup - origingroup2 with a PublicIP (I am using a second origin group with same IP as origingroup1)
- origingroup2's origin has HTTP port as 81
Please see the logs :
P.S : You have to make sure there exists a folder called "api" in your origin.
I'd suggest you check the configuration once again.
Should the issue persist, can you please share the results of this Kusto query so I can verify it.
AzureDiagnostics
| where Category == "FrontDoorAccessLog"
|where routingRuleName_s == "
| project TimeGenerated, requestUri_s, httpStatusCode_s, httpStatusDetails_s, routingRuleName_s, originUrl_s , domain_s
i.e. write an AND condition to Match RouteA in "routingRuleName_s" and the Port of RouteB in "originUrl_s"
If the result is empty set, this means Route A never redirected traffic to the Port of RouteB.
Cheers,
Kapil