Call a python scripts alternatively to kusto

Nguyen Huu Minh Tri (UTOP.PROD) 1 Reputation point
2022-09-07T03:02:50.013+00:00

Hello,
I have seen an instruction on Microsoft Learn that we pack the python script of code as :

Blockquote let code = ''' if 1:
...
'''
table_name
| evaluate python(typeof(*),code,...)

But i would like to ask, is there anyway which allow us to call a python file *.py, *.ipynb directly into a kusto. I plan to upload the script of code from local to Azure portal container or something like that.
I'd appreciate for any help or suggestions from you guys, thanks a lot.

Azure Data Explorer
Azure Data Explorer
An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
475 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Maxim Sergeev 6,561 Reputation points Microsoft Employee
    2022-09-07T16:54:47.143+00:00

    No, KQL doesn't have the capability to run external script invocations

    0 comments No comments

  2. HimanshuSinha-msft 19,376 Reputation points Microsoft Employee
    2022-09-07T22:06:35.577+00:00

    Hello @Nguyen Huu Minh Tri (UTOP.PROD) ,
    As @Maxim Sergeev called its not possible , but i will request you to check if you can use use azure data factory .
    They do have connectors for data explorer and also something called batch services .
    238851-image.png
    Read more about it here .
    Batch services : https://learn.microsoft.com/en-us/azure/batch/batch-technical-overview

    Please do let me if you have any queries.
    Thanks
    Himanshu


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
      • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators