Home > other >  Azure Data Explorer command activity in Azure Data Factory
Azure Data Explorer command activity in Azure Data Factory

Time:05-17

I am trying to execute the below kusto command in Azure Data explorer command activity under Azure Data Factory. It does not like multiple commands. It runs fine with each command under each activity. Is it possible to write multiple commands under one ADX command activity? I can't find the documentation or find anyone doing this. Let me know please if you have any idea how to do that in a single activity.

.create table RawEvents (Event: dynamic)

.create table RawEvents ingestion json mapping 'RawEventMapping' '[{"column":"Event","Properties":{"path":"$"}}]'

.ingest into table RawEvents ('https://kustosamplefiles.blob.core.windows.net/jsonsamplefiles/simple.json') with '{"format":"json", "ingestionMappingReference":"RawEventMapping"}'

CodePudding user response:

You could use .execute database script: https://docs.microsoft.com/en-us/azure/data-explorer/kusto/management/execute-database-script

  • Related