Pattern search in Azure blob file names

I am trying to search files that match my search pattern.

static void ListBlobsInFolder() {

var account = <MyStorageAccount>

var blobClient = account.CreateCloudBlobClient();

var containerName = “importcontainer”;

var folderName = “subfolder”;

var container = blobClient.GetContainerReference(containerName);

var query = container.ListBlobs(prefix: folderName, useFlatBlobListing: true, blobListingDetails: BlobListingDetails.None);

foreach(var item in query) {




This gets me the list of files present in the subfolder.

Is there a way to return the files that only match a pattern. Example I want to retrieve file names that contains “abc” in it.

Is this possible in Azure ?

submitted by /u/Prdpchinna
[link] [comments]

Leave a Reply