Compute

Virtual Machines

Microsoft.Compute/virtualMachines

Control plane
Supported
Data plane
Partial
API versions
33 31 stable
Ships in
Plugin Microsoft.Compute 2026.11
Plan
Standard and above

Data as of 2026-11-20

API versions

The API versions Locally supports for Microsoft.Compute/virtualMachines.

API versionStatusControl planeData plane
2026-04-01 stable Supported Partial
2026-03-01 stable Supported Partial
2025-11-01 stable Supported Partial
2025-04-01 stable Supported Partial
2024-11-01 stable Supported Partial
2024-07-01 stable Supported Partial
2024-03-01 stable Supported Partial
2023-09-01 stable Supported Partial
2023-07-01 stable Supported Partial
2023-03-01 stable Supported Partial
2022-11-01 stable Supported Partial
2022-09-04 stable Supported Partial
2022-08-01 stable Supported Partial
2022-04-04 stable Supported Partial
2022-03-01 stable Supported Partial
2021-11-01 stable Supported Partial
2021-07-01 stable Supported Partial
2021-04-01 stable Supported Partial
2021-03-01 stable Supported Partial
2020-12-01 stable Supported Partial
2020-10-01-preview preview Supported Partial
2020-06-01 stable Supported Partial
2019-12-01 stable Supported Partial
2019-07-01 stable Supported Partial
2019-03-01 stable Supported Partial
2018-10-01 stable Supported Partial
2018-06-01 stable Supported Partial
2018-04-01 stable Supported Partial
2017-12-01 stable Supported Partial
2017-03-30 stable Supported Partial
2016-04-30-preview preview Supported Partial
2016-03-30 stable Supported Partial
2015-06-15 stable Supported Partial

Note: This is generated from the latest version of the plugin (2026.11) as of 2026-11-20, and may differ in older versions. We aim to keep this information accurate and up to date; if you find something we're missing, then please let us know.

Nested resource types

The resource types nested under Microsoft.Compute/virtualMachines. Click one to see more information.

Features

  • A container per VM in Docker or Podman: Ubuntu 24.04 for Linux, and PowerShell on Linux for Windows.
  • Custom Script Extension: commandToExecute, script and fileUris, with files downloaded from Locally's Storage using a key, a SAS or the VM's managed identity.
  • Run Commands: az vm run-command invoke, and managed Run Commands with script or scriptUri, parameters, timeoutInSeconds, runAsUser on Linux, and output and error blobs.
  • cloud-init on a Linux VM's first boot, with its status in the instance view. A Windows VM's customData is written to AzureData/CustomData.bin without being run.
  • VMAccess resets the password or adds an SSH key, which locally connect then checks.
  • Managed identity: IDENTITY_ENDPOINT and MSI_ENDPOINT in the VM return tokens for its identities.
  • Power operations: stop and deallocate remove the VM's container, start brings it back, and reimage boots a fresh one that runs cloud-init again.
  • Instance view with the real power state, extension results and Run Command output.
  • Connecting with locally connect --virtual-machine: SSH for Linux, a Remote Desktop file for Windows.
  • Create-only properties can't be changed by an update, a retired VM size is refused with SkuNotAvailable, and a generalized VM can't be started.

Limitations

  • Anything written inside a VM is lost when it's stopped, deallocated, restarted or redeployed at this time.
  • Azure's predefined Run Commands, such as IPConfig, aren't available. A managed Run Command using one is refused, and az vm run-command invoke reports success without running it.
  • Boot diagnostics returns placeholder blob URLs, and the serial console and the Instance Metadata Service aren't available.
  • Connecting to a Virtual Machine using locally connect connects to an emulator rather than an actual Virtual Machine.
  • Extensions other than Custom Script and VMAccess report success without running anything. If you'd like Locally to emulate a particular Virtual Machine Extension, please open an issue.
  • Linux VMs are backed by the container image ubuntu:24.04 and Windows VMs are backed by the container image mcr.microsoft.com/powershell:lts-ubuntu-22.04, whichever image they were created from. We plan to support changing this in a future release.
  • Locally does not restrict the CPU and memory of the container to match the VM specifications, and disks aren't attached to the VM's container at this time.
  • On ARM Hosts (including Apple Silicon) the Windows Custom Script Extension and managed Run Commands on Windows VMs report success without running.

A local cloud for you and your AI agents.

Your Azure infrastructure, running on your machine. Deploy in seconds, break things freely, and ship to Azure when you're ready.