Azure virtual machine libraries


On-demand, scalable computing resources running Linux or Windows.

To get started with Azure virtual machines, see Create a Linux virtual machine with the Azure portal.

Management API

Create, configure, and scale out Windows and Linux virtual machines in Azure from your code with the management API.

Add a dependency to your Maven pom.xml file to use the management API in your project.



Create a new Linux virtual machine in a new Azure resource group.

VirtualMachine newLinuxVm = azure.virtualMachines().define(linuxVmName)


Manage virtual machines
Manage virtual networks
Create a virtual machine from a custom image
Create virtual machines across regions in parallel
Create a virtual machine scale set with a load balancer

Explore more sample Java code for Azure virtual machines you can use in your apps.