Trying to automate reporting on managed disk properties using PS module Az.ResourceGraph and cannot get the tier, like "P10" to show up, but AZ Resource Graph Explorer shows that property in the portal?

Matthew Blessing 46 Reputation points
2021-10-28T16:40:11.257+00:00

144596-disk-resource-graph-tier.jpg

I get all my managed disks using a query in PS version 7.1.5 module az.resourcegraph (version 0.11.0) but the response does not return the $disk.properties.tier (like in the picture when pulling the same data using Azure Resource Graph Explorer). Why is this data getting truncated or omitted?

PS output: $disk.properties
provisioningState : Succeeded
diskSizeGB : 128
networkAccessPolicy : AllowAll
encryption : @{type=EncryptionAtRestWithPlatformKey}
hyperVGeneration : V1
diskSizeBytes : 137438953472
diskMBpsReadWrite : 60
diskIOPSReadWrite : 500
creationData : @{createOption=FromImage; imageReference=}
timeCreated : 6/19/2021 5:48:51 PM
diskState : Unattached
uniqueId : xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
osType : Windows

Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
574 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 33,626 Reputation points Microsoft Employee
    2021-10-28T20:07:58.33+00:00

    @Matthew Blessing
    I was able to see the tier by using the below query:

    (Search-AzGraph -Query "Resources | where type =~ 'microsoft.compute/disks' | limit 1").Data | ConvertTo-Json -Depth 100  
    

    Please try this to see if it resolves your issue.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


0 additional answers

Sort by: Most helpful