9.0.0 • Published 4 years ago

azure-batch v9.0.0

Weekly downloads
8,962
License
MIT
Repository
github
Last release
4 years ago

uid: azure-batch summary: *content


Microsoft Azure SDK for Node.js - Batch Service

This project provides a Node.js package that makes it easy to work with Microsoft Azure Batch Service. Right now it supports:

  • Node.js version: 6.x.x or higher

Please check details on API reference documents.

How to Install

npm install azure-batch

How to use

Authentication

var batch = require('azure-batch');

//user authentication
var credentials = new batch.SharedKeyCredentials('your-account-name', 'your-account-key');

Create the BatchServiceClient

var client = new batch.ServiceClient(credentials, 'your-batch-endpoint');

List all Jobs under account

let options = {}
options.jobListOptions = { maxResults : 10 };

function loop(nextLink) {
  if (nextLink !== null && nextLink !== undefined) {
    return client.job.listNext(nextLink).then((res) => {
      console.dir(res, {depth: null, colors: true});
      return loop(res.odatanextLink);
    });
  }
  return Promise.resolve();
};


client.job.list(options).then((result) => {
  console.dir(result, {depth: null, colors: true});
}).then((result) => {
  return loop(result.odatanextLink);
}).catch((err) => {
  console.log('An error occurred.');
  console.dir(err, {depth: null, colors: true});
});

Impressions

9.0.0

4 years ago

8.0.0

5 years ago

7.0.0

5 years ago

6.0.0

5 years ago

5.0.0

5 years ago

4.1.0

5 years ago

4.0.1

6 years ago

4.0.0

6 years ago

3.2.2

6 years ago

3.2.1

6 years ago

3.2.0

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.0

7 years ago

2.2.0

7 years ago

2.1.0-preview

7 years ago

2.0.0-preview

7 years ago

1.0.0-preview

7 years ago

0.6.0

7 years ago

0.5.3

7 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago