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,106 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KapilAnanth-MSFT 48,261 Reputation points Microsoft Employee
    2024-12-03T11:22:11.46+00:00

    @eenchev ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    As of now, there are no out-of-box solution available to implement this.

    If you wish you may vote in Azure Feedback Hub forum requesting this feature in Server variable.

    All the feedback shared in these forums are monitored and reviewed by the Microsoft engineering teams responsible for building Azure.

    Additionally, you can also raise a feature request to include this in Application Gateway custom error pages

    Thanks,

    Kapil


    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.


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.