I've used Azure Storage(Blobs) to store files.
Now I'm planning to migrate to Data Lake Gen2. Unfortunately, after I've switched connection string to gen2 storage it shows 400 Error with Bad Request to me on ListBlob() method.
Code example:
var storageAccount = CloudStorageAccount.Parse(connectionString);
var myClient = storageAccount.CreateCloudBlobClient();
var container = myClient.GetContainerReference(containerName);
var dirRef= container.GetDirectoryReference(directory);
var blobs = dirRef.ListBlobs();
So, when I'm trying to iterate blobs it generates an exception. Does anyone have experience with this?