'Alert when a virtual machine has been resized

Within Azure Portal, is it possible to have an alert fire when a virtual machine has been resized manually? Autoscaling is not enabled so I am looking to have an alert triggered by the resizing of a virtual machine manually.

Is it as simple as configuring the 'Create or Update Virtual Machine (Microsoft.Compute/virtualMachines)' alert?

Any help or guidance would be appreciated.



Solution 1:[1]

Yes, it is that simple. But it will also give you alerts that are not caused by resizing.

There is an explaination here: https://docs.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-activity-log

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1