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.
CodePudding user response:
A sample implementation has been provided i.e. Alert when CPU usage has been over 80 percent for more than 5 minutes: https://petri.com/automatically-resize-azure-vm
You can also check the following link for "Resize VMs (vertical scaling) using Azure alerts and Azure Automation":
https://azure.microsoft.com/en-in/blog/new-features-for-azure-alerts-and-autoscale/
CodePudding user response:
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