Connection Monitor - Destination URL Redirect

Kristofen 20 Reputation points
2025-01-15T13:28:18.5033333+00:00

Hello,

We have various tests configured in our connection monitor and one of the tests has recently been failing. We look for a status code of 200 in the reply however the destination web page has updated their end to now redirect from the original webpage to a new webpage automatically. As a result we're only receiving a 301 response code.

The test from the servers (windows & linux) directly shows this happening and works, however I can't find an option to enable redirect on the connection monitor test or on the agent.

Is there a way to enable redirects on Azure connection monitor?

I'm not sure if I've missed something obvious but any advice would be appreciated.

Thank you.

Azure Network Watcher
Azure Network Watcher
An Azure service that is used to monitor, diagnose, and gain insights into network performance and health.
180 questions
{count} votes

Accepted answer
  1. Sai Prasanna Sinde 3,500 Reputation points Microsoft Vendor
    2025-01-15T18:52:04.9966667+00:00

    Hi @Kristofen

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    • Please try to update your Connection Monitor test to directly target the final URL after the redirect.
    • It will give you accurate reflection of the user experience and eliminates the 301 failures. For your reference: https://learn.microsoft.com/en-us/azure/network-watcher/connection-monitor-overview
    • If you need more in-depth monitoring of the redirect behaviour itself, consider using Azure Application Insights alongside Connection Monitor.
    • Application Insights can track the full redirect chain and provide detailed insights into the performance and status of each step.
    • The advantages for using application insights are like full visibility into redirect chains, granular performance data, better for troubleshooting redirect-related issues. For your reference: https://learn.microsoft.com/en-us/azure/azure-monitor/app/availability?tabs=standard

    Kindly let us know if the above helps or you need further assistance on this issue.

    If you feel that your queries have been resolved, please accept the answer by clicking the "Accept Answer" on the post.

    Regards,
    Sai.


0 additional answers

Sort by: Most helpful

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.