question

AZHockeyNut avatar image
0 Votes"
AZHockeyNut asked PradeepKommaraju-MSFT commented

generate SMS alert on VM state of Failed is this possible?

Like most folks I get a ton of notifications regarding my VMs in Azure across multiple subscriptions etc. they powered on they powered off etc, loads of jobs that run and so on. Today I had 2 VMs that were in a "failed" state. Looking into the message it said something about not enough resources in the region (west us). Be that as it may, is there a way to create an SMS alert for this VM state of failed only? I tried running thru the Alerts in Azure but there was nothing under Virtual Machines that looks to me like an event that could trigger the alert. I reached out to Azure support and they suggested posting here as well.

Thanks in advance!

azure-virtual-machinesazure-automation
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Can you please share the support request number so that I can look for details there and further help you with this? Thanks.

0 Votes 0 ·

I do not have a support #. I reached out via Twitter to Azure Support. They could not find anything and directed me to post here. I then returned this link to them. So far nothing here or in my search.

0 Votes 0 ·
PradeepKommaraju-MSFT avatar image
0 Votes"
PradeepKommaraju-MSFT answered PradeepKommaraju-MSFT edited

Hi @AZHockeyNut

Thanks for reaching out to Microsoft Q&A Platform .

Let me break my response in three parts here :

When does a VM go into a "Failed" state ?
When ever there is an update operation on the VM which eventually failed with X reason { In your case capacity } , The VM Might land into this inconstant state .

How an i recover VM provisioning state from Failed to Succussed ?
We will need to review the failure and troubleshoot/act on it accordingly

How can we Monitor all the failed operations on VM's and get notifications ?
Step 1 : Navigate to Alerts section of the VM and select Activity log-Administrative for CRUD :

144001-image.png

Step 2 : Set Up alerting for only failed events :

143965-image.png

This should alert you with when ever any update on the VM fails.

Hope this solution helps in your case , If so kindly accept the answer so that it can be useful for the community .

Thanks & Regards,
Pradeep



image.png (124.3 KiB)
image.png (85.5 KiB)
image.png (117.5 KiB)
image.png (85.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AZHockeyNut avatar image
0 Votes"
AZHockeyNut answered PradeepKommaraju-MSFT commented

thanks for the very detailed response. It was most helpful. It does appear though you are possibly using a preview feature and I am not. I do not get the same wizard you show, nor do i have the option to configure actions. I will keep looking

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello Again @AZHockeyNut

Here are the step i have used to reach out to that page:
1) From the VM Overview menu , Please select "Alerts" which is under "Monitoring" tab .
2) And i have just clicked on create new alert .

Hope this was helpful in your use case, If so i would request you accept the answer so that it could be useful for the community .

Thanks & Regards,
Pradeep

0 Votes 0 ·