10.0.0 • Published 6 years ago

azure-arm-compute v10.0.0

Weekly downloads
47,897
License
MIT
Repository
github
Last release
6 years ago

Microsoft Azure SDK for Node.js - Compute Management

This project provides a Node.js package that makes it easy to manage Microsoft Azure Compute Resources. Right now it supports:

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

How to Install

npm install azure-arm-compute

How to use

Authentication, client creation and listing vm images as an example

var msRestAzure = require('ms-rest-azure');
var computeManagementClient = require('azure-arm-compute');

// Interactive Login
// It provides a url and code that needs to be copied and pasted in a browser and authenticated over there. If successful, 
// the user will get a DeviceTokenCredentials object.
msRestAzure.interactiveLogin(function(err, credentials) {
 var client = new computeManagementClient(credentials, 'your-subscription-id');
 client.virtualMachineImages.list('westus', 'MicrosoftWindowsServer', 'WindowsServer', '2012-R2-Datacenter', function(err, result, request, response) {
   if (err) console.log(err);
   console.log(result);
 });
});

Detailed Samples

  • VM Operations: A detailed sample for creating, getting, listing, powering off, restarting, deleting a vm can be found here.
  • MSI (Managed Service Identity): A sample that shows how to create a VM with Managed Service Identity can be found here.
  • Using MSI to get tokens: A sample showing how to use the SDK from a VM with MSI to get a token can be found here.

Related projects

Impressions

10.0.0

6 years ago

9.1.0

7 years ago

9.0.0

7 years ago

8.2.0

7 years ago

8.1.1

7 years ago

8.1.0

7 years ago

8.0.0

7 years ago

7.1.0

7 years ago

7.0.0

7 years ago

6.0.1

7 years ago

6.0.0

7 years ago

5.1.1

7 years ago

5.1.0

7 years ago

5.0.0

7 years ago

4.0.0

8 years ago

3.0.0-preview

8 years ago

2.0.0-preview

8 years ago

1.0.0-preview

8 years ago

0.20.0

9 years ago

0.19.1

9 years ago

0.19.0

9 years ago

0.18.1

9 years ago

0.18.0

9 years ago

0.17.0

9 years ago

0.16.1

9 years ago

0.16.0

9 years ago

0.15.0

9 years ago

0.14.2

10 years ago

0.14.1

10 years ago

0.14.0

10 years ago

0.13.0

10 years ago

0.12.0

10 years ago

0.11.0

10 years ago

0.10.1

10 years ago

0.10.0

10 years ago