Forum Discussion
rbanks-w
Sep 23, 2021Copper Contributor
Azure Resource Graph - How to query function apps?
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?
- BrooksVCopper Contributor
resources | where type =~ "microsoft.web/sites" and kind has "functionapp"