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.

Revisions

  1. Marton Sereg created this gist Apr 23, 2015.
    14 changes: 14 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    //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)
    }
    });