Skip to content

Commit d7560cd

Browse files
authored
Merge pull request #224419 from tamram/tamram23-0118
addressing GitHub issues: 68285
2 parents 599cb1a + 7ec9cf4 commit d7560cd

7 files changed

+57
-12
lines changed

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

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ author: pauljewellmsft
66

77
ms.service: storage
88
ms.topic: how-to
9-
ms.date: 05/10/2022
9+
ms.date: 01/19/2023
1010
ms.author: pauljewell
1111
ms.reviewer: nachakra
1212
ms.subservice: blobs
1313
ms.devlang: csharp
14-
ms.custom: devx-track-csharp
14+
ms.custom: devx-track-csharp, engagement-fy23
1515
---
1616

1717
# Create a service SAS for a container or blob
@@ -26,7 +26,26 @@ The following code example creates a SAS for a container. If the name of an exis
2626

2727
### [.NET v12 SDK](#tab/dotnet)
2828

29-
A service SAS is signed with the account access key. Use the [StorageSharedKeyCredential](/dotnet/api/azure.storage.storagesharedkeycredential) class to create the credential that is used to sign the SAS. Next, create a new [BlobSasBuilder](/dotnet/api/azure.storage.sas.blobsasbuilder) object and call the [ToSasQueryParameters](/dotnet/api/azure.storage.sas.blobsasbuilder.tosasqueryparameters) to get the SAS token string.
29+
A service SAS is signed with the account access key. Use the [StorageSharedKeyCredential](/dotnet/api/azure.storage.storagesharedkeycredential) class to create the credential that is used to sign the SAS.
30+
31+
In the following example, populate the constants with your account name, account key, and container name:
32+
33+
```csharp
34+
const string AccountName = "<account-name>";
35+
const string AccountKey = "<account-key>";
36+
const string ContainerName = "<container-name>";
37+
38+
Uri blobContainerUri = new(string.Format("https://{0}.blob.core.windows.net/{1}",
39+
AccountName, ContainerName));
40+
41+
StorageSharedKeyCredential storageSharedKeyCredential =
42+
new(AccountName, AccountKey);
43+
44+
BlobContainerClient blobContainerClient =
45+
new(blobContainerUri, storageSharedKeyCredential);
46+
```
47+
48+
Next, create a new [BlobSasBuilder](/dotnet/api/azure.storage.sas.blobsasbuilder) object and call the [ToSasQueryParameters](/dotnet/api/azure.storage.sas.blobsasbuilder.tosasqueryparameters) to get the SAS token string.
3049

3150
:::code language="csharp" source="~/azure-storage-snippets/blobs/howto/dotnet/dotnet-v12/Sas.cs" id="Snippet_GetServiceSasUriForContainer":::
3251

@@ -93,7 +112,26 @@ The following code example creates a SAS on a blob. If the name of an existing s
93112

94113
# [.NET v12 SDK](#tab/dotnet)
95114

96-
A service SAS is signed with the account access key. Use the [StorageSharedKeyCredential](/dotnet/api/azure.storage.storagesharedkeycredential) class to create the credential that is used to sign the SAS. Next, create a new [BlobSasBuilder](/dotnet/api/azure.storage.sas.blobsasbuilder) object and call the [ToSasQueryParameters](/dotnet/api/azure.storage.sas.blobsasbuilder.tosasqueryparameters) to get the SAS token string.
115+
A service SAS is signed with the account access key. Use the [StorageSharedKeyCredential](/dotnet/api/azure.storage.storagesharedkeycredential) class to create the credential that is used to sign the SAS.
116+
117+
In the following example, populate the constants with your account name, account key, and container name:
118+
119+
```csharp
120+
const string AccountName = "<account-name>";
121+
const string AccountKey = "<account-key>";
122+
const string ContainerName = "<container-name>";
123+
124+
Uri blobContainerUri = new(string.Format("https://{0}.blob.core.windows.net/{1}",
125+
AccountName, ContainerName));
126+
127+
StorageSharedKeyCredential storageSharedKeyCredential =
128+
new(AccountName, AccountKey);
129+
130+
BlobContainerClient blobContainerClient =
131+
new(blobContainerUri, storageSharedKeyCredential);
132+
```
133+
134+
Next, create a new [BlobSasBuilder](/dotnet/api/azure.storage.sas.blobsasbuilder) object and call the [ToSasQueryParameters](/dotnet/api/azure.storage.sas.blobsasbuilder.tosasqueryparameters) to get the SAS token string.
97135

