Forum Discussion
pemontto
Aug 14, 2020Brass Contributor
Kusto user-defined function for common actions
I'm looking to leverage common functions across a number of queries so we can update in one place rather than in every analytic. First question, would it be possible to have a function that just ...
mergene
Brass Contributor
Looks like the only way to create a parameterized function is to use resource templates.
https://docs.microsoft.com/en-us/azure/azure-monitor/samples/resource-manager-log-queries#parameterized-function
https://docs.microsoft.com/en-us/azure/azure-monitor/samples/resource-manager-log-queries#parameterized-function
pemontto
Aug 18, 2020Brass Contributor
mergene which aren't supported in Log Analytics yet right?
And yes, I could get the functions working in the same query but as majo01 said, never when saved as a function to use in another query.
- mergeneAug 18, 2020Brass ContributorI didn't try it but if you look at the template on the page, it uses log analytic workspaces. Azure monitor is based on log analytics as well.