azureip-addressazure-api-managementweb-application-firewallx-forwarded-for

Azure API Management - How to get original IP when APM is behind WAF


We have below technical stack

This is current implementation

Everything is working fine and as expected.

Now when i went to APIM -> Analytics -> Request, i see WAF IPs are listed here and not the client ones. So in this case we will not be able to track who is using what

I know we have option to track thru subscription key, but that is not enough.

Can anybody please suggest how to configure to get correct IPs?

enter image description here


Solution

  • After raising support request to Microsoft, we got what we want

    This is how we accomplished

    enter image description here

    Now we can export this in csv format and can track usage based on client IP.