Skip to content

Commit 7bdc72e

Browse files
Merge pull request #231109 from whhender/patch-86
Resolving Client ID
2 parents 95f0239 + 6f5b78a commit 7bdc72e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

articles/data-lake-analytics/data-lake-analytics-manage-use-dotnet-sdk.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,15 @@ Install-Package -Id Microsoft.Azure.Graph.RBAC -Version 3.4.0-preview
4747
string subid = "<Subscription ID>"; // Subscription ID (a GUID)
4848
string tenantid = "<Tenant ID>"; // AAD tenant ID or domain. For example, "contoso.onmicrosoft.com"
4949
string rg == "<value>"; // Resource group name
50-
string clientid = "1950a258-227b-4e31-a9cf-717495945fc2"; // Sample client ID (this will work, but you should pick your own)
50+
string clientid = "abcdef01-2345-6789-0abc-def012345678"; // Sample client ID
5151
```
5252

5353
## Authentication
5454

5555
You have multiple options for logging on to Azure Data Lake Analytics. The following snippet shows an example of authentication with interactive user authentication with a pop-up.
5656

57+
For ClientID you can either use the ID of a user, or the Application (Client) ID of a [service principal](/azure/active-directory/develop/howto-create-service-principal-portal#register-an-application-with-azure-ad-and-create-a-service-principal).
58+
5759
``` csharp
5860
using System;
5961
using System.IO;
@@ -72,7 +74,7 @@ using Microsoft.Azure.Graph.RBAC;
7274
public static Program
7375
{
7476
public static string TENANT = "microsoft.onmicrosoft.com";
75-
public static string CLIENTID = "1950a258-227b-4e31-a9cf-717495945fc2";
77+
public static string CLIENTID = "abcdef01-2345-6789-0abc-def012345678";
7678
public static System.Uri ARM_TOKEN_AUDIENCE = new System.Uri( @"https://management.core.windows.net/");
7779
public static System.Uri ADL_TOKEN_AUDIENCE = new System.Uri( @"https://datalake.azure.net/" );
7880
public static System.Uri GRAPH_TOKEN_AUDIENCE = new System.Uri( @"https://graph.windows.net/" );
@@ -438,4 +440,4 @@ adlaAccountClient.ComputePolicies.CreateOrUpdate(rg, adla, "GaryMcDaniel", newPo
438440

439441
* [Overview of Microsoft Azure Data Lake Analytics](data-lake-analytics-overview.md)
440442
* [Manage Azure Data Lake Analytics using Azure portal](data-lake-analytics-manage-use-portal.md)
441-
* [Monitor and troubleshoot Azure Data Lake Analytics jobs using Azure portal](data-lake-analytics-monitor-and-troubleshoot-jobs-tutorial.md)
443+
* [Monitor and troubleshoot Azure Data Lake Analytics jobs using Azure portal](data-lake-analytics-monitor-and-troubleshoot-jobs-tutorial.md)

0 commit comments

Comments
 (0)