Hello Ganesh Chowdhary
We appreciate your Patience!
If we add it in the path-based rule, The API works fine but it does not validate the SSL Profile. APIs are working without certificates.
you should not use in the Path based rule; you should have to be used in the redirect rule that's it. If you want MTLS to happen then you should not use path-based rule, you redirect to the listener which has MTLS, where only listener as MTLS.
In this diagram, when using a listener with no MTLS, if you are implementing a path-based rule, it will directly route through the backend without MTLS. This flow respects the listener configuration. If redirection occurs, you will encounter another listener with MTLS, as shown in the diagram, which will route to a different backend that supports MTLS.
However, in this case, the traffic first goes to the app gateway listener, which then directs it to another listener. Ideally, the flow should route directly to the backend via the path-based rule. Instead, it goes to the client, then to another listener where a 307 redirect sent by the app gateway is handled by the client. This does not work because path-based rules only respect listeners with MTLS configuration.
NOTE: Path based rule will respects its listeners MTLS better go with redirection and make your clients supports 307.
If above is unclear and/or you are unsure about something add a comment below.
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.
Regards,
Ganesh