Jul 05 2023 11:45 AM - edited Jul 07 2023 06:00 AM
This is driving me absolutely insane. I have a case stmt which would be incredibly useful to reuse and yet I can't break it into an KQL custom user function!!! When I "save as" a new function, the screen gives me no options for parameters. When the created function is invoked, the UI indicates "this function expects no parameters". What in the heck is going on???
So, example from another area:
// Query that appends a question mark to a provided name parameter let nameWithQuestionMark = (name:string) { print strcat(name, " is it you?") }; let name = "John"; print nameWithQuestionMark(name);
When I save, I see a window like this:
When I try to use it I get:
nameWithQuestionMark(): function expects 0 argument(s). If the issue persists, please open a support ticket. Request id: "someguid"
EVEN when I check the regular functions here, I see the "add function" screens allow you to specify parameters?!?!?!?
https://learn.microsoft.com/en-us/azure/azure-monitor/logs/functions
Thank you for any help, there must be something simple I'm missing.
*** EDITED TO ADD
this is an app insights insights that's been migrated to workspace based. in Overview I see the workspace specified.
Jul 06 2023 01:29 AM
Jul 06 2023 05:53 AM
Jul 11 2023 06:25 AM
SolutionJul 11 2023 06:25 AM
Solution