How do I set alert rules on a virtual machine scale set?

Micah McKittrick 946 Reputation points Microsoft Employee
2019-10-29T19:39:08.133+00:00

I have a VMSS cluster with 5 nodes. I would like to setup some generic alerting rules. Any guidance on getting started?

Sourced from FAQ

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.
348 questions
0 comments No comments
{count} votes

Accepted answer
  1. olufemia-MSFT 2,861 Reputation points
    2019-10-29T21:44:20.487+00:00

    Welcome to the Microsoft Q&A (Preview) platform. Happy to answer your questions.
    You can create alerts on metrics for virtual machine scale sets via PowerShell or Azure CLI. For more information, see Azure Monitor PowerShell quickstart samples and Azure Monitor cross-platform CLI quickstart samples.

    The TargetResourceId of the virtual machine scale set looks like this:

    /subscriptions/yoursubscriptionid/resourceGroups/yourresourcegroup/providers/Microsoft.Compute/virtualMachineScaleSets/yourvmssname

    You can choose any VM performance counter as the metric to set an alert for. For more information, see Guest OS metrics for Resource Manager-based Windows VMs and Guest OS metrics for Linux VMs in the Azure Monitor autoscaling common metrics article.

    Sourced from FAQ

    2 people found this answer helpful.
    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. AHMED ISMAIL GOMAA BAKIR 906 Reputation points
    2022-05-05T21:59:38.057+00:00

    The TargetResourceId of the virtual machine scale set looks like this:

    /subscriptions/yoursubscriptionid/resourceGroups/yourresourcegroup/providers/Microsoft.Compute/virtualMachineScaleSets/yourvmssname

    7 people found this answer helpful.
    0 comments No comments

  2. Hanan Ali Ibrahem Roffa 81 Reputation points
    2022-05-06T03:20:14.267+00:00

    The TargetResourceId of the virtual machine scale set looks like this: /subscriptions/yoursubscriptionid/resourceGroups/yourresourcegroup/providers/Microsoft.Compute/virtualMachineScaleSets/yourvmssname

    0 comments No comments

  3. Hend Mosbah 6 Reputation points
    2022-05-06T20:59:59.937+00:00

    The TargetResourceId of the virtual machine scale set looks like this: /subscriptions/yoursubscriptionid/resourceGroups/yourresourcegroup/providers/Microsoft.Compute/virtualMachineScaleSets/yourvmssname

    0 comments No comments

  4. Hend Mosbah 6 Reputation points
    2022-05-06T23:38:07.13+00:00

    The TargetResourceId of the virtual machine scale set looks like this: /subscriptions/yoursubscriptionid/resourceGroups/yourresourcegroup/providers/Microsoft.Compute/virtualMachineScaleSets/yourvmssname

    0 comments No comments