How to add transactionid code in the AppGW response error page

eenchev 0 Reputation points
2024-12-03T10:21:48.06+00:00

Hi there,

Application gateway inserts six additional headers to all requests before it forwards the request to the backend. These headers are:

x-forwarded-for,

x-forwarded-port,

x-forwarded-proto,

x-original-host,

x-original-url,

x-appgw-trace-id

The X-appgw-trace-id is the transactionid which can be checked in the AppGW logs. In f5 LB for example there is an option to put the similarly called support ticket id of the request in the error page (when the WAF blocks certain request). This greatly helps identify quickly a customer issue. So, is there a way to put the Azure appgw transaction id in the error page in a similar way?

Thanks!

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,098 questions
{count} votes

1 answer

Sort by: Most helpful
  1. eenchev 0 Reputation points
    2024-12-04T09:42:59.6133333+00:00

    I found that WAF policy for Frontdoor has this already with the "{{azure-ref}}". So probably it can be done for the regional WAF.

    Anyone wanting this feature please upvote here : https://feedback.azure.com/d365community/idea/f837b648-78ea-ee11-a73d-000d3adc65a4

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.