How to Deploy and Configure Azure Monitor

Published: (January 1, 2026 at 02:31 PM EST)
2 min read
Source: Dev.to

Source: Dev.to

Prepare Your Azure Environment

  1. Create a resource group

    • Search Resource GroupsCreate
    • Name: rg-alpha
    • Region: East US
    • Click Review + createCreate

    This group will hold all the resources Azure Monitor will observe.

Create a Security Group (Optional – used in the lab)

  1. Search Azure Active Directory / Entra IDGroupsNew group
  2. Group type: Security
  3. Name: App Log Examiners
  4. Click Create

Deploy Virtual Machines to Monitor

Deploy Windows VM (WS‑VM1)

  1. Search Virtual MachinesCreate

  2. Basics

    • Name: WS-VM1
    • Region: East US
    • Image: Windows Server 2022 Datacenter
    • Size: Standard_D4s_v3
    • Admin username: prime
    • Password: your secure password
    • Inbound port: RDP (3389)
  3. Click Create and wait for deployment.

  4. After deployment, select Go to resourceNetworking.

    • Edit the default RDP rule: set Source to My IP address and Save.
    • Add an inbound rule:
      • Source: Any
      • Destination port ranges: 310
      • Protocol: TCP
      • Action: Allow
      • Name: AllowAnyHTTPInbound
  5. Connect via RDP:

    • Choose ConnectNative RDPDownload RDP file.
    • In the Windows Security dialog, select More choicesUse a different account.
    • Username: .\prime
    • Password: your secure passwordOK.
  6. Inside the VM, open Windows PowerShell (Admin) and run:

    Install-WindowsFeature Web-Server -IncludeAllSubFeature -IncludeManagementTools
    cd C:\inetpub\wwwroot
    Invoke-WebRequest https://raw.githubusercontent.com/Azure-Samples/html-docs-hello-world/master/index.html -OutFile index.html

Deploy Linux VM (Linux‑VM2)

  1. Search Virtual MachinesCreate
  2. Basics
    • Name: Linux-VM2
    • Resource group: rg-alpha
    • Availability options: No infrastructure redundancy required
    • Image: Ubuntu Server 20.04 LTS
    • Size: Standard_D2s_v3
    • Architecture: x64
    • Username: prime
    • Password: your secure password
  3. Click Review + createCreate.
  4. After deployment, open the VM’s Extensions + Applications under Settings.
  5. Add the Network Watcher Agent for Linux extension: AddNextReview + createCreate.

Deploy a Web App with an SQL Database

  1. Open the template repository.
  2. Click Deploy to Azure.
  3. Sign in with an account that has Global Administrator privileges if prompted.
  4. On the Basics page, select Edit template.
  5. In the editor, delete lines 158‑174 (inclusive) and remove the trailing comma on line 157. Click Save.
  6. Provide the required parameters on the Basics page and click Next.
  7. Review the configuration and click Create.
  8. After deployment completes, select Go to resource group to view the newly created web app and SQL database.
Back to Blog

Related posts

Read more »

The RGB LED Sidequest 💡

markdown !Jennifer Davishttps://media2.dev.to/dynamic/image/width=50,height=50,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%...

Mendex: Why I Build

Introduction Hello everyone. Today I want to share who I am, what I'm building, and why. Early Career and Burnout I started my career as a developer 17 years a...