I am trying to get a visualization of the total number of specific resource over time in Azure resource graph.
For example, in 2018 total number of application insights were 10, in 2019 total is 20 and so on.
This is the query but it has to problems: 1- It does not aggregate the total number of the resource 2- It does not accept render timechart
resources
| where type == "microsoft.insights/components"
| extend CreationDate = todatetime(properties.CreationDate)
| summarize count() by bin(CreationDate, 365d)