Troubleshoot 4xx and 5xx errors using Reference String

A guide to understand and use Reference Strings for diagnosing and resolving issues with Azure Front Door.

Prerequisites

What is a Reference String?

A Reference String, also known as a RefString, is a short string appended by Azure Front Door to the HTTP response headers of each request. It provides details on how the request was processed, including the point of presence (POP) and backend status.

Reference Strings can help you troubleshoot and resolve issues with Azure Front Door, such as cache misses, backend failures, and latency problems. You can identify the root cause and take appropriate actions to fix it by analyzing the Reference String of the requests.

Note

If you encounter an error page from Microsoft services, it will already include a Reference String for the request that generated the error page. In such cases, you can skip directly to the diagnostic step.

How to gather a Reference String

To gather a Reference String, you need to capture the HTTP response headers of the requests and look for the header named X-Azure-Ref. This header contains the Reference String, encoded in Base64. You can use different methods to capture the HTTP response headers, depending on your preference and situation. Here is an example of how to obtain a Reference String from the Microsoft Edge Browser:

  1. Open the browser's developer tools by pressing F12 or Ctrl+Shift+I.

  2. Go to the Network tab.

  3. Refresh the page or perform the action that triggers the request.

  4. Locate the specific request in the list and find the X-Azure-Ref header in the response headers section.

  5. Copy the value of the X-Azure-Ref header to use with the Reference String troubleshooting tool in the Azure portal.

For more information, see Inspect network activity - Microsoft Edge Developer documentation.

Example of how to obtain a Reference String from Microsoft Edge Browser:

Screenshot of RefString example in Microsoft Edge Browser.

How to use a Reference String with some of our troubleshooting tools

Note

Diagnose and solve problems is not available yet.

Alternative option

If you choose not to use the diagnostic tool, you can include a Reference String when submitting a support ticket. Additionally, you can enable the Access Logs feature to receive updates on RefString data directly in the Azure portal.

For more information on tracking references and access log parameters, see Monitor metrics and logs in Azure Front Door, which highlights specific fields in access logs that help identify various types of errors.

Next steps