You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: data-explorer/kusto/api/connection-strings/kusto.md
+35-1Lines changed: 35 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Kusto connection strings
3
3
description: This article describes Kusto connection strings.
4
4
ms.reviewer: ygilad
5
5
ms.topic: reference
6
-
ms.date: 11/23/2025
6
+
ms.date: 11/25/2025
7
7
ms.custom: sfi-ropc-nochange
8
8
---
9
9
# Kusto connection strings
@@ -146,6 +146,9 @@ The following examples show how to set up connections using C#. For examples in
146
146
The following example shows how to set up a connection to a Kusto service using Microsoft Entra ID for federated authentication. The user is prompted for credentials, when necessary.
@@ -158,6 +161,8 @@ var kustoConnectionStringBuilder = new KustoConnectionStringBuilder(kustoUri)
158
161
The following example shows how to set up a connection to a Kusto service using Microsoft Entra ID for federated authentication and prefills the user's identity using the `userID` variable. The user is prompted for credentials, when necessary.
@@ -171,6 +176,8 @@ var kustoConnectionStringBuilder = new KustoConnectionStringBuilder(kustoUri)
171
176
The following example shows how to authenticate to a Kusto service using Microsoft Entra ID for federated authentication with an application client ID and key.
@@ -206,6 +217,8 @@ var kustoConnectionStringBuilder = new KustoConnectionStringBuilder(kustoUri)
206
217
The following example shows how to set up a connection to a Kusto service using Microsoft Entra ID with either a user access token or an application access token.
@@ -226,6 +239,8 @@ var kustoConnectionStringBuilder = new KustoConnectionStringBuilder(kustoUri)
226
239
The following example shows how to authenticate to a Kusto service using Microsoft Entra ID with a custom token provider callback. The token is invoked each time a token is required.
@@ -237,6 +252,8 @@ var kustoConnectionStringBuilder = new KustoConnectionStringBuilder(kustoUri)
237
252
The following example shows how to authenticate to a Kusto service using Microsoft Entra ID for federated authentication with an application certificate.
@@ -251,6 +268,8 @@ var kustoConnectionStringBuilder = new KustoConnectionStringBuilder(kustoUri)
251
268
The following example shows how to set up a connection to a Kusto service using Microsoft Entra ID with an application certificate thumbprint. The client attempts to load the certificate from a local store.
@@ -267,6 +287,8 @@ var kustoConnectionStringBuilder = new KustoConnectionStringBuilder(kustoUri)
267
287
The following example shows how to set up a connection to a Kusto service using Microsoft Entra ID for federated authentication. The user is prompted for credentials, when necessary.
268
288
269
289
```csharp
290
+
usingKusto.Data;
291
+
270
292
varkustoUri="serviceURI";
271
293
varauthority="contoso.com"; // Or the AAD tenant GUID
@@ -279,6 +301,8 @@ var kustoConnectionStringBuilder = new KustoConnectionStringBuilder(kustoUri)
279
301
The following example shows how to set up a connection to a Kusto service using Microsoft Entra ID for federated authentication and prefills the user's identity using the `userID` variable. The user is prompted for credentials, when necessary.
280
302
281
303
```csharp
304
+
usingKusto.Data;
305
+
282
306
varkustoUri="serviceURI";
283
307
varauthority="contoso.com"; // Or the AAD tenant GUID
@@ -292,6 +316,8 @@ var kustoConnectionStringBuilder = new KustoConnectionStringBuilder(kustoUri)
292
316
The following example shows how to authenticate to a Kusto service using Microsoft Entra ID for federated authentication with an application client ID and key.
293
317
294
318
```csharp
319
+
usingKusto.Data;
320
+
295
321
varkustoUri="serviceURI";
296
322
varappId="<appId>";
297
323
varappKey="<appKey>";
@@ -306,6 +332,8 @@ var kustoConnectionStringBuilder = new KustoConnectionStringBuilder(kustoUri)
306
332
The following example shows how to set up a connection to a Kusto service using Microsoft Entra ID with either a user access token or an application access token.
307
333
308
334
```csharp
335
+
usingKusto.Data;
336
+
309
337
varkustoUri="serviceURI";
310
338
varuserAccessToken="<userAccessToken>";
311
339
varappAccessToken="<appAccessToken>";
@@ -326,6 +354,8 @@ var kustoConnectionStringBuilder = new KustoConnectionStringBuilder(kustoUri)
326
354
The following example shows how to authenticate to a Kusto service using Microsoft Entra ID with a custom token provider callback. The token is invoked each time a token is required.
327
355
328
356
```csharp
357
+
usingKusto.Data;
358
+
329
359
varkustoUri="serviceURI";
330
360
Func<string>tokenProviderCallback; // User-defined method to retrieve the access token
@@ -337,6 +367,8 @@ var kustoConnectionStringBuilder = new KustoConnectionStringBuilder(kustoUri)
337
367
The following example shows how to authenticate to a Kusto service using Microsoft Entra ID for federated authentication with an application certificate.
338
368
339
369
```csharp
370
+
usingKusto.Data;
371
+
340
372
varkustoUri="serviceURI";
341
373
varappId="<appId>";
342
374
X509Certificate2appCert;
@@ -351,6 +383,8 @@ var kustoConnectionStringBuilder = new KustoConnectionStringBuilder(kustoUri)
351
383
The following example shows how to set up a connection to a Kusto service using Microsoft Entra ID with an application certificate thumbprint. The client attempts to load the certificate from a local store.
0 commit comments