Skip to content

Commit 9c65b95

Browse files
Fixed the Azure Graph query
I fixed the Azure Graph query above as it was missing the resources table and the i property in | where properties.virtualMachineScaleSet.id contains "demo" ------- cc: @fitzgeraldsteele
1 parent 378a67d commit 9c65b95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/virtual-machine-scale-sets/virtual-machine-scale-sets-orchestration-modes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ When you create a VM and add it to a Flexible scale set, you have full control o
6161
The preferred method is to use Azure Resource Graph to query for all VMs in a Virtual Machine Scale Set. Azure Resource Graph provides efficient query capabilities for Azure resources at scale across subscriptions.
6262

6363
```
64+
resources
6465
| where type =~ 'Microsoft.Compute/virtualMachines'
65-
| where properties.virtualMachineScaleSet contains "demo"
66+
| where properties.virtualMachineScaleSet.id contains "demo"
6667
| extend powerState = properties.extended.instanceView.powerState.code
6768
| project name, resourceGroup, location, powerState
6869
| order by resourceGroup desc, name desc

0 commit comments

Comments
 (0)