Skip to content

Commit 4d92d97

Browse files
authored
Merge pull request #227622 from pauljewellmsft/pauljewell-blob-tags
Update blob tags articles for consistency
2 parents 9dcde6e + 8685a53 commit 4d92d97

7 files changed

+72
-51
lines changed

articles/storage/blobs/storage-blob-tags-java.md

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,7 @@ To learn more about this feature along with known issues and limitations, see [M
2424

2525
## Set tags
2626

27-
You can set and get index tags if your code has authorized access to blob data through one of the following mechanisms:
28-
- Azure AD built-in role assigned as [Storage Blob Data Owner](../../role-based-access-control/built-in-roles.md#storage-blob-data-owner) or higher
29-
- Azure RBAC action [Microsoft.Storage/storageAccounts/blobServices/containers/blobs/tags/write](../../role-based-access-control/resource-provider-operations.md#microsoftstorage)
30-
- Shared Access Signature with permission to access the blob's tags (`t` permission)
31-
- Account key
32-
33-
For more information, see [Setting blob index tags](storage-manage-find-blobs.md#setting-blob-index-tags).
27+
[!INCLUDE [storage-dev-guide-auth-set-blob-tags](../../../includes/storage-dev-guides/storage-dev-guide-auth-set-blob-tags.md)]
3428

3529
You can set tags by using the following method:
3630

@@ -46,13 +40,7 @@ You can delete all tags by passing an empty `Map` object into the `setTags` meth
4640

4741
## Get tags
4842

49-
You can set and get index tags if your code has authorized access to blob data through one of the following mechanisms:
50-
- Azure AD built-in role assigned as [Storage Blob Data Owner](../../role-based-access-control/built-in-roles.md#storage-blob-data-owner) or higher
51-
- Azure RBAC action [Microsoft.Storage/storageAccounts/blobServices/containers/blobs/tags/read](../../role-based-access-control/resource-provider-operations.md#microsoftstorage)
52-
- Shared Access Signature with permission to access the blob's tags (`t` permission)
53-
- Account key
54-
55-
For more information, see [Getting and listing blob index tags](storage-manage-find-blobs.md#getting-and-listing-blob-index-tags).
43+
[!INCLUDE [storage-dev-guide-auth-get-blob-tags](../../../includes/storage-dev-guides/storage-dev-guide-auth-get-blob-tags.md)]
5644

5745
You can get tags by using the following method:
5846

@@ -64,13 +52,7 @@ The following example shows how to retrieve and iterate over the blob's tags:
6452

6553
## Filter and find data with blob index tags
6654

67-
You can use index tags to find and filter data if your code has authorized access to blob data through one of the following mechanisms:
68-
- Azure AD built-in role assigned as [Storage Blob Data Owner](../../role-based-access-control/built-in-roles.md#storage-blob-data-owner) or higher
69-
- Azure RBAC action [Microsoft.Storage/storageAccounts/blobServices/containers/blobs/filter/action](../../role-based-access-control/resource-provider-operations.md#microsoftstorage)
70-
- Shared Access Signature with permission to find blobs by tags (`f` permission)
71-
- Account key
72-
73-
For more information, see [Finding data using blob index tags](storage-manage-find-blobs.md#finding-data-using-blob-index-tags).
55+
[!INCLUDE [storage-dev-guide-auth-filter-blob-tags](../../../includes/storage-dev-guides/storage-dev-guide-auth-filter-blob-tags.md)]
7456

7557
> [!NOTE]
7658
> You can't use index tags to retrieve previous versions. Tags for previous versions aren't passed to the blob index engine. For more information, see [Conditions and known issues](storage-manage-find-blobs.md#conditions-and-known-issues).

articles/storage/blobs/storage-blob-tags-javascript.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ To learn more about this feature along with known issues and limitations, see [M
2424
> [!NOTE]
2525
> The examples in this article assume that you've created a [BlobServiceClient](/javascript/api/@azure/storage-blob/blobserviceclient) object by using the guidance in the [Get started with Azure Blob Storage and JavaScript](storage-blob-javascript-get-started.md) article. Blobs in Azure Storage are organized into containers. Before you can upload a blob, you must first create a container. To learn how to create a container, see [Create a container in Azure Storage with JavaScript](storage-blob-container-create.md).
2626
27-
## Set and retrieve index tags
27+
## Set tags
2828

29-
You can set and get index tags if your code has authorized access by using an account key or if your code uses a security principal that has been given the appropriate role assignments. For more information, see [Manage and find Azure Blob data with blob index tags](storage-manage-find-blobs.md).
30-
31-
#### Set tags
29+
[!INCLUDE [storage-dev-guide-auth-set-blob-tags](../../../includes/storage-dev-guides/storage-dev-guide-auth-set-blob-tags.md)]
3230

3331
To set tags at blob upload time, create a [BlobClient](storage-blob-javascript-get-started.md#create-a-blobclient-object) then use the following method:
3432

@@ -63,7 +61,9 @@ You can delete all tags by passing an empty JSON object into the setTags method.
6361
| [Manage and find Azure Blob data with blob index tags](storage-manage-find-blobs.md) |
6462
| [Set Blob Tags](/rest/api/storageservices/set-blob-tags) (REST API) |
6563

66-
#### Get tags
64+
## Get tags
65+
66+
[!INCLUDE [storage-dev-guide-auth-get-blob-tags](../../../includes/storage-dev-guides/storage-dev-guide-auth-get-blob-tags.md)]
6767

6868
To get tags, create a [BlobClient](storage-blob-javascript-get-started.md#create-a-blobclient-object) then use the following method:
6969

@@ -90,7 +90,7 @@ async function getTags(containerClient, blobName) {
9090

9191
## Filter and find data with blob index tags
9292

93-
You can use index tags to find and filter data if your code has authorized access by using an account key or if your code uses a security principal that has been given the appropriate role assignments. For more information, see [Manage and find Azure Blob data with blob index tags](storage-manage-find-blobs.md).
93+
[!INCLUDE [storage-dev-guide-auth-filter-blob-tags](../../../includes/storage-dev-guides/storage-dev-guide-auth-filter-blob-tags.md)]
9494

9595
> [!NOTE]
9696
> You can't use index tags to retrieve previous versions. Tags for previous versions aren't passed to the blob index engine. For more information, see [Conditions and known issues](storage-manage-find-blobs.md#conditions-and-known-issues).

articles/storage/blobs/storage-blob-tags-python.md

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,7 @@ To learn more about this feature along with known issues and limitations, see [M
2424

2525
## Set tags
2626

27-
You can set index tags if your code has authorized access to blob data through one of the following mechanisms:
28-
- Security principal that is assigned an Azure RBAC role with the [Microsoft.Storage/storageAccounts/blobServices/containers/blobs/tags/write](../../role-based-access-control/resource-provider-operations.md#microsoftstorage) action. The [Storage Blob Data Owner](../../role-based-access-control/built-in-roles.md#storage-blob-data-owner) is a built-in role that includes this action.
29-
- Shared Access Signature with permission to access the blob's tags (`t` permission)
30-
- Account key
31-
32-
For more information, see [Setting blob index tags](storage-manage-find-blobs.md#setting-blob-index-tags).
27+
[!INCLUDE [storage-dev-guide-auth-set-blob-tags](../../../includes/storage-dev-guides/storage-dev-guide-auth-set-blob-tags.md)]
3328

3429
You can set tags by using the following method:
3530

@@ -45,12 +40,7 @@ You can delete all tags by passing an empty `dict` object into the `set_blob_tag
4540

4641
## Get tags
4742

48-
You can get index tags if your code has authorized access to blob data through one of the following mechanisms:
49-
- Security principal that is assigned an Azure RBAC role with the [Microsoft.Storage/storageAccounts/blobServices/containers/blobs/tags/read](../../role-based-access-control/resource-provider-operations.md#microsoftstorage) action. The [Storage Blob Data Owner](../../role-based-access-control/built-in-roles.md#storage-blob-data-owner) is a built-in role that includes this action.
50-
- Shared Access Signature with permission to access the blob's tags (`t` permission)
51-
- Account key
52-
53-
For more information, see [Getting and listing blob index tags](storage-manage-find-blobs.md#getting-and-listing-blob-index-tags).
43+
[!INCLUDE [storage-dev-guide-auth-get-blob-tags](../../../includes/storage-dev-guides/storage-dev-guide-auth-get-blob-tags.md)]
5444

5545
You can get tags by using the following method:
5646

@@ -62,12 +52,7 @@ The following example shows how to retrieve and iterate over the blob's tags:
6252

6353
## Filter and find data with blob index tags
6454

65-
You can use index tags to find and filter data if your code has authorized access to blob data through one of the following mechanisms:
66-
- Security principal that is assigned an Azure RBAC role with the [Microsoft.Storage/storageAccounts/blobServices/containers/blobs/filter/action](../../role-based-access-control/resource-provider-operations.md#microsoftstorage) action. The [Storage Blob Data Owner](../../role-based-access-control/built-in-roles.md#storage-blob-data-owner) is a built-in role that includes this action.
67-
- Shared Access Signature with permission to find blobs by tags (`f` permission)
68-
- Account key
69-
70-
For more information, see [Finding data using blob index tags](storage-manage-find-blobs.md#finding-data-using-blob-index-tags).
55+
[!INCLUDE [storage-dev-guide-auth-filter-blob-tags](../../../includes/storage-dev-guides/storage-dev-guide-auth-filter-blob-tags.md)]
7156

7257
> [!NOTE]
7358
> You can't use index tags to retrieve previous versions. Tags for previous versions aren't passed to the blob index engine. For more information, see [Conditions and known issues](storage-manage-find-blobs.md#conditions-and-known-issues).

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ Blob index tags categorize data in your storage account using key-value tag attr
2121

2222
To learn more about this feature along with known issues and limitations, see [Manage and find Azure Blob data with blob index tags](storage-manage-find-blobs.md).
2323

24-
## Set and retrieve index tags
24+
## Set tags
2525

26-
You can set and get index tags if your code has authorized access by using an account key or if your code uses a security principal that has been given the appropriate role assignments. For more information, see [Manage and find Azure Blob data with blob index tags](storage-manage-find-blobs.md).
27-
28-
#### Set tags
26+
[!INCLUDE [storage-dev-guide-auth-set-blob-tags](../../../includes/storage-dev-guides/storage-dev-guide-auth-set-blob-tags.md)]
2927

3028
You can set tags by using either of the following methods:
3129

@@ -62,7 +60,9 @@ await blobClient.SetTagsAsync(noTags);
6260
| [Manage and find Azure Blob data with blob index tags](storage-manage-find-blobs.md) |
6361
| [Set Blob Tags](/rest/api/storageservices/set-blob-tags) (REST API) |
6462

65-
#### Get tags
63+
## Get tags
64+
65+
[!INCLUDE [storage-dev-guide-auth-get-blob-tags](../../../includes/storage-dev-guides/storage-dev-guide-auth-get-blob-tags.md)]
6666

6767
You can get tags by using either of the following methods:
6868

@@ -86,7 +86,7 @@ public static async Task GetTags(BlobClient blobClient)
8686

8787
## Filter and find data with blob index tags
8888

89-
You can use index tags to find and filter data if your code has authorized access by using an account key or if your code uses a security principal that has been given the appropriate role assignments. For more information, see [Manage and find Azure Blob data with blob index tags](storage-manage-find-blobs.md).
89+
[!INCLUDE [storage-dev-guide-auth-filter-blob-tags](../../../includes/storage-dev-guides/storage-dev-guide-auth-filter-blob-tags.md)]
9090

9191
> [!NOTE]
9292
> You can't use index tags to retrieve previous versions. Tags for previous versions aren't passed to the blob index engine. For more information, see [Conditions and known issues](storage-manage-find-blobs.md#conditions-and-known-issues).
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: "include file"
3+
description: "include file"
4+
services: storage
5+
author: pauljewellmsft
6+
ms.service: storage
7+
ms.topic: include
8+
ms.date: 02/16/2023
9+
ms.author: pauljewell
10+
ms.custom: include file
11+
---
12+
13+
You can use index tags to find and filter data if your code has authorized access to blob data through one of the following mechanisms:
14+
- Security principal that is assigned an Azure RBAC role with the [Microsoft.Storage/storageAccounts/blobServices/containers/blobs/filter/action](../../articles/role-based-access-control/resource-provider-operations.md#microsoftstorage) action. The [Storage Blob Data Owner](../../articles/role-based-access-control/built-in-roles.md#storage-blob-data-owner) is a built-in role that includes this action.
15+
- Shared Access Signature (SAS) with permission to filter blobs by tags (`f` permission)
16+
- Account key
17+
18+
For more information, see [Finding data using blob index tags](../../articles/storage/blobs/storage-manage-find-blobs.md#finding-data-using-blob-index-tags).
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: "include file"
3+
description: "include file"
4+
services: storage
5+
author: pauljewellmsft
6+
ms.service: storage
7+
ms.topic: include
8+
ms.date: 02/16/2023
9+
ms.author: pauljewell
10+
ms.custom: include file
11+
---
12+
13+
You can get index tags if your code has authorized access to blob data through one of the following mechanisms:
14+
- Security principal that is assigned an Azure RBAC role with the [Microsoft.Storage/storageAccounts/blobServices/containers/blobs/tags/read](../../articles/role-based-access-control/resource-provider-operations.md#microsoftstorage) action. The [Storage Blob Data Owner](../../articles/role-based-access-control/built-in-roles.md#storage-blob-data-owner) is a built-in role that includes this action.
15+
- Shared Access Signature (SAS) with permission to access the blob's tags (`t` permission)
16+
- Account key
17+
18+
For more information, see [Getting and listing blob index tags](../../articles/storage/blobs/storage-manage-find-blobs.md#getting-and-listing-blob-index-tags).
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: "include file"
3+
description: "include file"
4+
services: storage
5+
author: pauljewellmsft
6+
ms.service: storage
7+
ms.topic: include
8+
ms.date: 02/16/2023
9+
ms.author: pauljewell
10+
ms.custom: include file
11+
---
12+
13+
You can set index tags if your code has authorized access to blob data through one of the following mechanisms:
14+
- Security principal that is assigned an Azure RBAC role with the [Microsoft.Storage/storageAccounts/blobServices/containers/blobs/tags/write](../../articles/role-based-access-control/resource-provider-operations.md#microsoftstorage) action. The [Storage Blob Data Owner](../../articles/role-based-access-control/built-in-roles.md#storage-blob-data-owner) is a built-in role that includes this action.
15+
- Shared Access Signature (SAS) with permission to access the blob's tags (`t` permission)
16+
- Account key
17+
18+
For more information, see [Setting blob index tags](../../articles/storage/blobs/storage-manage-find-blobs.md#setting-blob-index-tags).

0 commit comments

Comments
 (0)