Restarting VM automatically if NIC is not responding

tariq mahmood 0 Reputation points
2024-06-05T11:51:57.43+00:00

Hello, Is there any way to create automation where if VM NIC stops responding to ICMP then it restarts VM automatically.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,470 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,173 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 34,931 Reputation points Microsoft Employee
    2024-06-10T17:53:53.3133333+00:00

    @tariq mahmood

    I understand that you want to monitor you Azure VM and restart it if is unresponsive. While it would be possible to do this with ICMP, this would require a custom solution. In Azure you can monitor the VM availability metric. This tutorial walks you through setting up a monitoring alert for this. When you setup the action group you can have it restart the VM through Automation Runbook.

    enter image description here

    Let me know if this helps! If you still have questions please let me know and I will do my best to assist.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A! User's image

    0 comments No comments