user770022
user770022

Reputation: 2959

Azure Resource Graph query

How can I pull all properties for a service that are avaliable to query for?

I have a start but I would like to know everything I can list

resources

| extend type = case(

type contains 'microsoft.netapp/netappaccounts', 'NetApp Accounts',
strcat("Not Translated: ", type))

 | where isnotempty(tags)

 | where tags <> "{}"

 | project name,type,resourceGroup,subscriptionId,tags,location

Upvotes: 0

Views: 221

Answers (1)

Andreas Wendl
Andreas Wendl

Reputation: 624

Usually every Azure Resource Graph entity has a property called "properties" which contains a json with all kinds of metadata depending on the resource type. You can query the json simply by calling

creationTime=properties.CreationTime

You will probably not find all the data you are looking for there. For specific auditing data like "created by" you can query the Azure Monitor audit logs.

Upvotes: 0

Related Questions