User session not showing client ip behind Application Gateway
We are running 2026.3.5 (Azure) behind an Application Gateway.
All User Sessions now have the IPAddress of the Application Gateway. The gateway add the 'x-forwarded-for' to the http header with the 'original' client ip. This header is also visible in a test endpoint the displays the header content.
New-PSUEndpoint -Url '/diagnostics/request-info' -Method 'GET' -Authentication -Role 'Administrator' -Endpoint {
@{
RemoteIpAddress = "$RemoteIpAddress"
XForwardedFor = $Headers['X-Forwarded-For']
} | ConvertTo-Json
}
How can we make sure that we have the original client ip, that is part of the header, displayed in the user sessions?