Skip to content

Commit b1574b3

Browse files
committed
Updating text in sdk code files for Azure AD
1 parent 08605ed commit b1574b3

4 files changed

+30
-25
lines changed

articles/storage/blobs/data-lake-storage-directory-file-acl-dotnet.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Azure Data Lake Storage Gen2 .NET SDK for files & ACLs (preview)
33
description: Use the Azure Storage client library to manage directories and file and directory access control lists (ACL) in storage accounts that has hierarchical namespace (HNS) enabled.
44
author: normesta
55
ms.service: storage
6-
ms.date: 03/18/2020
6+
ms.date: 03/20/2020
77
ms.author: normesta
88
ms.topic: article
99
ms.subservice: data-lake-storage-gen2
@@ -49,7 +49,7 @@ To use the snippets in this article, you'll need to create a [DataLakeServiceCli
4949

5050
This is the easiest way to connect to an account.
5151

52-
This example creates an instance of the [DataLakeServiceClient](https://docs.microsoft.com/dotnet/api/azure.storage.files.datalake.datalakeserviceclient?) by using an account key.
52+
This example creates a [DataLakeServiceClient](https://docs.microsoft.com/dotnet/api/azure.storage.files.datalake.datalakeserviceclient?) instance by using an account key.
5353

5454
```cs
5555
public void GetDataLakeServiceClient(ref DataLakeServiceClient dataLakeServiceClient,
@@ -67,11 +67,9 @@ public void GetDataLakeServiceClient(ref DataLakeServiceClient dataLakeServiceCl
6767

6868
### Connect by using Azure Active Directory (AD)
6969

70-
First, you'll have to configure a service principal and register your application with an Azure AD tenant. see [Acquire a token from Azure AD for authorizing requests from a client application](../common/storage-auth-aad-app.md).
70+
You can use the [Azure identity client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity) to authenticate your application with Azure AD.
7171

72-
Then, you can use the [Azure identity client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity) to authenticate your application.
73-
74-
This example uses a client ID, a client secret, and a tenant ID but there are other ways to do this. See the [Azure identity client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity) for more examples.
72+
This example creates a [DataLakeServiceClient](https://docs.microsoft.com/dotnet/api/azure.storage.files.datalake.datalakeserviceclient?) instance by using a client ID, a client secret, and a tenant ID. To get these values, see [Acquire a token from Azure AD for authorizing requests from a client application](../common/storage-auth-aad-app.md).
7573

7674
```cs
7775
public void GetDataLakeServiceClient(ref DataLakeServiceClient dataLakeServiceClient,
@@ -88,6 +86,9 @@ public void GetDataLakeServiceClient(ref DataLakeServiceClient dataLakeServiceCl
8886

8987
```
9088

89+
> [!NOTE]
90+
> For more examples, see the [Azure identity client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity) documentation..
91+
9192
## Create a file system
9293

9394
A file system acts as a container for your files. You can create one by calling the [DataLakeServiceClient.CreateFileSystem](https://docs.microsoft.com/dotnet/api/azure.storage.files.datalake.datalakeserviceclient.createfilesystemasync) method.

articles/storage/blobs/data-lake-storage-directory-file-acl-java.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Azure Data Lake Storage Gen2 Java SDK for files & ACLs (preview)
33
description: Use Azure Storage libraries for Java to manage directories and file and directory access control lists (ACL) in storage accounts that has hierarchical namespace (HNS) enabled.
44
author: normesta
55
ms.service: storage
6-
ms.date: 03/18/2020
6+
ms.date: 03/20/2020
77
ms.author: normesta
88
ms.topic: conceptual
99
ms.subservice: data-lake-storage-gen2
@@ -57,7 +57,7 @@ To use the snippets in this article, you'll need to create a **DataLakeServiceCl
5757

5858
This is the easiest way to connect to an account.
5959

60-
This example creates an instance of the **DataLakeServiceClient** by using an account key.
60+
This example creates a **DataLakeServiceClient** instance by using an account key.
6161

6262
```java
6363

@@ -78,11 +78,9 @@ static public DataLakeServiceClient GetDataLakeServiceClient
7878

7979
### Connect by using Azure Active Directory (Azure AD)
8080

81-
First, you'll have to configure a service principal and register your application with an Azure AD tenant. see [Acquire a token from Azure AD for authorizing requests from a client application](../common/storage-auth-aad-app.md).
81+
You can use the [Azure identity client library for Java](https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/identity/azure-identity) to authenticate your application with Azure AD.
8282

83-
Then, you can use the [Azure identity client library for Java](https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/identity/azure-identity) to authenticate your application.
84-
85-
This example uses a client ID, a client secret, and a tenant ID but there are other ways to do this. See the [Azure identity client library for Java](https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/identity/azure-identity)) for more examples.
83+
This example creates a **DataLakeServiceClient** instance by using a client ID, a client secret, and a tenant ID. To get these values, see [Acquire a token from Azure AD for authorizing requests from a client application](../common/storage-auth-aad-app.md).
8684

8785
```java
8886
static public DataLakeServiceClient GetDataLakeServiceClient
@@ -101,6 +99,10 @@ static public DataLakeServiceClient GetDataLakeServiceClient
10199
}
102100
```
103101

102+
> [!NOTE]
103+
> For more examples, see the [Azure identity client library for Java](https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/identity/azure-identity) documentation.
104+
105+
104106
## Create a file system
105107

106108
A file system acts as a container for your files. You can create one by calling the **DataLakeServiceClient.createFileSystem** method.

articles/storage/blobs/data-lake-storage-directory-file-acl-javascript.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Use JavaScript for files & ACLs in Azure Data Lake Storage Gen2 (preview)
33
description: Use Azure Storage Data Lake client library for JavaScript to manage directories and file and directory access control lists (ACL) in storage accounts that has hierarchical namespace (HNS) enabled.
44
author: normesta
55
ms.service: storage
6-
ms.date: 03/18/2020
6+
ms.date: 03/20/2020
77
ms.author: normesta
88
ms.topic: conceptual
99
ms.subservice: data-lake-storage-gen2
@@ -48,7 +48,7 @@ To use the snippets in this article, you'll need to create a **DataLakeServiceCl
4848

4949
This is the easiest way to connect to an account.
5050

51-
This example creates an instance of the **DataLakeServiceClient** by using an account key.
51+
This example creates a **DataLakeServiceClient** instance by using an account key.
5252

5353
```javascript
5454

@@ -65,15 +65,13 @@ function GetDataLakeServiceClient(accountName, accountKey) {
6565

6666
```
6767
> [!NOTE]
68-
> This method of authorization works only for Node.js applications. If you plan to run your code in a browser, you can authorize by using Azure Active Directory (AD). For guidance on how to do that, see the [Azure Storage File Data Lake client library for JavaScript](https://www.npmjs.com/package/@azure/storage-file-datalake) readme file.
68+
> This method of authorization works only for Node.js applications. If you plan to run your code in a browser, you can authorize by using Azure Active Directory (AD).
6969
7070
### Connect by using Azure Active Directory (AD)
7171

72-
First, you'll have to configure a service principal and register your application with an Azure AD tenant. see [Acquire a token from Azure AD for authorizing requests from a client application](../common/storage-auth-aad-app.md).
72+
You can use the [Azure identity client library for JS](https://www.npmjs.com/package/@azure/identity) to authenticate your application with Azure AD.
7373

74-
Then, you can use the [Azure identity client library for JS](https://www.npmjs.com/package/@azure/identity) to authenticate your application.
75-
76-
This example uses a client ID, a client secret, and a tenant ID but there are other ways to do this. See the [Azure identity client library for JS](https://www.npmjs.com/package/@azure/identity) for more examples.
74+
This example creates a **DataLakeServiceClient** instance by using a client ID, a client secret, and a tenant ID. To get these values, see [Acquire a token from Azure AD for authorizing requests from a client application](../common/storage-auth-aad-app.md).
7775

7876
```javascript
7977
function GetDataLakeServiceClientAD(accountName, clientID, clientSecret, tenantID) {
@@ -87,6 +85,9 @@ function GetDataLakeServiceClientAD(accountName, clientID, clientSecret, tenantI
8785
}
8886
```
8987

88+
> [!NOTE]
89+
> For more examples, see the [Azure identity client library for JS](https://www.npmjs.com/package/@azure/identity) documentation.
90+
9091
## Create a file system
9192

9293
A file system acts as a container for your files. You can create one by getting a **FileSystemClient** instance, and then calling the **FileSystemClient.Create** method.

articles/storage/blobs/data-lake-storage-directory-file-acl-python.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Azure Data Lake Storage Gen2 Python SDK for files & ACLs (preview)
33
description: Use Python manage directories and file and directory access control lists (ACL) in storage accounts that has hierarchical namespace (HNS) enabled.
44
author: normesta
55
ms.service: storage
6-
ms.date: 11/24/2019
6+
ms.date: 03/20/2020
77
ms.author: normesta
88
ms.topic: article
99
ms.subservice: data-lake-storage-gen2
@@ -50,7 +50,7 @@ To use the snippets in this article, you'll need to create a **DataLakeServiceCl
5050

5151
This is the easiest way to connect to an account.
5252

53-
This example uses an account key to create a **DataLakeServiceClient** instance that represents the storage account.
53+
This example creates a **DataLakeServiceClient** instance by using an account key.
5454

5555
```python
5656
try:
@@ -69,11 +69,9 @@ except Exception as e:
6969

7070
### Connect by using Azure Active Directory (AD)
7171

72-
First, you'll have to configure a service principal and register your application with an Azure AD tenant. see [Acquire a token from Azure AD for authorizing requests from a client application](../common/storage-auth-aad-app.md).
72+
You can use the [Azure identity client library for Python](https://pypi.org/project/azure-identity/) to authenticate your application with Azure AD.
7373

74-
Then, you can use the [Azure identity client library for Python](https://pypi.org/project/azure-identity/) to authenticate your application.
75-
76-
This example uses a client ID, a client secret, and a tenant ID but there are other ways to do this. See the [Azure identity client library for Python](https://pypi.org/project/azure-identity/) for more examples.
74+
This example creates a **DataLakeServiceClient** instance by using a client ID, a client secret, and a tenant ID. To get these values, see [Acquire a token from Azure AD for authorizing requests from a client application](../common/storage-auth-aad-app.md).
7775

7876
```python
7977
def initialize_storage_account_ad(storage_account_name, client_id, client_secret, tenant_id):
@@ -90,6 +88,9 @@ def initialize_storage_account_ad(storage_account_name, client_id, client_secret
9088
print(e)
9189
```
9290

91+
> [!NOTE]
92+
> For more examples, see the [Azure identity client library for Python](https://pypi.org/project/azure-identity/) documentation.
93+
9394
## Create a file system
9495

9596
A file system acts as a container for your files. You can create one by calling the **FileSystemDataLakeServiceClient.create_file_system** method.

0 commit comments

Comments
 (0)