Microsoft Azure Virtual Machine Scale Set

This template contains performance and statistics counters for monitoring Azure Virtual Machine, an on-demand, scalable computing resource.

Prerequisites

  • PowerShell module (Azure, AzureRM) is installed before using this template.

    To install the Azure module, execute these PowerShell commands:

    • Install-Module -Name Azure
    • Install-Module -Name AzureRM
  • To connect with the Azure account, you'll need the subcriptionID, ApplicationID, TenantID, and Secret Key.
    Any Azure App (with its name and ID) having minimum role as Read Only
  • Virtual Machine name for which metrics are being calculated.
  • PowerShell 5.0 or later.

Credentials

  • Login credential to access the Azure Portal, passed as script arguments per prerequisites (<subscriptionID>, <TenantID>, <ApplicationID>, value=<Secret Key>, <Virtual Machine Name>, <ResourceGroupName>).
  • Optional parameters can be passed to script argument:
    • value=<Time Interval> - during which data must be fetched, in minutes. The default is 10 minutes.
    • Number of retries as the second last argument; the default is 3.
    • WaitTime as the last argument; the default is 0.5 seconds

Notes

Monitored Components

Disk Read Bytes/Sec

This monitor provides the total bytes read from disk during monitoring period for the given Virtual machine via PowerShell cmd-let.

Unit: Bytes

Disk Read Operations/Sec

This monitor provides the average Disk Read Operations per sec for the given Virtual machine via PowerShell cmd-let.

Unit: CountPerSecond

Disk Write Bytes/Sec

This monitor provides the total bytes written to disk during monitoring period for the given Virtual Machine via PowerShell cmd-let.

Unit: Bytes

Disk Write Operations/Sec

This monitor provides the average Disk Write Operations per sec for the given Virtual machine via PowerShell cmd-let.

Unit: CountPerSecond

Network Incoming Traffic

This monitor provides the total number of bytes received on all network interfaces for the given Virtual Machine (Incoming Traffic) via PowerShell cmd-let.

Unit: Bytes

Network Outgoing Traffic

This monitor provides the total number of bytes out on all network interfaces by the given Virtual Machine (Outgoing Traffic).

Unit: Bytes

Percentage CPU

This monitor provides the average percentage of allocated compute units that are currently in use by the given Virtual Machine via PowerShell cmd-let.

Unit: Percent