Sep 23 2021 12:45 AM
I'm trying to get a list of all function apps and their triggers from the resource graph, but I'm not getting anywhere.
In the portal, the JSON for a function app shows the type as "Microsoft.Web/sites/functions", but when writing a resource graph query to return all resources of that type, I get no results. (and yes, I've checked for typos in my query)
Are functions just not exposed by the resource graph? Or is there a different way to query for them?
Oct 18 2021 03:20 PM - edited Oct 18 2021 03:23 PM
resources | where type =~ "microsoft.web/sites" and kind has "functionapp"
Oct 18 2021 03:21 PM - edited Oct 18 2021 03:23 PM
resources
| where type =~ "microsoft.web/sites"
| summarize count() by kind
Oct 19 2021 05:25 PM