scautomation / Azure-Inventory-Workbook

The Ultimate Azure Inventory Dashboard
142 stars 93 forks source link

Orphaned disk show ActiveSAS disk also #8

Closed aavdberg closed 2 years ago

aavdberg commented 3 years ago

It's from ASR Replica

aavdberg commented 3 years ago

Resources
| where type contains "microsoft.compute/disks" | extend diskState = tostring(properties.diskState) | where managedBy == "" and diskState != 'ActiveSAS' or diskState == 'Unattached' and diskState != 'ActiveSAS' | project id, diskState, resourceGroup, location, subscriptionId

scautomation commented 2 years ago

added in latest pull request