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

azure-arm-compute

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-arm-compute

ComputeManagementClient Library with typescript type definitions for node

  • 10.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15K
increased by2.94%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Impressions

Keywords

FAQs

Package last updated on 15 Apr 2019

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