0

I have to run kusto query for my ADX cluster to get some data from Database from my Runbook. currently rest of the commands/scripts in my runbook are in Powershell, but I am not able to find PowersShell module for Kusto query. So i was trying to use Add-Type to load Kusto types from Kusto.Data.dll. But I am not able to add types. it fails to load System.Runtime.dll and System.Data.Common.dll and some other system dll. Kindly suggest how to fix the error? do i have to copy/upload these system dlls also?

Is there any other way to read data from ADX cluster using Kusto query from Runbook?

1 Answer 1

0

It is not directly possible to use Add-type or Kusto data dlls in automation accounts. Instead, you can use Az.Kusto module as it allows querying ADX clusters by importing it into the runbook or automation account configuration.

Path: Automation account >> Shared Resources >> Modules >> Az.Kusto

Once you visit the above path, click on Add a module as shown below to add a module from PowerShell Gallery.

enter image description here

Search for the Kusto module called Az.Kusto and select the latest version release, click on select and import. It further imports the module successfully.

enter image description here

enter image description here

Reference SO worked by me for the similar issue.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.