You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/service-health/includes/resource-health.md
+15-16Lines changed: 15 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,12 @@
1
1
---
2
-
author: davidsmatlak
3
-
ms.service: resource-graph
2
+
ms.service: service-health
4
3
ms.topic: include
5
4
ms.date: 07/07/2022
6
-
ms.author: davidsmatlak
7
-
ms.custom: generated
5
+
author: rboucher
6
+
ms.author: robb
8
7
---
9
8
10
-
### Count of virtual machines by availability state and Subscription Id
9
+
### Count of virtual machines by availability state and subscription ID
11
10
12
11
Returns the count of virtual machines (type `Microsoft.Compute/virtualMachines`) aggregated by their availability state across each of your subscriptions.
13
12
@@ -39,9 +38,9 @@ Search-AzGraph -Query "HealthResources | where type =~ 'microsoft.resourcehealth
39
38
40
39
---
41
40
42
-
### List of virtual machines and associated availability states by Resource Ids
41
+
### List of virtual machines and associated availability states by resource IDs
43
42
44
-
Returns the latest list of virtual machines (type `Microsoft.Compute/virtualMachines`) aggregated by availability state. The query also provides the associated Resource Id based on `properties.targetResourceId`, for easy debugging and mitigation. Availability states can be one of four values: Available, Unavailable, Degraded and Unknown. For more details on what each of the availability states mean, please see[Azure Resource Health overview](../../../../articles/service-health/resource-health-overview.md#health-status).
43
+
Returns the latest list of virtual machines (type `Microsoft.Compute/virtualMachines`) aggregated by availability state. The query also provides the associated Resource ID based on `properties.targetResourceId`, for easy debugging and mitigation. Availability states can be one of four values: Available, Unavailable, Degraded, and Unknown. For more details on what each of the availability states mean, go to[Azure Resource Health overview](../resource-health-overview.md#health-status).
45
44
46
45
```kusto
47
46
HealthResources
@@ -71,20 +70,20 @@ Search-AzGraph -Query "HealthResources | where type =~ 'microsoft.resourcehealth
71
70
72
71
---
73
72
74
-
### List of virtual machines by availability state and power state with Resource Ids and resource Groups
73
+
### List of virtual machines by availability state and power state with resource IDs and resource groups
75
74
76
-
Returns list of virtual machines (type `Microsoft.Compute/virtualMachines`) aggregated on their power state and availability state to provide a cohesive state of health for your virtual machines. The query also provides details on the resource group and resource Id associated with each entry for detailed visibility into your resources.
75
+
Returns list of virtual machines (type `Microsoft.Compute/virtualMachines`) aggregated on their power state and availability state to provide a cohesive state of health for your virtual machines. The query also provides details on the resource group and resource ID associated with each entry for detailed visibility into your resources.
77
76
78
77
```kusto
79
78
Resources
80
79
| where type =~ 'microsoft.compute/virtualmachines'
81
80
| project resourceGroup, Id = tolower(id), PowerState = tostring( properties.extended.instanceView.powerState.code)
82
81
| join kind=leftouter (
83
-
HealthResources
84
-
| where type =~ 'microsoft.resourcehealth/availabilitystatuses'
85
-
| where tostring(properties.targetResourceType) =~ 'microsoft.compute/virtualmachines'
@@ -111,9 +110,9 @@ Search-AzGraph -Query "Resources | where type =~ 'microsoft.compute/virtualmachi
111
110
112
111
---
113
112
114
-
### List of virtual machines that are not Available by Resource Ids
113
+
### List of virtual machines that aren't available by resource IDs
115
114
116
-
Returns the latest list of virtual machines (type `Microsoft.Compute/virtualMachines`) aggregated by their availability state. The populated list only highlights virtual machines whose availability state is not "Available" to ensure you are aware of all the concerning states your virtual machines are in. When all your virtual machines are Available, you can expect to receive no results.
115
+
Returns the latest list of virtual machines (type `Microsoft.Compute/virtualMachines`) aggregated by their availability state. The populated list only highlights virtual machines whose availability state isn't _Available_to ensure you're aware of all the concerning states your virtual machines are in. When all your virtual machines are Available, you can expect to receive no results.
# Azure Resource Graph sample queries for Azure Service Health
9
9
10
-
This page is a collection of [Azure Resource Graph](../governance/resource-graph/overview.md) sample queries for Azure Service Health. For a complete list of Azure Resource Graph samples, see [Resource Graph samples by Category](../governance/resource-graph/samples/samples-by-category.md) and [Resource Graph samples by Table](../governance/resource-graph/samples/samples-by-table.md).
10
+
This page is a collection of [Azure Resource Graph](../governance/resource-graph/overview.md) sample queries for Azure Service Health.
0 commit comments