Azure Virtual Machine Run Commands REST API

REST API for executing scripts and commands on Azure Virtual Machines without requiring direct network connectivity. Useful for troubleshooting, running diagnostics, and performing administrative tasks remotely via the Azure management plane.

API entry from apis.yml

apis.yml Raw ↑
name: Azure Virtual Machine Run Commands REST API
description: REST API for executing scripts and commands on Azure Virtual Machines without requiring direct
  network connectivity. Useful for troubleshooting, running diagnostics, and performing administrative
  tasks remotely via the Azure management plane.
image: https://azure.microsoft.com/svghandler/virtual-machines/
humanURL: https://learn.microsoft.com/en-us/azure/virtual-machines/run-command-overview
baseURL: https://management.azure.com
tags:
- Diagnostics
- Run Commands
- Scripting
properties:
- type: Documentation
  url: https://learn.microsoft.com/en-us/rest/api/compute/virtual-machine-run-commands
- type: Reference
  url: https://learn.microsoft.com/en-us/rest/api/compute/virtual-machine-run-commands/list-by-virtual-machine?view=rest-compute-2025-04-01