Skip to content

Instantly share code, notes, and snippets.

@martonsereg
Created April 23, 2015 15:33
Show Gist options
  • Save martonsereg/a38153817812b99d2a8c to your computer and use it in GitHub Desktop.
Save martonsereg/a38153817812b99d2a8c to your computer and use it in GitHub Desktop.
break lease on azure blob
//export AZURE_STORAGE_ACCOUNT
//export AZURE_STORAGE_ACCESS_KEY=""
var azure = require('./node_modules/azure-storage');
var blobSvc = azure.createBlobService();
blobSvc.breakLease('<container-name>', '<blob-name>', {}, function(error, result, response){
if(!error) {
console.log(result);
} else {
console.log(error)
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment