question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

get virtual machines Resource health and health history

See original GitHub issue

Query/Question How can we help?

i want to get virtual machines Resource health and health history from sdk using my c# code but seems there is no way to get it so if i am missing something please guide how to do it.

Environment:

  • Name and version of the Library package used: Microsoft.Azure.Management.Fluent 1.31.1 i am on this version but i can upgrade it if needed.
  • Hosting platform or OS and .NET runtime version (dotnet --info output for .NET Core projects): windows 10 with .net core 3.1
  • IDE and version : Visual Studio 16.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stephbaroncommented, May 12, 2020

unknown means that the system has not received a signal from the resource, and therefore there isn’t any data to show. Unknown should still come back in the API responses (history). In some cases, such as when a machine has been deallocated, the API (current) will return the last transition, for example:

AvailabilityStatuses (history):

“properties”: { “availabilityState”: “Unknown”, “title”: “Unknown”, “summary”: “We are currently unable to determine the health of this virtual machine.”, “reasonType”: “”, “occuredTime”: “2020-05-12T14:39:36.7872765Z”, “reasonChronicity”: “Transient”, “reportedTime”: “2020-05-12T14:39:36.7872765Z” }

AvailabilityStatus/current (current):

"properties": {
    "availabilityState": "Unavailable",
    "title": "Stopped and deallocating",
    "summary": "This virtual machine is stopping and deallocating as requested by an authorized user or process.",
    "reasonType": "Customer Initiated",
    "occuredTime": "2020-05-12T14:40:51.4036325Z",
    "reasonChronicity": "Transient",
    "reportedTime": "2020-05-12T14:40:51.4036325Z"
}
0reactions
KranthiPakala-MSFTcommented, Oct 31, 2021

@stephbaron Following up to see if there is any update on the following query. Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Resource Health overview - Azure Service Health
A resource is a specific instance of an Azure service, such as a virtual machine, web app, or SQL Database. Resource Health relies...
Read more >
Monitoring Azure Health Status Using Azure Portal - Part 1
You can view the status history of past incidents from the "Status ... Check Resource Health of a Virtual Machine that is Switched...
Read more >
Tracking Issues with Resource Health and Log Analytics
The data for resource health is also logged as records in Azure ... Azure VMs data can be overwhelming as you can login...
Read more >
Overview of Azure Health Service
Azure Service Health is a feature in Microsoft Azure that provides ... API integration; Historical health status; Resource health alerts ...
Read more >
Azure Monitor: how to check the health of Azure Services
Azure Monitor, through the service called Azure Service Health, can provide detailed information in case you experience conditions affecting ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found