I am trying to retrieve all image files from a virtual directory in my Azure storage account. The path of the folder (container URI) is correct but is returning
StorageException: The requested URI does not represent any resource on the server.
Pasting the URI in the browser produces
BlobNotFoundThe specified blob does not exist. RequestId:622f4500-a01e-0022-7dd0-7d9428000000 Time:2019-10-08T12:02:29.6389180Z
The URI, which is public, works fine; you can see this video by pasting the URI in your browser or clicking the Engine Video link below.
My code grabs the container, whose URI is https://batlgroupimages.blob.core.windows.net/enerteck/publicfiles/images/robson
public async Task<List<string>> GetBlobFileListAsync(CloudBlobContainer blobContainer, string customer)
{
var files = new List<string>();
BlobContinuationToken blobContinuationToken = null;
do
{
//code fails on the line below
var segments = await blobContainer.ListBlobsSegmentedAsync(null, blobContinuationToken);
blobContinuationToken = segments.ContinuationToken;
files.AddRange(segments.Results.Select(x => GetFileNameFromBlobUri(x.Uri, customer)));
} while (blobContinuationToken != null);
return files;
}
The code is failing on the var segments = await blobContainer…. code line and it is not the container that is causing the error (IMO) as you can see the container comes back with a valid URI
and the virtual folder contains files
I would love to know what I am doing wrong here.

