Skip to content

Commit 25b490c

Browse files
Merge pull request #242580 from pauljewellmsft/pauljewell-service-sas
Add clarification to SAS articles
2 parents da7c503 + 42626e7 commit 25b490c

4 files changed

+19
-7
lines changed

articles/storage/blobs/sas-service-create-dotnet-container.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: pauljewellmsft
66

77
ms.service: storage
88
ms.topic: how-to
9-
ms.date: 05/12/2023
9+
ms.date: 06/22/2023
1010
ms.author: pauljewell
1111
ms.reviewer: nachakra
1212
ms.subservice: blobs
@@ -34,7 +34,13 @@ The following code example shows how to create a service SAS for a container res
3434

3535
## Use a service SAS to authorize a client object
3636

37-
The following code example shows how to use the service SAS to authorize a [BlobContainerClient](/dotnet/api/azure.storage.blobs.blobcontainerclient) object. This client object can be used to perform operations on the container resource based on the permissions granted by the SAS.
37+
The following code examples show how to use the service SAS to authorize a [BlobContainerClient](/dotnet/api/azure.storage.blobs.blobcontainerclient) object. This client object can be used to perform operations on the container resource based on the permissions granted by the SAS.
38+
39+
First, create a [BlobServiceClient](/dotnet/api/azure.storage.blobs.blobserviceclient) object signed with the account access key:
40+
41+
:::code language="csharp" source="~/azure-storage-snippets/blobs/howto/dotnet/BlobDevGuideBlobs/CreateSas.cs" id="Snippet_CreateServiceClientSharedKey":::
42+
43+
Then, generate the service SAS as shown in the earlier example and use the SAS to authorize a [BlobContainerClient](/dotnet/api/azure.storage.blobs.blobcontainerclient) object:
3844

3945
:::code language="csharp" source="~/azure-storage-snippets/blobs/howto/dotnet/BlobDevGuideBlobs/CreateSas.cs" id="Snippet_UseServiceSASContainer":::
4046

articles/storage/blobs/sas-service-create-dotnet.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: pauljewellmsft
66

77
ms.service: storage
88
ms.topic: how-to
9-
ms.date: 05/12/2023
9+
ms.date: 06/22/2023
1010
ms.author: pauljewell
1111
ms.reviewer: nachakra
1212
ms.subservice: blobs
@@ -36,6 +36,12 @@ The following code example shows how to create a service SAS for a blob resource
3636

3737
The following code example shows how to use the service SAS to authorize a [BlobClient](/dotnet/api/azure.storage.blobs.blobclient) object. This client object can be used to perform operations on the blob resource based on the permissions granted by the SAS.
3838

39+
First, create a [BlobServiceClient](/dotnet/api/azure.storage.blobs.blobserviceclient) object signed with the account access key:
40+
41+
:::code language="csharp" source="~/azure-storage-snippets/blobs/howto/dotnet/BlobDevGuideBlobs/CreateSas.cs" id="Snippet_CreateServiceClientSharedKey":::
42+
43+
Then, generate the service SAS as shown in the earlier example and use the SAS to authorize a [BlobClient](/dotnet/api/azure.storage.blobs.blobclient) object:
44+
3945
:::code language="csharp" source="~/azure-storage-snippets/blobs/howto/dotnet/BlobDevGuideBlobs/CreateSas.cs" id="Snippet_UseServiceSASBlob":::
4046

4147
[!INCLUDE [storage-dev-guide-stored-access-policy](../../../includes/storage-dev-guides/storage-dev-guide-stored-access-policy.md)]

articles/storage/blobs/storage-blob-container-user-delegation-sas-create-dotnet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: pauljewellmsft
77

88
ms.service: storage
99
ms.topic: how-to
10-
ms.date: 05/11/2023
10+
ms.date: 06/22/2023
1111
ms.author: pauljewell
1212
ms.reviewer: dineshm
1313
ms.subservice: blobs
@@ -31,7 +31,7 @@ When an Azure AD security principal attempts to access blob data, that security
3131

3232
## Create a user delegation SAS for a container
3333

34-
You can also create a user delegation SAS to delegate limited access to a container resource. The following code example shows how to create a user delegation SAS for a container:
34+
Once you've obtained the user delegation key, you can create a user delegation SAS to delegate limited access to a container resource. The following code example shows how to create a user delegation SAS for a container:
3535

3636
:::code language="csharp" source="~/azure-storage-snippets/blobs/howto/dotnet/BlobDevGuideBlobs/CreateSas.cs" id="Snippet_CreateUserDelegationSASContainer":::
3737

articles/storage/blobs/storage-blob-user-delegation-sas-create-dotnet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: pauljewellmsft
77

88
ms.service: storage
99
ms.topic: how-to
10-
ms.date: 05/11/2023
10+
ms.date: 06/22/2023
1111
ms.author: pauljewell
1212
ms.reviewer: dineshm
1313
ms.subservice: blobs
@@ -31,7 +31,7 @@ When an Azure AD security principal attempts to access blob data, that security
3131

3232
## Create a user delegation SAS for a blob
3333

34-
Once you've obtained the user delegation key, you can create a user delegation SAS. The following code example shows how to create a user delegation SAS for a blob:
34+
Once you've obtained the user delegation key, you can create a user delegation SAS to delegate limited access to a blob resource. The following code example shows how to create a user delegation SAS for a blob:
3535

3636
:::code language="csharp" source="~/azure-storage-snippets/blobs/howto/dotnet/BlobDevGuideBlobs/CreateSas.cs" id="Snippet_CreateUserDelegationSASBlob":::
3737

0 commit comments

Comments
 (0)