How To Setup Microsoft Azure Monitor For CPU Uptime

Step 1: Sign in to Azure Portal

Step 2: Navigate your virtual machine or resource

  • Select “Virtual Machines”.
  • Click on the VM for which you want to observe the CPU usage.

Step 3: Access Azure Monitor

  • Scroll down to the sidebar of VM and click “Monitoring” > “Metrics”.
  • Alternatively, you can access Azure Monitor directly via the left menu by selecting “Monitor”.

Step 4: Create a Metric Rule, or Choose One

  • Go to “Alerts”, > , “Create an alert rule”.

Step 5: Define the Scope

  • Click “Select” under “Scope”.
  • Select your subscription and the resource group, then select the VM or resource you want to observe.

Step 6: Configure the Condition

  • Under “Condition”, click “Add condition”.
  • In the “Signal name” dropdown, select “Percentage CPU”.
  • Set the condition logic, e.g. “Greater Than”, and specify the threshold, e.g. 80 percent for CPU utilization.
  • Set the evaluation period and frequency (e.g. you should be evaluating every 5 minutes for the last 15 minutes).

Step 7: Define your Action Group

  • Under “Actions”, choose an existing Action Group or create an entirely new one.
  • To create a new unit of actions:
    • Click “Create action group”.
    • Please enter your name, region and subscription.
    • Add notification receivers (Email, SMS, Webhook, etc. ).

Step 8: Configure Details and Review

  • Enter a name and description to alert rule.
  • Check all settings to ensure correctness.

Step 9: Create an Alert

  • Click to “Create