Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

azure-batch

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-batch

Microsoft Azure Batch Service Client Library for node

  • 9.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
decreased by-1.76%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 02 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc