Hello, @TAZDAIT, Yacine !
How do I set up an alert for my VM when it exceeds X% of usage?
A common task for a VM is to set up an alert when more than a certain amount of resources have been used. You can do this by going to your VM resource and under Monitoring, click on Alerts (80% usage is a preset alert you can select):
https://learn.microsoft.com/en-us/azure/azure-monitor/vm/tutorial-monitor-vm-alert-recommended
- From the menu for the VM, select Alerts in the Monitoring section. Select View + set up.
- Expand each of the alert rules to see its details. By default, the severity for each is Informational. You might want to change to another severity such as Error.
- Select Save to create the alert rules.
I hope this has been helpful! Your feedback is important so please take a moment to accept answers.
If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!