@NguynChNhn-3989 There is a similar thread discussion in the SO forum, please refer to the suggestion
Create alerts from Azure Monitor for VMs
Hope this helps!
Kindly let us know if the above helps or you need further assistance on this issue.
------------------------------------------------------------------------------------------------------------
Please don’t forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.