Azure / Azure/azure-rest-api-specs
[BUG] InstanceView does not include vmHealth which is defined in spec
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
### API Spec link
https://github.com/Azure/azure-rest-api-specs/blob/b0fc2a2389b4563d46b6a54b959b8e93d658d7de/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/virtualMachine.json
### API Spec version
2024-07-01
### Describe the bug
Hi,
according to : https://learn.microsoft.com/en-us/rest/api/compute/virtual-machines/instance-view?view=rest-compute-2024-11-04&tabs=HTTP&tryIt=true&source=docs#virtualmachineinstanceview
there should be a value returned vmHealth -- but it's not, neither for a VM where I expect positive response, nor for a VM that runs on degraded hardware where I would expect a negative response.
Greetings
Klaas
### Expected behavior
```
"vmHealth": {
"status": {
"code": "...whatever",
"displayStatus": "Ready",
"level": "Info",
"message": "...",
"time": "2024-05-21T20:15:10.7962618+00:00"
}
}
```
### Actual behavior
no vmHealth returned
### Reproduction Steps
get https://management.azure.com/subscriptions/subscription_id/resourceGroups/resource_group/providers/Microsoft.Compute/virtualMachines/vmname/instanceView?api-version=2024-07-01
and observe there is no vmHealth included in the response
### Environment
I looked via the "try now" on the docs, but I also checked instanceView output of azure-cli (with --debug). The api response does not include the vmHealth.
Contributor guide
Assessment
This issue has not been assessed yet.