Skip to content

Azure disk state using resource graph explorer #3

Answered by jesseloudon
pandimohanr asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @pandimohanr

Does this work for you to query Azure disk state?

resources
| where type == "microsoft.compute/disks"
//| where properties['diskState'] == "Attached"
| extend diskSizeGB = tostring(properties.diskSizeGB)
| extend timeCreated = tostring(properties.timeCreated)
| extend diskState = tostring(properties.diskState)
| project name,type,location,resourceGroup,diskState,diskSizeGB,timeCreated,managedBy

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jesseloudon
Comment options

@pandimohanr
Comment options

@pandimohanr
Comment options

Answer selected by jesseloudon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants