Forum Discussion

oOMelon's avatar
oOMelon
Copper Contributor
Feb 19, 2020
Solved

Create stored function with parameter

Hi,

 

As the title states... Is this possible with Log analytics now? I found this documentation: https://docs.microsoft.com/en-us/azure/kusto/management/create-alter-function

 

But when I try to run the command in Kusto it doesn't work and gives me this error: 

Query could not be parsed at '.' on line [1,0] Token: . Line: 1 Position: 0

 

Do I need to create Azure data explorer resource and run it from there? Or is this a bug in Log analytics?

 

Thanks! 🙂 

  • oOMelon  this feature isn't supported in Log Analytics yet, but is planned to be implemented in the coming months.

    Generally speaking, control commands (listed under the management section of the kusto documentation tree) are not supported in Log Analytics, it will be done in another way.

     

6 Replies

  • oOMelon  this feature isn't supported in Log Analytics yet, but is planned to be implemented in the coming months.

    Generally speaking, control commands (listed under the management section of the kusto documentation tree) are not supported in Log Analytics, it will be done in another way.

     

    • Vino55's avatar
      Vino55
      Icon for Microsoft rankMicrosoft

      Hi @Noa,

       

      Is this feature - saving function with parameter support - avaiable now?
      If not, could you please share expected timeline?

       

      Thanks.

      • Noa Kuperberg's avatar
        Noa Kuperberg
        Icon for Microsoft rankMicrosoft

        Hi Vino55,

        The feature is avaialbe, but there's no UI at this point. It be set through ARM and used in queries. See this for more details. 

Resources