Network Watcher in Azure: The Complete Advanced Guide
A book-style walk through the toolbox Azure gives you to see, test, and fix your cloud network: how each tool works inside, when to use it, how flow logs and connection monitoring fit together, and how to prepare for the move from network security group flow logs to virtual network flow logs.
Imagine a city with thousands of roads, traffic lights, one-way streets, toll gates, and security checkpoints. One morning a delivery van fails to reach a warehouse. Was the road closed? Did a traffic light stay red? Did a guard turn the van away at a gate? Did the van take a wrong turn at a junction? Without a control room, you could spend days guessing. Now imagine a control room with a live map, a way to ask “would this van be allowed through that gate?”, a camera that records every vehicle, and a team that keeps sending test vans along important routes to measure the travel time. That control room is Azure Network Watcher.
In this guide we go well beyond a list of buttons. We will learn what each tool really does, what it looks at, what it cannot see, and how to combine the tools into a calm, repeatable way of finding network problems. We will study how flow logs record traffic, how traffic analytics turns raw records into pictures, how connection monitor measures health over time, and how packet capture lets you look inside the conversation itself. We will also deal with an important change: network security group flow logs are being retired, and virtual network flow logs are the recommended replacement. Every term will be explained the first time we meet it, with everyday pictures to keep the ideas simple.
1What Network Watcher Really Is
Before diving into individual tools, we need a clear picture of the service, its purpose, and its limits.
The short definition
Azure Network Watcher is a collection of tools for monitoring, diagnosing, and recording the health of networks in Azure. A network, in this setting, is the set of virtual networks, subnets, network cards, routes, gateways, and security rules that let your virtual machines and other resources talk to each other, to the internet, and to your offices. Network Watcher does not carry your traffic. It watches, tests, explains, and records.
Microsoft describes it as a service aimed at infrastructure resources such as virtual machines, virtual networks, application gateways, and load balancers. It is not designed to monitor the inner workings of fully managed platform services, and it is not a tool for studying website visitors. Keeping this boundary in mind saves you from expecting answers the tool was never built to give.
Think of Network Watcher as the doctor’s equipment for a network. A thermometer, a stethoscope, an X-ray machine, and a heart monitor each answer a different question. No single instrument tells you everything, but together they let the doctor find out why a patient feels unwell without guessing.
Why it exists
Cloud networks are built from software, not from cables you can touch. You cannot walk to a server room and look at a blinking light. A rule written in one place can silently block traffic in another. A route added by one team can send packets into a black hole. A cloud network is therefore powerful but also invisible, and invisibility makes problems hard to solve. Network Watcher gives you the eyes and the instruments to make the invisible visible.
An important note about flow logs
Microsoft has announced that network security group flow logs will be retired on 30 September 2027. New network security group flow logs can no longer be created. Microsoft recommends moving to virtual network flow logs, which record similar information with broader and simpler coverage. After the retirement date, traffic analytics will no longer support network security group flow logs, and the flow log resources themselves will be deleted, although log files already stored in your storage accounts are not deleted and keep following their retention settings.
If your organisation relies on network security group flow logs for security reviews, billing analysis, or compliance, treat migration as a real project with a date. We cover it in detail in a later chapter. Always confirm the dates on the official retirement page, because they are Microsoft’s to change.
| Need | Question you are asking | Family of tools |
|---|---|---|
| Understand the layout | What is connected to what? | Topology |
| Fix a single problem now | Why can this machine not reach that one? | Diagnostic tools |
| Watch health over time | Is the path to this service getting slower or failing? | Connection monitor |
| Keep a record of traffic | Who talked to whom, and was it allowed? | Flow logs and traffic analytics |
| See inside a conversation | What exactly was sent and received? | Packet capture |
2Core Concepts and Vocabulary
A handful of networking ideas appear in almost every Network Watcher conversation. Learn them once and the tools will make sense.
Virtual network and subnet
A virtual network is your private network space in Azure. A subnet is a smaller section of it. Resources live in subnets and receive private addresses from them.
Network interface
The virtual network card of a machine. It holds the private address and connects the machine to a subnet. Rules and routes are applied at this level too.
Network security group
A list of allow and deny rules for traffic. It can be attached to a subnet, a network interface, or both. Rules are checked in order of priority.
Route and route table
A route says where to send traffic headed for a certain address range. A route table groups routes and is attached to a subnet.
Next hop
The next stop on the road. When a packet leaves a machine, the route chosen decides whether it goes to the internet, a gateway, an appliance, or stays in the virtual network.
Flow
A conversation between two endpoints, identified by source address, source port, destination address, destination port, and protocol. Flow logs record these.
Packet
A small chunk of data sent across the network. A flow is made of many packets going both ways.
Latency and packet loss
Latency is how long a packet takes to travel. Loss is the share of packets that never arrive. Both strongly affect user experience.
More words you will meet
Three further ideas are worth stating plainly. The first is the idea of being stateful. A network security group is stateful, which means that when it allows a request in one direction, it automatically allows the reply in the other direction. You do not need a second rule for the answer. This surprises many beginners who expect to write a rule for each direction.
The second is the difference between the data plane and the management plane. The data plane carries your real traffic. The management plane is where you create and change resources. Network Watcher tools mostly work on the management plane: they read rules and routes and compute what would happen, or they ask the platform to run a test. Only some tools, such as packet capture and connection monitor, observe real traffic on the data plane.
The third is the regional nature of the service. Network Watcher exists as one instance per region in each subscription. To use a tool on a virtual machine in a given region, you use the instance of Network Watcher in that same region. Azure turns it on automatically in a region when you create or update a virtual network there, and doing so does not change your resources or your charges.
A network security group is a security guard at a building who remembers faces. If the guard lets a visitor in, he also lets that same visitor walk out again without asking for fresh permission. A route table is the signage in the corridors that tells each visitor which way to go next. Network Watcher is the head of security who can ask both the guard and the signs, “What would you do with this visitor?”
Many people assume a rule check proves that traffic will arrive. It does not. A tool that says a packet is allowed only reports that this layer of rules would let it through. Firewalls, appliances, operating system settings, and the application itself can still stop it.
Direction matters
Every flow has a direction. Inbound means traffic coming toward a resource, and outbound means traffic leaving it. A single conversation involves both, but the rules that apply are different in each direction. A web server needs an inbound rule that allows visitors to reach it and may also need an outbound rule that lets it call a database. Mixing up direction is one of the most frequent causes of rules that look right and still do nothing.
3Architecture and Components
Now we look at the building blocks that make up Network Watcher and how they connect to the resources you already have.
The big picture
Network Watcher is not a single program you install. It is a regional service that reads the configuration of your network resources, runs tests through the Azure platform, and in some cases uses a small agent running on your virtual machines. Around it sit storage accounts that hold logs and captures, a log analytics workspace that holds analysed data, and the Azure Monitor service that draws charts and sends alerts.
flowchart TD
U[You or automation] --> NW[Network Watcher regional instance]
NW --> CFG[Reads rules and routes of your network]
NW --> AG[Network Watcher agent on virtual machines]
NW --> FL[Flow log settings]
FL --> ST[Storage account with log files]
ST --> TA[Traffic analytics]
TA --> LA[Log Analytics workspace]
NW --> CM[Connection monitor tests]
CM --> LA
LA --> AM[Azure Monitor charts and alerts]
The regional instance
Each region in a subscription can hold one Network Watcher resource. By default Azure places it in a special resource group created for the purpose, so that it does not clutter your own groups. You usually never touch it directly, but it is the anchor to which every tool attaches. If you ever opted out of automatic enablement, you must create it yourself in the regions where you want to use the tools.
The agent on the machine
Some tools need to run something inside the virtual machine. For these, Azure installs a small extension, often called the Network Watcher agent. It lets the platform ask the machine to send test traffic or to record packets. If the tool is started from the portal, the extension is normally added for you. If a tool complains about a missing agent, the fix is usually to install the extension on the machine, and to make sure the machine is running and can reach the Azure management services.
Storage for logs and captures
Flow logs, packet captures, and the output of some troubleshooting tools are saved in an Azure storage account. This account becomes part of your security surface, because the files may reveal who talked to whom or even the content of traffic. Access to it must be controlled just as carefully as access to a database.
The analytics layer
Raw flow log files are hard to read. Traffic analytics reads them, groups them, adds information such as location and known risky addresses, and saves the result in a log analytics workspace. Connection monitor also writes its results there. From the workspace you can run searches, draw charts, and set alerts.
Regional instance
The anchor for all tools in a region, created automatically in most cases.
Network Watcher agent
A small extension on machines that lets some tools send test traffic or capture packets.
Storage account
Holds flow log files, packet captures, and diagnostic output.
Log Analytics workspace
Holds processed traffic data and connection monitor results for searching and alerting.
Azure Monitor
Draws charts, hosts dashboards, and sends alerts when thresholds are crossed.
Your network resources
The virtual networks, subnets, security groups, route tables, gateways, and machines being examined.
Picture a city traffic office. The regional instance is the office in each district. The agents are small sensors on certain roads. The storage account is the archive room holding the camera footage. The analytics workspace is the analyst’s desk where the footage is turned into reports, and Azure Monitor is the wall of screens and alarms.
Put logs and workspaces in the same region as the resources they describe where possible, and decide early who owns the storage account and the workspace. Lost ownership is one of the most common reasons good logging projects quietly stop working.
Why regional design matters
Because Network Watcher works region by region, your design must think regionally too. A company with machines in three regions needs three regional instances, three sets of flow log settings, and a plan for where the data is stored. Keeping logs in the region where the traffic happens avoids extra transfer charges and often satisfies rules about where data may live. At the same time, security teams want to search everything together, which is why many organisations send analysed data from all regions into one central workspace. Decide this balance early, because moving large volumes of log data later is slow and costly.
4The Toolbox at a Glance
Network Watcher groups its tools into monitoring, diagnostics, and traffic recording. Here is the full map before we study each tool in depth.
| Tool | What it does | Looks at | Best question for it |
|---|---|---|---|
| Topology | Draws a picture of resources and their links | Configuration | What is connected to what? |
| Connection monitor | Sends regular tests between endpoints and records results | Real test traffic | Is this path healthy over time? |
| Connection troubleshoot | Runs a one-time connection test | Real test traffic | Can A reach B right now, and where does it fail? |
| IP flow verify | Checks one packet against security rules at a machine | Rules | Would this packet be allowed or denied, and by which rule? |
| NSG diagnostics | Evaluates security rules for a described flow at several resource types | Rules | Which rules touch this traffic, and what change would fix it? |
| Next hop | Shows where a packet would be sent next | Routes | Is my traffic taking the route I expect? |
| Effective security rules | Shows the combined rules on a network interface | Rules | What is the full list that applies to this machine? |
| VPN troubleshoot | Diagnoses gateways and their connections | Gateway health | Why is my site connection down? |
| Packet capture | Records packets on a machine | Real traffic | What exactly is being sent and received? |
| Flow logs | Records every flow with its decision | Real traffic metadata | Who talked to whom and was it allowed? |
| Traffic analytics | Turns flow logs into charts and insights | Flow log data | Where does my traffic come from and go to? |
| Usage and quotas | Shows how close you are to network limits | Counts | Will I run out of addresses or resources? |
Three kinds of tools
It helps to sort the tools by how they work. Some tools, such as IP flow verify, next hop, effective security rules, and NSG diagnostics, are rule-reading tools. They read the configuration and work out what would happen. They are fast, free from side effects, and safe to run on production. Others, such as connection troubleshoot, connection monitor, and packet capture, are traffic-testing tools. They send or observe real packets and so show what really happens. A third group, flow logs and traffic analytics, are record-keeping tools that quietly write down what happened for later study.
Rule-reading tools
Compute the outcome from configuration. Quick and safe, but they cannot see problems inside the machine or in devices they do not model.
Traffic-testing tools
Send or watch real packets. They reveal real behaviour, but need agents, permissions, and sometimes cost money or storage.
Record-keeping tools
Write down traffic history for later questions about security, performance, and cost. They need storage and planning.
Enablement, permissions, and cost
Network Watcher is switched on per region and subscription, usually automatically. To use the tools, a person or automation needs permission to read the network resources and to use the Network Watcher resource itself. Many organisations give this to the network team through a built-in role for network work, or through a custom role that lists exactly the allowed actions. For tools that save files, the person also needs the right to write to the chosen storage account.
Cost works differently for each tool. Enabling the service in a region costs nothing by itself. Some diagnostic tools are charged by the number of checks, connection monitor is charged by the number of tests, flow logs are charged by the volume of data they collect, and traffic analytics is charged by the amount of data it processes. On top of that you pay for the storage and workspace that hold the data. Prices change and vary, so always check the official pricing page before planning a large rollout.
Begin with the rule-reading tools and topology, which are inexpensive and give quick wins. Add connection monitor for your most important paths, and turn on flow logs where the security or analysis value justifies the volume.
flowchart LR
P[Problem reported] --> Q{What kind of question}
Q -->|Layout| T[Topology]
Q -->|Allowed or blocked| R[IP flow verify and NSG diagnostics]
Q -->|Wrong route| N[Next hop and effective routes]
Q -->|Live reachability| C[Connection troubleshoot]
Q -->|Health over time| M[Connection monitor]
Q -->|Need the proof| K[Packet capture and flow logs]
Choosing your first three tools
New teams often feel overwhelmed by the number of tools. A practical starting point is to master three. Learn IP flow verify for blocked traffic, next hop for wrong routes, and connection troubleshoot for a quick combined verdict. These three cover a large share of everyday problems and need almost no setup. Once the team is comfortable, add connection monitor for the paths that matter most, then flow logs with analytics, and finally packet capture for the rare deep cases.
5Topology and Quotas: Seeing the Map
Before fixing anything, it helps to see the whole picture. These two tools give you a map and a fuel gauge.
Topology
The topology tool draws a diagram of your network resources and the relationships between them. It can show virtual networks, subnets, network interfaces, machines, gateways, load balancers, and peering links, across resource groups and even across subscriptions and regions that you can read. Instead of opening ten portal pages and trying to hold the layout in your head, you see it at once.
Topology is most useful in three situations. When you inherit an environment that nobody documented, it shows what actually exists. When you are about to change something, it shows what else might be affected. And during an incident, it helps you check whether the path you imagine between two machines is the path that exists.
Topology is the subway map on the wall. It does not show where every train is right now, but it tells you which lines connect, where you must change trains, and why your friend ended up at the wrong station.
What topology cannot tell you
A topology picture shows connections that exist, not traffic that flows or rules that allow it. Two machines may be drawn in the same virtual network and still be unable to talk because a security rule blocks them. Treat the map as the starting point for asking questions, not as proof that things work.
flowchart TD
VNA[Virtual network Hub] --- VNB[Virtual network Spoke 1]
VNA --- VNC[Virtual network Spoke 2]
VNA --- GW[VPN gateway]
GW --- OFF[Office network]
VNB --- VM1[Web servers]
VNC --- DB[Database servers]
VNA --- FW[Firewall appliance]
Usage and quotas
Every subscription has limits on how many network resources it may create in each region: how many virtual networks, how many public addresses, how many network interfaces, how many security groups, and more. The usage and quotas page shows your current counts next to these limits. It is a fuel gauge for your network. Teams that ignore it often discover the limit on the worst possible day, when a deployment fails because the last public address was used.
Look at the map first
Open topology for the resource group or virtual network in question and confirm the layout matches your assumptions.
Mark the path
Trace the path between the two endpoints on the map, noting each subnet, peering, gateway, and appliance that traffic should cross.
Check the limits
Open usage and quotas for the region and look for counts near their limits that may explain failed deployments.
Pick the next tool
With the path in mind, choose a rule-reading tool for blocked traffic or a traffic-testing tool for live reachability.
Save a topology view of each important environment in your documentation every quarter. Comparing an old map with a new one is a quick way to spot changes nobody announced.
Problem
Engineers start changing rules and routes in the middle of an incident without first looking at how the resources are really connected.
Why It’s Harmful
Changes made from a wrong mental picture can break working paths, hide the original fault, and make the situation harder to reverse.
Correct Approach
Begin with the map, confirm the path, and only then use the diagnostic tools to find the exact blocking rule or route.
Using the map together with documentation
A topology view is most valuable when it is paired with written knowledge. Add to each important diagram a short note about the purpose of every network, the team that owns it, and the traffic that is expected to cross each link. When an incident happens at night, the engineer on call sees both the picture and the story behind it. Over time, this combination also becomes the best training material for new colleagues, who can learn the estate by exploring a map instead of reading long documents.
6Rule-reading Diagnostics: Security Rules and Routes
When a connection fails, the cause is very often a security rule or a route. These tools read your configuration and tell you exactly which one.
How security rules are evaluated
To use the diagnostic tools wisely, you must understand how a network security group makes decisions. Every rule has a priority number, a direction, a source, a destination, a port range, a protocol, and an action of allow or deny. Rules are checked from the lowest priority number to the highest. The first rule that matches decides the result, and the checking stops there. Every group also contains built-in default rules at the bottom with very high numbers: they allow traffic inside the virtual network, allow traffic from the load balancer health probes, and deny other inbound traffic, while for outbound traffic they allow the virtual network and the internet and deny the rest.
A security group can be attached to the subnet, to the network interface of a machine, or to both. When both exist, inbound traffic is checked by the subnet group first and then by the interface group, and outbound traffic is checked by the interface group first and then by the subnet group. Traffic must be allowed at every stage to pass. This is the source of many puzzles: a rule that allows traffic on the interface is useless if the subnet group denies it earlier.
flowchart LR
I[Internet or other network] --> SN[Subnet security group]
SN -->|allowed| NIC[Interface security group]
NIC -->|allowed| VM[Virtual machine]
SN -->|denied| X1[Dropped]
NIC -->|denied| X2[Dropped]
IP flow verify
IP flow verify answers one precise question: would a packet with these details be allowed or denied at this machine, and which rule decides? You choose the machine and its interface, then describe the packet: the direction, the protocol, the local port, the remote address, and the remote port. The tool evaluates the rules and returns allow or deny together with the name of the rule responsible. It is a quick way to turn “it does not work” into “rule number three hundred in the subnet group denies it”.
NSG diagnostics
NSG diagnostics goes a step further. It works with a described flow at a virtual machine, a scale set, or an application gateway, and shows every security group and every rule that applies to that flow, in order, with the result at each stage. It can also point out a higher-priority rule that would allow or deny the traffic, which is useful when you want to know the smallest change that would fix the problem. Because it shows the whole chain, it is the better choice when several groups are involved.
Effective security rules
Effective security rules shows the combined list of rules that apply to a network interface, merging the subnet group and the interface group in the order they take effect. It is the “show me everything” view. It is slower to read than IP flow verify, because you must scan the list yourself, but it is excellent for reviewing a machine and for spotting rules that are far broader than intended.
IP flow verify
Test one packet against the rules at a machine. Returns allow or deny plus the deciding rule.
NSG diagnostics
Shows all groups and rules touching a described flow, and can suggest a rule change that would fix it.
Effective security rules
Lists the merged rules on a network interface so you can review everything at once.
Next hop
Shows where a packet leaving a machine would be sent next, based on routes.
How routing decides
Routing is the second half of most puzzles. Azure creates default system routes so that machines in a virtual network can talk to each other and to the internet. You can add your own routes, called user-defined routes, and routes can also be learned from gateways connected to your offices. When several routes match a destination, the one with the most specific address range wins. This idea is called longest prefix matching. If two routes have the same range, a user-defined route beats a learned gateway route, and both beat a system route.
Each route points to a next hop of some type. The common types are the virtual network itself, the internet, a gateway, a network appliance such as a firewall, a service endpoint, and none, which means the traffic is deliberately dropped. Choosing none by mistake, or pointing a default route at an appliance that is switched off, is a classic way to lose all outbound traffic.
| Next hop type | Meaning | Typical surprise |
|---|---|---|
| Virtual network | Stay inside the virtual network or its peers | Works only if peering and rules allow it |
| Internet | Leave directly to the public internet | Bypasses your firewall if a route to the appliance is missing |
| Virtual network gateway | Send to a gateway toward an office or another network | Learned routes can override expected paths |
| Virtual appliance | Send to a firewall or similar device | If the device is down or not forwarding, traffic disappears |
| None | Drop the traffic | A forgotten route that quietly blocks a whole range |
Next hop
The next hop tool tells you, for a given machine and destination address, which next hop type and address would be used and which route table supplied the choice. It is the fastest way to confirm that traffic really goes through your firewall, or to find the route that is sending it somewhere unexpected.
IP flow verify asks the guard, “Would you let this person through?” Next hop asks the signpost, “Which way would you send this person?” A visitor can fail either test. A guard may refuse entry, or a signpost may send the visitor to the wrong door. Good troubleshooting checks both.
These tools model security groups and routes. They do not see an operating system firewall on the machine, a firewall appliance’s own rules, or an application that is not listening. A clean result narrows the search; it does not end it.
Describe the flow
Write down source, destination, port, protocol, and direction, and decide which machine to test from.
Check the rules both ways
Run IP flow verify at the source for outbound and at the destination for inbound, and read the deciding rule.
Check the route
Run next hop from the source toward the destination and confirm the type and address are what you expect.
Check the return path
Run next hop from the destination back to the source, because replies follow their own route and asymmetric paths cause strange failures.
Fix and retest
Change one thing, rerun the tool, and confirm with a live test before closing the case.
Reading results like an investigator
The output of a rule-reading tool is only as useful as the care taken in reading it. Always note the name of the rule that decided the result, the group it belongs to, and whether it is attached to a subnet or an interface. Ask why the rule exists. A rule with a vague name such as temporary access that is two years old is a red flag. Compare the rule’s source range with the addresses you actually expect. Overly broad ranges, such as any address on any port, are frequent causes of unwanted exposure, and the same investigation that solves a blocked connection often reveals rules that should be tightened.
Also remember that different Azure features can influence traffic before or after security groups. Firewalls placed in the path, central security rules defined at a larger scope, and routes that steer traffic through appliances all contribute. If the result from a tool does not match what you see in real life, widen your search to these other layers instead of doubting the tool.
7Traffic-testing Tools: Connection Troubleshoot, VPN Troubleshoot, and Packet Capture
When the rules look fine but things still fail, it is time to send real traffic or watch real packets.
Connection troubleshoot
Connection troubleshoot runs a one-time test from a source to a destination and reports what happened. The source can be a virtual machine, a scale set, an application gateway, or a Bastion host. The destination can be a machine, a host name, a web address, or an IP address. The tool reports whether the connection succeeded, how long it took, how many hops were involved, and where the problem lies if it failed, such as a security rule, a route, a stopped machine, or a port that nobody is listening on. For machines, it uses the Network Watcher agent to send the test traffic.
The strength of this tool is that it combines several checks into one answer. Instead of running IP flow verify, next hop, and a manual connection test separately, you ask a single question and receive a combined verdict. Its weakness is that it is a snapshot. A problem that comes and goes will not be caught unless it happens at the moment of the test, which is the reason connection monitor exists.
VPN troubleshoot
Many organisations connect their offices to Azure through virtual private network gateways. When such a link fails, the problem may lie in the gateway, in the settings on the office device, in a mismatch of security parameters, or in the internet path in between. VPN troubleshoot examines a gateway or a connection, checks its health, and writes diagnostic information to a storage account. It reports whether the gateway is healthy and gives hints about likely causes. It can run only one troubleshooting operation at a time per subscription, so coordinate with colleagues in a busy environment.
A tunnel has two ends. Network Watcher can inspect the Azure side, but the office device has its own logs and settings. Compare both sides before deciding who needs to change something.
Packet capture
Packet capture is the microscope. It records the packets going into and out of a virtual machine or scale set, so that you can study them afterwards with a protocol analysis tool. You can set filters to record only certain protocols, addresses, and ports, and limits for how long to capture and how large the file may grow. The capture can be saved in a storage account, as a file on the machine, or both. It needs the Network Watcher agent on the machine, and each region has a generous limit on the number of capture sessions.
Flow logs are like a visitor book that records who entered and left. Packet capture is a video camera with sound at the door, recording what each visitor actually said. The camera is far more revealing, and for that reason it must be used with more care.
When packet capture earns its place
Slow connections that look fine on paper
Rules and routes are correct, tests succeed, yet users complain of delay. A capture can show retransmissions, long gaps between request and reply, or a machine advertising a tiny window of receiving space, which points to overload on one end.
Connections that reset unexpectedly
A capture shows who sent the reset signal, the client, the server, or a device in the middle, which instantly tells you where to look next.
Security investigation
When a machine is suspected of odd behaviour, a short capture filtered to suspicious addresses can reveal what it is really sending, beyond what flow logs can say.
Application handshake problems
Encrypted connections fail when two sides cannot agree on settings. A capture of the opening exchange shows the proposal and the rejection, even though the content afterward is encrypted.
Problem
A packet capture is started with no filter and a long duration, and the file is left in a storage account that many people can read.
Why It’s Harmful
The capture can contain passwords, personal data, and business secrets. It also fills storage quickly and slows the machine being observed.
Correct Approach
Capture only what is needed with tight filters and short limits, store the file in a locked-down account, and delete it as soon as the analysis is finished.
| Question | Connection troubleshoot | Packet capture |
|---|---|---|
| Speed of answer | Seconds | Minutes plus analysis time |
| Level of detail | Verdict and likely cause | Every packet |
| Privacy risk | Low | High, may contain real content |
| Best for | First look at a failing path | Deep problems after simpler tools |
Practical tips for live tests
Before running a live test, confirm that the source machine is running and has the agent installed, that its operating system is healthy, and that you have permission to use the tool. Choose the destination port that the real application uses, not a convenient one. Run the test from the same place real users or services connect from. When a test fails, read the reported reason carefully; it often names the exact rule, route, or stopped service. When a test succeeds but the application still fails, the problem likely lies above the network layer, such as a wrong credential, an expired certificate, or an overloaded server.
8Connection Monitor: Watching Health Over Time
A single test tells you about one moment. Connection monitor keeps testing, so you can see trends, find intermittent faults, and be warned before users complain.
What it does
Connection monitor sends test traffic at regular intervals between sources and destinations and records the results. Sources can be Azure virtual machines or machines in your own offices that run a monitoring agent. Destinations can be machines, host names, web addresses, or IP addresses, inside Azure, in other clouds, or on the internet. Each test measures whether the connection succeeded and how long a round trip took. Results are saved for charts and alerts.
Connection monitor is like sending a courier along an important delivery route every few minutes, all day, every day. If the courier suddenly arrives late or does not arrive at all, the control room knows at once, and the history of delivery times shows whether the route is slowly getting worse.
The building blocks
Connection monitor resource
The top-level object that holds everything, created in a region and subscription.
Endpoints
The sources and destinations of tests. They can be Azure machines, virtual networks, subnets, on-premises machines, or external addresses.
Test configurations
How to test: which protocol, port, how often, and what counts as healthy, such as a limit for failed checks or round trip time.
Test groups
A pairing of chosen sources, destinations, and test configurations. Each combination becomes a test that runs on schedule.
There are documented limits on how large one monitor may grow. A region in a subscription can hold up to one hundred connection monitors, each can have up to twenty test groups and twenty test configurations, and up to one hundred sources and destinations. These limits are generous, but large estates should plan their structure rather than creating one monitor per machine.
flowchart LR
S1[Web servers in Azure] --> T[Test group]
S2[Office machine with agent] --> T
T --> D1[Database in Azure]
T --> D2[Payment service on internet]
T --> D3[Partner site over VPN]
T --> R[Results in workspace and metrics]
R --> A[Alerts and dashboards]
Protocols and what they prove
Connection monitor can test using different methods, and each proves something different. A test using the basic echo protocol shows that a path exists and measures delay, but it proves nothing about the application. A test that opens a connection to a specific port proves that something is listening there. A test that makes a web request proves that the web service answers with an acceptable result. Choose the method that matches what you truly care about. For an important web service, a request test is far more meaningful than an echo test.
Reading the results
Two measures matter most. The percentage of failed checks shows how often the path breaks. The round trip time shows how fast it is. Watch both over days and weeks. A path that is always slightly slow, a path that is fast but fails one time in a hundred, and a path that gets slower every Monday morning each tell a different story and point to different causes. When a test fails, the tool also shows the path taken and can highlight the hop where trouble begins, which turns a vague complaint into a specific place to look.
Choose what matters
List the paths whose failure would hurt: user to application, application to database, office to Azure, Azure to key partners.
Define healthy
Decide the thresholds for failed checks and round trip time that count as acceptable for each path.
Create the monitor
Add endpoints, test configurations, and test groups, and send the data to a workspace.
Set alerts
Raise an alert when failures or delay stay above the threshold for a sensible period, not on a single blip.
Review regularly
Look at trends monthly and adjust tests as the environment changes.
Very frequent tests across hundreds of pairs create their own traffic and their own bill. Test the paths that matter, at a frequency that matches how quickly you must react.
Earlier generations of network performance and connection monitoring have been retired in favour of the current connection monitor. If you find documents or dashboards that refer to the older tools, treat them as out of date and rebuild on the current one.
Designing tests that reflect real use
A test is only as good as its resemblance to real traffic. If users reach a web service over a certain port with a certain protocol, test exactly that. If the application depends on a name lookup, include the name rather than a raw address so that name resolution problems are caught too. Place the source where real clients are: a test from a machine in the same subnet as the server proves little about how an office user experiences the service. Use several sources in different places for the most important destinations, so that a problem affecting only one route can be separated from a problem affecting everyone.
Finally, treat monitors as living objects. When a server moves, a service gets a new address, or a partner changes its endpoint, the test must change with it. Otherwise the dashboard will show a red alarm for a retired destination or, worse, a green light for a path nobody uses any more.
9Flow Logs and Traffic Analytics
Flow logs keep the history of your network conversations. Traffic analytics turns that history into insight.
What a flow log records
A flow log writes down information about the IP traffic passing through a part of your network. For each flow it records the source and destination addresses and ports, the protocol, the direction, and whether the traffic was allowed or denied by the rules. Over time it also records how many packets and bytes were exchanged. It does not record the content of the conversation. You learn who talked to whom and how much, not what they said.
The files are written as structured text, saved in a storage account in time-ordered folders, and kept for a retention period that you set. The raw files are meant for machines to read, which is why most people use them through traffic analytics or a search tool rather than by opening them one by one.
Network security group flow logs and virtual network flow logs
The older kind of flow log is attached to a network security group. It records only the traffic that the group’s rules evaluated, so its coverage depends on where groups are attached. The newer kind is attached to a virtual network, a subnet, or a network interface, and records traffic for everything in that scope. This makes coverage simpler to reason about: switching it on for a virtual network covers the resources in that network, without the need to enable logging group by group.
| Point | NSG flow logs | Virtual network flow logs |
|---|---|---|
| Attached to | A network security group | A virtual network, subnet, or network interface |
| Coverage | Depends on where groups are attached | Everything in the chosen scope |
| Setup effort at scale | One setting per group | One setting per network, easy to automate with policy |
| Status | Retiring on 30 September 2027 | The recommended path forward |
| Analytics support | Ends at retirement | Supported by traffic analytics |
Traffic analytics
Traffic analytics reads the flow log files at regular intervals, groups the records, enriches them with information such as the geographic location of addresses and whether an address is known to be risky, and writes the result to a log analytics workspace. It then offers dashboards that show the busiest talkers, the most used ports, traffic between regions and virtual networks, the share of allowed and blocked traffic, and flows to or from suspicious places. It is a powerful way to spot misconfigurations, unexpected data flows, and possible attacks.
flowchart LR
V[Virtual network traffic] --> FL[Flow log]
FL --> ST[Storage account files]
ST --> TA[Traffic analytics processing]
TA --> LA[Log Analytics workspace]
LA --> DB[Dashboards and maps]
LA --> AL[Alerts and searches]
What you can learn from the data
Unexpected exposure
Management ports reached from the open internet, or databases talking to places they should never talk to.
Rule clean-up
Rules that never match any traffic are candidates for removal, and rules that match huge volumes may be too broad.
Cost understanding
Large flows between regions or out to the internet explain network charges and show where architecture could be improved.
Incident investigation
After a suspected breach, the history shows which machines contacted which addresses, and when.
Capacity planning
Trends in volume and busiest hours show when links and appliances will need more capacity.
Compliance evidence
A durable record shows that traffic was controlled as policies required.
Flow logs on a busy network produce a lot of data. Plan storage, retention, and workspace costs before switching everything on, and tune retention so that you keep what you need and no more.
Problem
Flow logs are switched on everywhere with no owner, no retention plan, and nobody who reads the results.
Why It’s Harmful
Costs grow quietly, the data is never used when it matters, and old files pile up beyond any legal or business need.
Correct Approach
Decide the purpose first, such as security review, troubleshooting, or cost analysis. Enable logs where that purpose requires, set matching retention, and assign an owner who reviews the output.
Reading flow records with care
Flow data has a few quirks that beginners should know. A long conversation may produce several records over time, so the same flow can appear more than once as it continues. Byte and packet counts are totals for an interval, not for the whole conversation. Allowed and denied decisions are recorded where the rule was applied, which matters when several groups are involved. And flow logs are about the network layer, so they cannot tell you which user or application was behind a connection without extra information from other systems. Joining flow data with inventory data, such as which machine owns which address, makes the records far more useful.
Choosing between raw files and analytics
Raw files in storage are cheap to keep for long periods and are the right source for deep forensic work or for loading into other analysis systems. Traffic analytics is quicker for everyday questions and dashboards but adds processing cost and keeps data in a workspace with its own retention rules. Many organisations use both: analytics for fresh data over a few weeks or months, and raw files for long-term archive. Decide which questions each source will answer, and set retention separately for each so that you do not pay twice for the same history.
10Data Flow and Lifecycle
Let us follow what happens behind the scenes when you run a diagnostic tool, record a flow, or keep a monitor running for months.
The life of a diagnostic request
When you ask a tool such as IP flow verify for an answer, the request travels to the Network Watcher instance in the region of the machine. The service reads the current configuration of the machine’s network interface, subnet, security groups, and routes, then computes the outcome and returns it. No traffic is sent, and nothing on your machine changes. When you ask connection troubleshoot or packet capture for help, the service also contacts the agent on the machine, which performs the test or captures packets and returns the results or saves them in storage.
sequenceDiagram
participant U as You
participant NW as Network Watcher
participant CFG as Network configuration
participant AG as Agent on machine
participant ST as Storage account
U->>NW: Ask for a check
NW->>CFG: Read rules and routes
CFG-->>NW: Current settings
NW->>AG: Run live test if tool needs it
AG-->>NW: Test results
NW->>ST: Save output for captures and logs
NW-->>U: Verdict and details
The life of a flow record
Traffic happens
A machine opens a connection and exchanges packets.
The platform observes
The platform keeps track of the flow and its decision, without adding any software to your machine.
Records are written
At short intervals the flow records are written as files into your storage account.
Analytics processes
If traffic analytics is on, the files are read at a regular interval, enriched, and loaded into the workspace.
People and alerts consume
Dashboards, searches, and alerts use the data, and security or network teams act on what they find.
Retention removes
When files pass the retention period, they are deleted, keeping the account tidy and costs under control.
The life of the setup itself
Enable
The regional instance appears when networks are created, and you add flow logs, monitors, and alerts as needed.
Operate
Logs accumulate, monitors run, and teams use the tools during incidents and reviews.
Change
When networks are redesigned, monitors and flow log scopes must be updated to match, or coverage quietly decays.
Migrate
Older settings, such as network security group flow logs, are moved to newer ones before their retirement date.
Retire
Unused monitors, old storage, and obsolete workspaces are removed to save money and reduce risk.
Treating monitoring as a one-time project. Networks change every week. A monitor that points at a machine that was replaced months ago gives false comfort. Tie updates of monitors and flow log scopes to your normal change process.
Delays you should expect
Not every tool answers instantly. Rule-reading tools respond within seconds. Live tests take a little longer because they wait for the agent. Flow log files are written in batches, so there is a delay between traffic happening and the record appearing in storage, and traffic analytics adds another delay while it processes the files. For this reason, flow logs are excellent for investigation and trends but are not a real-time alarm system. For fast detection of a broken path, rely on connection monitor, and use flow logs to explain what happened afterwards.
11Security, Privacy, and Governance
The tools that help you see everything are themselves powerful. Handle them with the care you give to any system that touches sensitive information.
A security camera system protects a building, but the room where the recordings are kept must be locked more tightly than the front door. Network Watcher’s logs and captures are that recording room.
Who may do what
Access is controlled through roles. Reading topology and running rule-reading tools is a low-risk activity and can be given to a wider group of engineers. Starting packet captures, creating flow logs, changing monitors, and reading storage accounts that hold logs are higher-risk activities and should be limited to a small, named group. Use built-in network roles where they fit, and create custom roles when you need to grant only specific actions. Separate the people who can change network rules from the people who can delete logs, so that an attacker or a careless colleague cannot cover their tracks.
Protecting the data you collect
Storage account hardening
Restrict network access to the account, require secure transfers, and give read access only to the teams that need it. Remember that flow logs reveal relationships between systems.
Encryption
Data in storage is encrypted at rest by default. Consider customer-managed keys where your rules require full control of the key.
Retention and deletion
Keep data only as long as the purpose requires, and delete captures as soon as an investigation ends.
Workspace access
Limit who can query the log analytics workspace, because search results can expose the full map of your network.
Audit of the tools
Management actions such as starting a capture are recorded in the activity log. Review them to be sure the tools are used for good reasons.
Privacy rules
Addresses and traffic patterns can relate to people. Check that your logging practices match your privacy obligations and your agreements with employees and customers.
Governance with policy
In large organisations, relying on individuals to remember to switch on logs will always leave gaps. Azure Policy can check that every virtual network has a flow log, and in some cases it can create one automatically. It can also check that logs go to approved storage accounts, use approved retention, and send data to the right workspace. Policy turns a good intention into an enforced standard, and it is the natural way to roll out virtual network flow logs at scale.
Define the standard
Write down which networks need which logging, who owns it, and how long data is kept.
Encode it in policy
Use policy to detect missing logs and, where appropriate, to create them.
Control access
Grant tool and data permissions by role, with a short list of people for risky actions.
Report and review
Produce a regular report of compliance and exceptions, and review it with the owners.
Problem
Logs and captures are written to a storage account that is shared with unrelated applications and open to a wide group of engineers.
Why It’s Harmful
Sensitive network data becomes readable by people with no reason to see it, and a leak of one key could reveal the layout and the traffic of the whole environment.
Correct Approach
Use dedicated storage accounts with narrow access, private network paths, and clear ownership, and monitor who reads them.
Separating duties
Good governance separates the people who build the network from the people who watch it. If one person can change a rule, switch off the log that would show the change, and delete the stored history, nobody can prove what happened. Give the network team the power to manage rules and routes, give the security team read access to logs and the power to protect them, and give a small independent group the power to change retention. This separation costs little and greatly improves trust in your records.
12Troubleshooting Playbooks
Tools are only useful when they are used in a sensible order. Here are playbooks for the symptoms people report most often.
A general method
Good troubleshooting is a habit, not a talent. Describe the problem exactly. Draw the path. Test layer by layer from the simplest to the most detailed. Change one thing at a time. Write down what you learned. Following the same method every time makes you faster and keeps a team consistent, even when the person on call is tired.
flowchart TD
A[Symptom reported] --> B[Write down source destination port protocol]
B --> C[Look at topology for the path]
C --> D[Check security rules at both ends]
D --> E[Check routes in both directions]
E --> F[Run connection troubleshoot]
F --> G{Still unclear}
G -->|Yes| H[Review flow logs and run a filtered packet capture]
G -->|No| I[Fix one thing and retest]
H --> I
Playbook cards for common symptoms
Symptom 1: A new machine cannot reach the database
Check that both machines are in the networks you think they are, using topology. Run IP flow verify outbound on the source and inbound on the database. Look at security groups on both the subnet and the interface, since a subnet deny can hide behind an interface allow. Confirm the database actually listens on the port using connection troubleshoot.
Symptom 2: Outbound internet access stopped after a firewall was added
Run next hop from the machine toward a public address. If the next hop is the firewall appliance, check that the appliance is running and forwarding. If the next hop is none or the internet when you expected the appliance, a route is missing or wrong. Also check that the return traffic comes back through the same appliance.
Symptom 3: The office cannot reach resources in Azure
Run VPN troubleshoot on the gateway or connection to see whether the tunnel is healthy. If the tunnel is up, check routes toward the office ranges and security rules that allow the office ranges. Compare address ranges on both sides, because overlapping ranges cause confusing failures.
Symptom 4: Users report slowness only at certain hours
Look at connection monitor history for round trip time and failed checks by hour. Compare with traffic analytics for volume at the same hours. A rise in both suggests congestion or an overloaded appliance; slowness without volume change suggests something else, such as a dependency or a scheduled job.
Symptom 5: A connection works, then resets after a few minutes
Run a short, filtered packet capture on both ends and see who sends the reset. Idle timeouts in a load balancer or firewall are a common cause. If one side closes quietly and the other tries to reuse the connection, applications should send periodic keep-alive messages.
Symptom 6: Traffic is allowed on paper but still blocked
The rule-reading tools say allow, but the connection fails. Check the operating system firewall on the destination, any appliance rules, and whether the application is bound to the right address and port. Packet capture at the destination shows whether the packets even arrive.
Symptom 7: A deployment failed because of a limit
Open usage and quotas for the region. If a count such as public addresses or network interfaces is near its limit, request an increase or clean up unused resources.
Keep a short running note of what you tested, the result, and what you changed. During long incidents it prevents repeated work, and afterwards it becomes the heart of a useful review.
After the incident: making the fix last
Solving a problem is only half the job. Once the service is back, hold a short review. Which tool found the cause, and how long did that take? Was there a monitor that should have warned you earlier? Was the runbook helpful, and what was missing? Update the runbook, adjust the alerts, and where possible add a policy or template change that prevents the same mistake in other places. Teams that improve their tools after each incident gradually reduce both the number and the length of incidents, which is the real return on investing in visibility.
13Monitoring, Alerting, and Metrics for the Network
Network Watcher is itself a source of measurements. This chapter shows how to turn those measurements into early warnings.
The signals available
| Signal | Source | What it tells you |
|---|---|---|
| Failed checks percentage | Connection monitor | How often a monitored path breaks |
| Round trip time | Connection monitor | How fast a monitored path is |
| Allowed and denied flows | Flow logs and traffic analytics | What the rules are letting through and blocking |
| Top talkers and ports | Traffic analytics | Which machines and services dominate traffic |
| Traffic to risky places | Traffic analytics | Possible malicious or unexpected connections |
| Gateway health | VPN troubleshoot and gateway metrics | Whether site connections are up |
| Resource counts | Usage and quotas | How close you are to limits |
| Management actions | Activity log | Who changed rules, routes, or logging |
Alerts that people trust
An alert that fires too often teaches people to ignore it. Design alerts with care. Base thresholds on real history, not guesses. Require a condition to persist for a few minutes before alerting so that a single lost packet does not wake anyone. Send each alert to a named owner and attach a short note explaining what it means and what to check first. Review alerts monthly and remove the ones that never lead to action.
Path health
Failed checks above a set percentage for several minutes on a critical path.
Path speed
Round trip time well above the normal level for the same hour of the week.
Exposure change
New allowed traffic from the internet to a management port, found through flow log analysis.
Rule or route change
Edits to security groups or route tables in sensitive networks, taken from the activity log.
Quota pressure
Counts of addresses, interfaces, or other resources approaching their limits.
Logging gaps
Flow logs that stopped writing, or a storage account that is full or unreachable.
Dashboards for different audiences
Different people need different views. An operations team needs a live view of path health and recent changes. A security team needs a view of exposure, blocked flows, and traffic to risky places. A finance or architecture team needs a view of the largest flows between regions and out to the internet, since these drive cost. Build separate dashboards instead of one crowded page, and agree who owns each.
Define the questions
Write down what each team needs to know every day, every week, and during incidents.
Pick the signals
Match each question to one or two signals from the table above.
Set thresholds from history
Use at least a few weeks of data to learn what normal looks like for each hour and day.
Assign owners and guides
Name who receives each alert and write a one-page response guide.
Review and tune
Look at false alarms and missed events every month and adjust.
A silent system is not always a healthy one. Alert on logging gaps and on monitors that stop reporting, so that failure of your visibility tools does not go unnoticed.
Learning the normal pattern
Networks have rhythms. Traffic rises on weekday mornings, drops overnight, and jumps at month end. An alert threshold that ignores these rhythms either fires every morning or misses real problems at night. Spend a few weeks collecting data, look at each hour of each weekday, and set thresholds that respect the pattern. Where the tools support it, use alerts that learn normal behaviour automatically. Revisit the thresholds after big changes such as a new application launch or a network redesign.
14Migrating from NSG Flow Logs to Virtual Network Flow Logs
With network security group flow logs scheduled to retire on 30 September 2027, every team that depends on them needs a plan.
What changes at retirement
After the retirement date, Azure stops supporting traffic analytics for network security group flow logs and deletes the flow log resources that remain in your subscriptions. New network security group flow logs can no longer be created. Importantly, the log files already written to your storage accounts are not deleted and continue to follow the retention rules you configured. This means history is preserved, but nothing new will be recorded by the old mechanism, and dashboards fed by it will stop updating.
flowchart TD
A[Inventory existing NSG flow logs] --> B[Decide target scope for new logs]
B --> C[Plan storage retention and workspace]
C --> D[Choose migration route]
D --> E[Migration script for mixed setups]
D --> F[Azure Policy for uniform setups]
E --> G[Review analysis report and confirm]
F --> G
G --> H[Verify new logs are writing]
H --> I[Update dashboards and alerts]
I --> J[Disable and delete old NSG flow logs]
Two migration routes
Microsoft describes two approaches, and the right one depends on how uniform your setup is.
The migration script
Best for mixed or partial setups, for example groups with different settings, or flow logging enabled on only some interfaces or subnets. From the Network Watcher logs area in the portal you choose subscriptions and regions and download a script with a configuration file. The script first analyses your current setup and produces reports. You review them, choose whether to aggregate settings, and then confirm. Once accepted, the changes cannot be reverted, and the topology in the target regions should not be changed while it runs.
Azure Policy
Best when the same security group applies to all interfaces or subnets in a network, or when you want logging at the virtual network level across many networks. Policy can detect networks without flow logs and help create them in a consistent way, and it keeps new networks compliant in future.
Planning decisions
Choose the scope
Decide whether to log at virtual network, subnet, or interface level. Whole-network logging is simplest and gives the broadest coverage. Narrower scopes reduce volume where only some parts matter.
Review retention and storage
Check how long data must be kept for security and legal reasons, and set retention to match. Make sure storage accounts are in suitable regions with correct access controls.
Rebuild the analytics
Enable traffic analytics on the new logs and recreate the dashboards, saved searches, and alerts that used the old data. Compare results between old and new for a short overlap period.
Keep old history accessible
Remember that old files remain in storage. Document where they are, who may read them, and how long they stay, so that investigations of past events remain possible.
Inventory
List every network security group flow log, its storage account, its retention, its analytics settings, and who depends on the data.
Design
Choose scope, storage, retention, and workspace for the new logs, and choose the migration route.
Pilot
Run the migration on one non-critical subscription or region, check the results, and learn from surprises.
Roll out
Migrate remaining areas in planned waves, avoiding changes to the network layout while each wave runs.
Verify
Confirm that old logs are disabled, new logs are writing, analytics are updating, and alerts fire as expected.
Clean up
Delete the old flow log resources if desired, update documentation, and close the project.
Migration touches security evidence, and mistakes can leave blind spots. Start early enough to pilot, to compare old and new data, and to fix problems before the old logs stop being supported. Confirm the current dates and steps on the official migration page.
Lessons teams commonly learn
Teams that have completed the move often report the same lessons. Inventory takes longer than expected because settings were created by many people over many years. Dashboards and alerts built on the old data need more rebuilding than the logs themselves. Storage and workspace costs shift, so budgets need review. And the best results come when the migration is treated as a chance to simplify: fewer storage accounts, clearer ownership, and logging scopes that match the way the network is really organised.
15Design Patterns and Anti-patterns
A pattern is a proven way to use a tool. An anti-pattern is a tempting habit that causes trouble later.
Patterns worth adopting
Visibility by default
Every new virtual network is created with flow logging, a place for its logs, and a standard set of connection monitor tests as part of the template, so that visibility is built in from the first day.
Hub and spoke monitoring
Place connection monitor tests from each spoke to shared services in the hub, and from the hub to offices and key partners. This covers the paths that most users depend on with a small number of tests.
Central logging account and workspace
Send flow logs and analytics to a small number of well-protected, well-owned storage accounts and workspaces, so that security teams can search across the whole estate.
Runbook-driven diagnostics
Write a short runbook for the common symptoms, listing the tools in order. New team members become effective quickly, and incidents run in a consistent way.
Policy-enforced standards
Use policy to guarantee logging and retention, rather than depending on memory and goodwill.
Change and monitor together
When a network is redesigned, the same change updates its monitors, flow log scopes, and alerts, so visibility never lags behind reality.
flowchart LR
SP1[Spoke 1 workloads] -->|tests| HUB[Hub shared services]
SP2[Spoke 2 workloads] -->|tests| HUB
HUB -->|tests| OFF[Office over VPN]
HUB -->|tests| EXT[External partner service]
SP1 -.-> FL[Flow logs to central storage]
SP2 -.-> FL
HUB -.-> FL
FL --> AN[Central analytics workspace]
Anti-patterns to avoid
Problem
Relying only on rule-reading tools and declaring a network problem solved when they say allow.
Why It’s Harmful
These tools do not see appliances, operating system firewalls, or applications, so real failures are missed and the wrong team may be blamed.
Correct Approach
Follow rule checks with a live test, and use packet capture when evidence is still unclear.
Problem
Starting monitoring and logging only after the first serious incident.
Why It’s Harmful
You have no history to compare against, so you cannot tell what changed or when the problem started.
Correct Approach
Enable baseline monitoring and logging early so that normal behaviour is recorded before trouble arrives.
Problem
Allowing every engineer to start captures and change log settings in production.
Why It’s Harmful
Sensitive data may be recorded and shared, logs can be switched off by mistake, and nobody is accountable.
Correct Approach
Limit these actions to a small trained group, record who uses them, and require a short reason for captures.
Problem
Ignoring the announced retirement of network security group flow logs because everything works today.
Correct Approach
Plan the move to virtual network flow logs now, pilot it, and finish well before the retirement date.
Why It’s Harmful
Dashboards and alerts will stop updating, and a rushed migration is more likely to leave blind spots in security monitoring.
16Best Practices and Common Mistakes
This chapter collects the habits that separate calm network operations from endless firefighting.
Best practices by area
Know your map
Keep up-to-date topology views and written descriptions of the important paths in each environment.
Go from simple to deep
Use rule-reading tools first, then live tests, then flow logs, and packet capture only when needed.
Test what matters
Create connection monitor tests for the few paths whose failure would hurt most, with thresholds from real history.
Log with purpose
Define why each flow log exists, who reads it, and how long it is kept.
Protect the evidence
Use dedicated storage accounts, narrow access, and short capture retention.
Build it into templates
Create monitors, flow logs, and alerts through templates and policy rather than by hand.
Tune volume
Scope logs sensibly, set retention to need, and review the bill for logs, workspaces, and tests every quarter.
Practise
Run drills where the team solves a staged problem with the tools, so that real incidents feel familiar.
Common mistakes and how to avoid them
Replies follow their own route. Always check rules and routes both ways, especially when appliances or gateways are involved.
An allow rule on the interface is useless when the subnet group denies the traffic first. Use the combined view of effective rules to avoid this.
It is enabled automatically in most cases, but if someone opted out, tools will fail in that region. Check enablement when a tool reports that no instance exists.
Live tests and captures need the agent on the machine. If the machine is stopped or cannot reach management services, the tool cannot do its job.
Without retention and alerts, storage grows until it becomes costly or fails. Set retention and alert on logging gaps.
Intermittent problems hide between tests. Use connection monitor and flow log history to catch what a single check misses.
A launch checklist for a new environment
Visibility on
Network Watcher enabled in the region, flow logs configured, storage and workspace ready.
Paths monitored
Connection monitor tests cover user, application, database, office, and partner paths.
Access controlled
Roles set, storage locked down, risky actions limited to a named group.
Alerts owned
Alerts routed to owners with short response guides.
Runbook ready
Symptom playbooks written and practised once.
Building team skill
Tools only help when people know how to use them. Run a short training that walks through a staged problem, such as a blocked port caused by a subnet rule, a wrong route caused by a new appliance, and a flaky link revealed by connection monitor history. Let engineers practise each tool on a safe practice environment. Share a one-page cheat sheet that states which tool answers which question. Encourage engineers to write down what they learned in simple notes. A team that practises together solves real incidents faster and with less stress.
17Advantages, Trade-offs, and Cost Thinking
Every tool has a price in money, effort, and attention. Here we weigh what Network Watcher gives you against what it asks in return.
Advantages
- Built into Azure, with no separate product to buy or install for most tools
- Quick answers about rules and routes without touching live traffic
- Live tests and monitoring that reveal real behaviour and trends
- Flow logs and analytics that give a lasting record for security and cost review
- Integration with Azure Monitor, workspaces, alerts, and policy
- Regional instances switched on automatically in most cases
Disadvantages / Trade-offs
- Focused on infrastructure resources, not on platform service internals or website analytics
- Rule-reading tools do not see appliances, operating system firewalls, or applications
- Flow logs record metadata, not content, so some questions still need packet capture
- Logs, tests, and analytics add storage, workspace, and processing costs
- Captured data can be sensitive and needs careful handling
- Features change over time, such as the retirement of network security group flow logs
How the bill is made
Turning on Network Watcher in a region costs nothing by itself. Charges come from what you use. Some diagnostic tools are charged by the number of checks. Connection monitor is charged by the number of tests it runs. Flow logs are charged by the amount of data they collect, and traffic analytics by the amount of data it processes. On top of these, you pay for the storage that holds log files and captures, and for the workspace where analysed data lives. Prices change and differ between regions, so use the official pricing page and calculator for real numbers and avoid quoting old figures in business cases.
Ways to spend less without losing visibility
Scope flow logs wisely
Log the networks and subnets where the value is highest, such as internet-facing and sensitive data zones, and consider narrower scopes for noisy low-value areas.
Set retention to need
Keep detailed data for as long as security and law require, and no longer. Move older files to cheaper storage tiers where allowed.
Choose analytics frequency
Where near real time is not needed, a longer processing interval for traffic analytics can lower cost.
Test fewer, better paths
A handful of carefully chosen connection monitor tests beats hundreds of redundant ones.
Share workspaces sensibly
Consolidate where governance allows, to avoid paying for many small workspaces and duplicated data.
Delete what you no longer need
Remove old captures, unused monitors, and logs of retired networks.
Tag logging resources with an owner and purpose, set a budget alert on the logging subscription, and review the largest line items every quarter. The best cost saving is a log that is read, not a log that merely exists.
A worked cost-thinking example
Imagine a company with three environments: a customer-facing production network, an internal business network, and a developer sandbox. A careless design enables the highest level of logging, analytics, and testing everywhere. A thoughtful design asks what each needs. Production gets full flow logging with analytics, longer retention for security evidence, and connection monitor tests on its critical paths. The internal network gets flow logging with a shorter retention and fewer tests. The sandbox gets minimal logging, enough to investigate abuse, and the diagnostic tools on demand. The savings come from matching effort to risk, not from switching tools off blindly.
The hidden cost of not looking
It is easy to count the money spent on logs and tests and forget the cost of having none. Hours lost to guessing during an outage, security incidents found weeks late, unexplained network bills, and failed audits all have a price, often far larger than the monthly charge for visibility. A balanced view compares the cost of the tools with the cost of the problems they prevent or shorten. Seen this way, a well-designed monitoring and logging setup is usually an inexpensive insurance policy.
18Real-world Scenarios
Here are five everyday situations that show how the tools fit together. The names are illustrative, not real customers.
Scenario A: A retailer’s checkout becomes slow every Friday evening
Users complain of slow payments on Friday evenings. The operations team has connection monitor tests from the web tier to the payment partner and to the database. The history shows round trip time to the partner rising every Friday while the database path stays flat. Traffic analytics shows a large increase in outbound volume from one subnet at the same hours, caused by a weekly export job. Moving the job to a quieter time fixes the slowness, and the team adds an alert for the same pattern.
Scenario B: A bank finds an unexpected open port
During a quarterly review of flow log analytics, the security team sees traffic from the open internet reaching a management port on a test machine that was supposed to be private. IP flow verify and effective security rules show an old broad rule on the subnet group. They narrow the rule, use policy to block such rules in future, and use the stored logs to confirm that no unknown addresses connected successfully.
Scenario C: A manufacturer loses connectivity to its plant after a change
After a gateway update, the plant cannot reach a set of servers in Azure. VPN troubleshoot shows the tunnel is healthy. Next hop from the servers toward the plant addresses shows traffic going to a firewall appliance instead of the gateway, because a new route was added with a wider address range. Fixing the route restores connectivity, and a connection monitor test from Azure to the plant is added to catch similar failures sooner.
Scenario D: A software company chases a mysterious connection reset
An application loses connections to a service about every ten minutes of idle time. Rules and routes are clean. A short, filtered packet capture on the client side shows a reset arriving from the network path, not from the server. The team traces it to an idle timeout in a middle device and fixes it by enabling keep-alive messages in the application.
Scenario E: A public service prepares for the flow log retirement
An agency finds network security group flow logs enabled in dozens of subscriptions with different settings. It inventories them, uses the migration script for the mixed subscriptions and policy for the uniform ones, runs a pilot in one region, compares old and new analytics side by side, then rolls out in waves months before the retirement date.
flowchart TD
A[Slow checkout on Fridays] --> B[Connection monitor shows partner path slower]
B --> C[Traffic analytics shows large export job]
C --> D[Job moved to quiet hours]
D --> E[Alert added for same pattern]
When another service may be a better fit
Network Watcher is not the answer to every question. If you need to understand the inner behaviour of a platform service, the service’s own diagnostics will tell you more. If you need to inspect and filter traffic through deep rules, a firewall service with its own logs is the right tool. If you need to understand how real users experience a website, an application monitoring service gives better answers. Choosing the right tool for each question is part of good architecture.
19Frequently Asked Questions
Short answers to the questions teams ask most often.
Usually not. It is switched on automatically in a region when you create or update a virtual network there, at no extra charge. Some tools need an agent on the machine, which the portal normally installs when you start them.
No. It tells you whether security rules would allow or deny a packet. Firewalls, appliances, operating system settings, and the application can still block it, so follow with a live test.
Connection troubleshoot runs a one-time test and explains the result. Connection monitor runs tests repeatedly, stores results, and lets you see trends and set alerts.
No. They record who talked to whom, on which ports and protocol, how much data moved, and whether the traffic was allowed or denied. To see content you would need packet capture, which must be used carefully.
It reads flow logs, enriches them with information such as location and known risky addresses, and saves the result in a workspace, where dashboards and searches show patterns and possible problems.
Yes. Microsoft has announced retirement on 30 September 2027, and new ones can no longer be created. Existing log files in storage are not deleted. Microsoft recommends virtual network flow logs, so plan your migration and confirm dates on the official page.
Use the migration script for mixed or partial setups, or Azure Policy for uniform setups. Review the analysis, pilot first, verify the new logs and analytics, and then remove the old ones.
It is designed for infrastructure resources such as machines, virtual networks, application gateways, and load balancers, not for the internals of fully managed platform services. Use the service’s own monitoring for those.
A small, trained group. Captures may contain sensitive data, so restrict access, use filters and short limits, store files securely, and delete them after use.
Automatic enablement may have been turned off, so the regional instance was never created. Enable Network Watcher in that region and try again.
Scope logs to where they matter, set retention to need, test fewer and better paths, delete old captures and unused monitors, and review the bill every quarter.
Confirm Network Watcher is enabled, create flow logs with secure storage and a workspace, add connection monitor tests on the critical paths, set a few trusted alerts, and write a short runbook.
20Summary and Key Takeaways
Azure Network Watcher gives you the eyes and instruments to understand a network you cannot touch. Topology draws the map. Rule-reading tools explain which security rule or route decides an outcome. Connection troubleshoot and packet capture send or observe real traffic. Connection monitor keeps testing important paths and shows trends. Flow logs and traffic analytics keep a durable record of who talked to whom. Used in a sensible order, and guarded with proper security and governance, these tools turn long guessing sessions into short, clear investigations. And because network security group flow logs are scheduled to retire on 30 September 2027, every team that relies on them should plan, pilot, and complete the move to virtual network flow logs well before that date.
Key Takeaways
- Right tool for the question — use topology for layout, rule-reading tools for blocked traffic and wrong routes, live tests for reachability, connection monitor for trends, flow logs for history, and packet capture for deep evidence.
- A clean rule check is not proof — security groups and routes are only part of the story, so confirm with a live test and look at appliances, operating system firewalls, and applications.
- Check both directions and both layers — replies follow their own route, and traffic must pass both the subnet group and the interface group.
- Monitor what matters — a few well-chosen connection monitor tests with thresholds from real history, alerts with owners, and dashboards for each audience beat a flood of tests.
- Protect the evidence — logs and captures reveal how your systems talk, so use dedicated storage, narrow access, short capture retention, and policy to enforce standards.
- Migrate flow logs early — network security group flow logs retire on 30 September 2027, so inventory, pilot, compare, and move to virtual network flow logs with time to spare.
- Log with purpose and review the cost — decide why each log exists, set retention to match, and review volume and bills every quarter.