List Virtual Machines
Retrieve all virtual machines across your Azure subscriptions.Endpoint
Response
Create Virtual Machine
Provision a new Azure VM with networking resources.Endpoint
Request Parameters
Azure subscription ID where the VM will be created
Resource group name (will be created if it doesn’t exist)
Azure region (e.g.,
eastus, westeurope)Name for the virtual machine
Request Example
Response
Default Configuration
VMs are created with the following defaults:Compute Configuration
Compute Configuration
- VM Size:
Standard_B1s - Image: Ubuntu Server 18.04-LTS
- Publisher: Canonical
- Admin Username:
azureuser
Network Configuration
Network Configuration
- Virtual Network:
{vmName}-vnetwith address space10.0.0.0/16 - Subnet:
{vmName}-subnetwith prefix10.0.0.0/24 - Public IP: Static Standard SKU
- Network Interface:
{vmName}-nic
Storage Configuration
Storage Configuration
- OS Disk: Auto-created with the VM
- Auto-delete: Enabled (disk deleted with VM)
Delete Virtual Machine
Remove a VM and all associated resources.Endpoint
Request Parameters
Azure subscription ID
Resource group name
Virtual machine name to delete
Request Example
Response
Resources Deleted
The delete operation automatically removes:- Virtual machine
- OS disk
- Network interface
- Public IP address
The resource group and virtual network are not deleted to prevent accidental removal of shared resources.
Find VM by Name
Search for a specific virtual machine across all subscriptions.Internal Function
Error Handling
- 400 Bad Request
- 404 Not Found
- 500 Server Error
Code Reference
The Azure VM management implementation is located in:- Source:
backend/azure_modules/vm.py:61-161 - Dependencies: Azure SDK for Python
azure-mgmt-computeazure-mgmt-networkazure-mgmt-resource
Next Steps
VM Monitoring
Configure Azure Monitor metrics
Alert Policies
Set up alerts for Azure VMs