how to check or find out that A living migration events happened on my VM

Zhongliang Shu 40 Reputation points
2024-11-23T01:20:33.1866667+00:00

Hi, Guys:

As per Azure doc, "When VM impacting maintenance is required it will almost always be completed through a VM pause for less than 10 seconds. In rare circumstances, no more than once every 18 months for general purpose VM sizes, Azure uses a mechanism that will pause the VM for about 30 seconds. After any pause operation the VM clock is automatically synchronized upon resume.",

How do I figure out or where to find out that the a living migration (such as above VM pause 10 seconds, etc., ) happened on my VM instance on Azure?

Thanks.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,111 questions
0 comments No comments
{count} votes

Accepted answer
  1. Preetha Rajesh 126 Reputation points
    2024-11-24T12:02:10.14+00:00

    Hi @Zhongliang Shu ,

    Please note that not all events are captured in activity logs. Resource health events are sent to activity logs, but not all resource health transitions are recorded in the activity log.

    A resource health is recorded in the activity log when:

    1. An annotation is submitted for a resource like VM [annotation is a label or note that provides more information about the health of a resource. For example: ResourceDegraded: Indicates that the resource's performance or functionality is degraded. AccountClientThrottling: Indicates that the resource is being throttled due to excessive requests or usage.]. Here, you need to note - not all annotations are submitted for a resource such as Transient issues less than 35 seconds.
    2. A resource transitioned to or from Unhealthy.
    3. A resource was unhealthy for more than 15 mins.
    4. A transition to Unknown state if: This is the first transition. If the state prior to Unknown is the same as the new state after. (For example, if the resource transitioned from Healthy to Unknown and back to Healthy). For compute resources: VMs that transition from Healthy to Unhealthy, and back to Healthy, when the Unhealthy time is less than 35 seconds.

    Hope this helps.

    You can refer Microsoft documentation where its explained clearly about the missing VM downtime in activity log. Refer here.

    Resource health overview link - https://learn.microsoft.com/en-us/azure/service-health/resource-health-overview

    Thank You!

    Preetha

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Lakshan Umesh 21 Reputation points
    2024-11-23T02:25:35.3+00:00

    I will give you 3 ways to achieve your requirements, as shown below.

    1. You can check these kinds of events using the Azure Resource Health tool.
    2. Activity logs can also used to check maintenance events.
    3. If you are familiar with Azure Monitor KQL queries, you can run a query to fetch these maintenance events easily.

    If you find my response helpful, please consider accepting this answer and voting yes to support the community. Thank you!

    0 comments No comments

  2. Zhongliang Shu 40 Reputation points
    2024-12-04T00:23:52.5233333+00:00

    Thanks for sharing the info. Lakshan Umesh & Preetha Rajesh.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.