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:
Virtual Machines - List All API with parameter
statusOnly
set totrue
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!