98136
:::code language="csharp" source="~/azure-storage-snippets/blobs/howto/dotnet/dotnet-v12/Sas.cs" id="Snippet_GetServiceSasUriForBlob":::
99137

articles/storage/blobs/storage-blob-copy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
title: Copy a blob with .NET
33
titleSuffix: Azure Storage
44
description: Learn how to copy a blob in Azure Storage by using the .NET client library.
5-
services: storage
65
author: pauljewellmsft
6+
77
ms.author: pauljewell
88
ms.date: 03/28/2022
99
ms.service: storage

articles/storage/blobs/storage-quickstart-blobs-python.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
22
title: "Quickstart: Azure Blob Storage client library for Python"
3+
titleSuffix: Azure Storage
34
description: In this quickstart, you learn how to use the Azure Blob Storage client library for Python to create a container and a blob in Blob (object) storage. Next, you learn how to download the blob to your local computer, and how to list all of the blobs in a container.
45
author: pauljewellmsft
6+
57
ms.author: pauljewell
68
ms.date: 10/24/2022
79
ms.topic: quickstart

articles/storage/common/storage-samples-python.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
22
title: Azure Storage samples using Python
3+
titleSuffix: Azure Storage
34
description: View, download, and run sample code and applications for Azure Storage. Discover getting started samples for blobs, queues, tables, and files, using the Python storage client libraries.
45
author: pauljewellmsft
6+
57
ms.author: pauljewell
68
ms.date: 12/21/2022
79
ms.service: storage

articles/storage/files/storage-python-how-to-use-file-storage.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
22
title: Develop for Azure Files with Python
3+
titleSuffix: Azure Storage
34
description: Learn how to develop Python applications and services that use Azure Files to store file data.
4-
author: khdownie
5+
author: pauljewellmsft
56

67
ms.service: storage
78
ms.topic: how-to
89
ms.date: 10/08/2020
9-
ms.author: kendownie
10+
ms.author: pauljewell
1011
ms.subservice: files
1112
ms.custom: devx-track-python, py-fresh-zinc
1213
---

articles/storage/queues/storage-python-how-to-use-queue-storage.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
title: How to use Azure Queue Storage from Python
3+
titleSuffix: Azure Storage
34
description: Learn to use the Azure Queue Storage from Python to create and delete queues, and insert, get, and delete messages.
4-
author: normesta
5+
author: pauljewellmsft
56

6-
ms.author: normesta
7-
ms.reviewer: dineshm
8-
ms.date: 02/16/2021
7+
ms.author: pauljewell
8+
ms.date: 01/19/2023
99
ms.topic: how-to
1010
ms.service: storage
1111
ms.subservice: queues
1212
ms.devlang: quickstart
13-
ms.custom: seo-javascript-october2019, devx-track-python, py-fresh-zinc
13+
ms.custom: seo-javascript-october2019, devx-track-python, py-fresh-zinc, engagement-fy23
1414
---
1515

1616
# How to use Azure Queue Storage from Python

articles/storage/queues/storage-quickstart-queues-python.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
22
title: 'Quickstart: Azure Queue Storage client library for Python'
3+
titleSuffix: Azure Storage
34
description: Learn how to use the Azure Queue Storage client library for Python to create a queue and add messages to it. Then learn how to read and delete messages from the queue. You'll also learn how to delete a queue.
45
author: pauljewellmsft
6+
57
ms.author: pauljewell
68
ms.date: 12/14/2022
79
ms.topic: quickstart

0 commit comments

Comments
 (0)