azure-arm-compute10.0.0 • Public • Published
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 = ;var computeManagementClient = ;// 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;
- 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.