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: articles/hdinsight/hdinsight-storage-sharedaccesssignature-permissions.md
+9-12Lines changed: 9 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,9 @@ author: hrasheed-msft
5
5
ms.author: hrasheed
6
6
ms.reviewer: jasonh
7
7
ms.service: hdinsight
8
-
ms.custom: hdinsightactive
9
8
ms.topic: conceptual
10
-
ms.date: 11/13/2019
9
+
ms.custom: hdinsightactive
10
+
ms.date: 04/14/2020
11
11
---
12
12
13
13
# Use Azure Storage Shared Access Signatures to restrict access to data in HDInsight
@@ -22,8 +22,6 @@ HDInsight has full access to data in the Azure Storage accounts associated with
22
22
23
23
## Prerequisites
24
24
25
-
* An Azure subscription.
26
-
27
25
* An SSH client. For more information, see [Connect to HDInsight (Apache Hadoop) using SSH](./hdinsight-hadoop-linux-use-ssh-unix.md).
28
26
29
27
* An existing [storage container](../storage/blobs/storage-quickstart-blobs-portal.md).
@@ -200,21 +198,20 @@ Open the `SASToken.py` file and replace `storage_account_name`, `storage_account
200
198
201
199
You may need to execute `pip install --upgrade azure-storage` if you receive the error message `ImportError: No module named azure.storage`.
202
200
203
-
### Using C#
201
+
### Using C\#
204
202
205
203
1. Open the solution in Visual Studio.
206
204
207
205
2. In Solution Explorer, right-click on the **SASExample** project and select **Properties**.
208
206
209
207
3. Select **Settings** and add values for the following entries:
210
208
211
-
* StorageConnectionString: The connection string for the storage account that you want to create a stored policy and SAS for. The format should be `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=mykey` where `myaccount` is the name of your storage account and `mykey` is the key for the storage account.
212
-
213
-
* ContainerName: The container in the storage account that you want to restrict access to.
214
-
215
-
* SASPolicyName: The name to use for the stored policy to create.
216
-
217
-
* FileToUpload: The path to a file that is uploaded to the container.
209
+
|Item |Description |
210
+
|---|---|
211
+
|StorageConnectionString|The connection string for the storage account that you want to create a stored policy and SAS for. The format should be `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=mykey` where `myaccount` is the name of your storage account and `mykey` is the key for the storage account.|
212
+
|ContainerName|The container in the storage account that you want to restrict access to.|
213
+
|SASPolicyName|The name to use for the stored policy to create.|
214
+
|FileToUpload|The path to a file that is uploaded to the container.|
218
215
219
216
4. Run the project. Save the SAS policy token, storage account name, and container name. These values are used when associating the storage account with your HDInsight cluster.
0 commit comments