un-labeled powerstate

Ricardo Garin 0 Reputation points
2023-09-20T13:35:02.6833333+00:00

I did a query to list count of VMs by powerstate and there's an entry that has no powerstate info. What is that 11 count?

User's image

Azure VMware Solution
Azure VMware Solution
An Azure service that runs native VMware workloads on Azure.
327 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 24,656 Reputation points Microsoft Employee
    2023-09-20T18:23:15.5166667+00:00

    Hello, @Ricardo Garin !

    Why might I see a blank PowerState for a VM in rare cases?

    Although rare, there are instances where you may not get a PowerState from a VM. These are caused by intermittent issues in the retrieval process:

    https://learn.microsoft.com/en-us/azure/virtual-machines/states-billing#get-states-using-instance-view

    Virtual Machines - List All API with parameter statusOnly set to true retrieves the power states of all VMs in a subscription. However, in some rare situations, the power state may not available due to intermittent issues in the retrieval process. In such situations, we recommend retrying using the same API or using Azure Resource Health to check the power state of your VMs.

    Some causes include VM issues like a VMStartTimedOut error (in which case the PowerState will be updated later) and there have been reports that slow extension installs may delay reporting of the PowerState.


    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!

    User's image

    0 comments No comments