Short snippet for Net Core, which allows you to get the items with the specific tag from the Azure BlobStorage. As a result, you have the AsyncPageable collection, so you need to iterate through it to process the data.


BlobServiceClient service = new BlobServiceClient(connStr);
BlobContainerClient container = service.GetBlobContainerClient(containerName);


Console.WriteLine($"== Blobs in container '{containerName}' with tag {tagName} = '{tagValue}' ==");
string expression = $"{tagName}='{tagValue}'"; // tags must be prefixed with '@'
Console.WriteLine($"Using expression: {expression}");
var data = service.FindBlobsByTagsAsync(expression);

await foreach (TaggedBlobItem item in data)
{
    Console.WriteLine($"----- Blob found: Container = {item.BlobContainerName}, Name = {item.BlobName}");
    Console.WriteLine(item.Tags[tagName]);
}