Skip to content

Instantly share code, notes, and snippets.

@manualbashing
Created April 20, 2020 10:50
Show Gist options
  • Save manualbashing/72b15f9fbdcc6a37ecc40b8fcdd0e2d7 to your computer and use it in GitHub Desktop.
Save manualbashing/72b15f9fbdcc6a37ecc40b8fcdd0e2d7 to your computer and use it in GitHub Desktop.
List Blobs in Azure
const containerName = "...";
const blobService = storage.createBlobService();
blobService.listBlobsSegmented(containerName, null, function (error, results) {
if (results) {
for (var i = 0, blob; blob = results.entries[i]; i++) {
// Work with blob item .. could be page blob, block blob, etc.
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment