How to get a graph data of instances history in Azure VM scale set ?

Karthik Baskaran 0 Reputation points
2023-02-03T06:17:22.0266667+00:00

Hi Azure Developers,
We are deploying multiple resource groups for our customers with Virtual machine scale set so obviously it will scale up and down.

We need to show an analytics data of Number of instances running currently which we have got it by using Azure Query API.

But we need the history of data for that resource group like how many instances were mounted previously and the duration of how long it was kept kept active, and the time of its deallocation.

How can we approach this problem kindly help us with this ?
Thanks and Regards
Karthik Baskaran

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
6,982 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
340 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 17,997 Reputation points Microsoft Employee
    2023-02-22T00:44:48.6833333+00:00

    The Activity log displays recent activity by the virtual machine in a scale set, including any configuration changes and when it was stopped and started. View the Activity log in the Azure portal, or create a diagnostic setting to send it to a Log Analytics workspace, where you can view events over time or analyze them with other collected data.

    Multi-resource metric alerts

    Using recommended alerts, a separate alert rule is created for each VM in a scale set. You can choose to instead use a multi-resource alert rule to use a single alert rule that applies to all VMs in a particular resource group or subscription (within the same region). Use the guidance at Create a new alert rule to create a metric alert rule using a subscription or resource group for the scope and the other details from alert rules created by recommended alerts.

    Reference doc : Monitor Azure virtual machines

    0 comments No comments