Thanks for reaching out to Q&A.
If you have a query and running the query needs to be automated. You can run the query via powershell and there are multiple options available run the powershell script in Azure (Functions,runbook etc). This way you can automate the manual efforts of running the query.
Azure resource graph provides support for other languages as well to run the query: https://learn.microsoft.com/en-us/azure/governance/resource-graph/first-query-dotnet