This repository is for JavaScript (Node.js & Browser) and it contains the following SDKs:
General docs are located at https://docs.microsoft.com/en-us/azure/data-explorer/
The SDK team publishes the SDKs as npm packages:
In the repository, you will find a set of simple samples that will help you get started:
See the SDK best practices guide, which though written for the .NET SDK, applies similarly here.
The Azure Kusto SDK for is built for Node v18.x.x and above.
We gladly accept community contributions.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
For general suggestions about Microsoft Azure please use our UserVoice forum.
To use Azure SDK libraries on a website, you need to convert your code to work inside the browser. You do this using a tool called a bundler. This process takes JavaScript code written using Node.js conventions and converts it into a format that is understood by browsers. Read here for more info and examples.
The code is browser-compatible, with the main differences being that ingestFromFile accepts a Blob object and ingestFromStream accepts an ArrayBuffer. The only authentication methods available are user prompt and token provider.
Fallback version of files used in the browser, are called '*.browser.ts'.
To run a quick sample for azure-kusto-ingest we provided a webpack config which uses the file index.html which runs index.js as a script. First add to index.ts:
import {main} from "../exampleBrowser"
main().catch((e) => console.log(e));
Then run: npm run webpack