Skip to content

Azure Bicep Lab to play with Azure Network Watcher - Connection Monitor tool in a Hub & Spoke network topology.

Notifications You must be signed in to change notification settings

davidsntg/lab-azure-connection-monitor-with-bicep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lab - Connection Monitor with Bicep

This repo is a lab to play with Connection Monitor, part of Network Watcher.

It contains basically Azure Bicep code to provision following infrastructure:

Architecture

In addition to this hub & spoke, on-premise & S2S VPN, Bicep code will create Azure Network Watcher in the target subscription and configure a Connection Monitor that will:

  • Monitor connectivity between hubVM and spoke01 Azure VM on SSH protocol every 30 seconds.
  • Monitor connectivity between hubVM and spoke02 Azure VM on SSH protocol every 30 seconds.
  • Monitor connectivity between hubVM and onprem VM (using its private IP address instead of Azure Resource Id) on SSH protocol every 30 seconds.
  • Monitor connectivity between spoke02VM Azure VM and public URL http://ident.me on HTTP protocol every 30 seconds.

Quick start

  • Deploy base infrastructure using CLI:
# Select subscription
az account set -s "....."
# Deploy infrastructure
az deployment sub create --template-file main.bicep --location centralindia
  • Azure Portal - Navigate to Network Watcher => Connection Monitor:

Connection Monitor

  • Azure Portal - Create a custom dashboard and pin tests groups metrics charts to this custom dahsboard.

Dashboard

  • Enjoy!

About

Azure Bicep Lab to play with Azure Network Watcher - Connection Monitor tool in a Hub & Spoke network topology.

Resources

Stars

Watchers

Forks

Languages