Azure BLob Storage Filter by Tags/Metadata using Azure Identity in .Net

Hanumant Soft - Dev 60 Reputation points
2024-06-12T13:07:19.3466667+00:00

How to filter Azure blob storage by tags or metadata added for that blob using Azure identity
And Which role needed for this filter

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,625 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anand Prakash Yadav 7,780 Reputation points Microsoft Vendor
    2024-06-13T07:24:37.07+00:00

    Hello Hanumant Soft - Dev,

    Thank you for posting your query here!

    To filter Azure Blob Storage by tags or metadata using Azure Identity in .NET, you can utilize blob index tags. Here’s how:

    Blob Index Tags:

    Blob index tags allow you to manage and find data based on custom tags or metadata associated with blobs. You can use them to filter blobs across your entire storage account or within specific containers.

    To get started, select your storage account in the Azure portal, navigate to the Containers option under Data storage, and choose the Blob Index tags filter button within the desired container.

    Authorization:

    Your code must have authorized access to blob data through one of the following mechanisms:

    A security principal assigned an Azure RBAC role with the Microsoft.Storage/storageAccounts/blobServices/containers/blobs/filter/action action.

    Shared Access Signatures (SAS) with permission to find blobs by tags.

    For reference: https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-tags

    https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-index-how-to?tabs=azure-portal

    Do let us know if you have any further queries. I’m happy to assist you further.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Vahid Ghafarpour 20,495 Reputation points
    2024-06-13T01:03:27.1933333+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    To filter Azure Blob storage by tags or metadata, you can use blob index tags.

    https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-tags

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **

    0 comments No comments