Share via


Azure Virtual Machine Modules for JavaScript

Overview

Define, configure, and deploy new Windows and Linux virtual machines and virtual machine scale sets from your code with the Azure management modules for JavaScript. The modules let you start and stop existing virtual machines and attach or detach disks to stopped VMs in your Azure subscription.

Management package

Install the npm module

Install the Azure Compute npm module

npm install @azure/arm-compute

Samples

Examples for using this module in Node.js as well as browser applications can be found in the README for the module

Virtual machine management Description
Azure virtual machines management sample with JavaScript Demonstrates how to create, list, restart, and delete virtual machines.

For more code samples that use various Azure packages, explore the JavaScript samples.