Hello @Ankit Awadhiya ,
Microsoft provides multiple SDKs for working with Azure Data Explorer:
If you want to ingest data, try Kusto.Ingest:
Microsoft.Azure.Kusto.Ingest
library is a .NET 4.7.2 library for ingesting data into your cluster.
Here is a blog post explaining how to use this SDK. It references the ingestion URL for direct or queued ingestion.
The ICslAdminProvider class you mention is part of the Kusto.Data library:
You create either a query client (
ICslQueryProvider
) or a management command provider (ICslAdminProvider
) from a connection string object pointing at the Kusto engine service
The Kusto Client SDK (Kusto.Data) exposes a programmatic API similar to ADO.NET, so using it should feel natural for users experienced with .NET. You can then issue data queries or management commands by specifying the appropriate Kusto Query Language string.
I'm not sure about your statement regarding the .purge command.
It seems this is something related to the admin provider:
using var client = KustoClientFactory.CreateCslAdminProvider(connectionStringBuilder);
var command = CslCommandGenerator.GeneratePurgeTableCommand("tableName");
using var reader = client.ExecuteControlCommand(command);
I recommend experimenting with the SDKs and some test data first.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.