{
	"id": "a9aa19be-9366-492e-b9d3-fb87460cd333",
	"created_at": "2026-04-06T00:16:51.148523Z",
	"updated_at": "2026-04-10T03:21:26.665038Z",
	"deleted_at": null,
	"sha1_hash": "bc2bc5c346601941c909c97088b6c97ddc97a7bf",
	"title": "Run scripts in a Windows or Linux VM in Azure with Run Command - Azure Virtual Machines",
	"llm_title": "",
	"authors": "",
	"file_creation_date": "0001-01-01T00:00:00Z",
	"file_modification_date": "0001-01-01T00:00:00Z",
	"file_size": 41580,
	"plain_text": "Run scripts in a Windows or Linux VM in Azure with Run\r\nCommand - Azure Virtual Machines\r\nBy nikhilpatel909\r\nArchived: 2026-04-05 19:37:09 UTC\r\nRun scripts in your VM by using Run Command\r\nIn this article\r\n1. When to use action or managed commands\r\n2. Compare feature support\r\n3. Next steps\r\nRun Command uses the virtual machine (VM) agent to run scripts within an Azure Windows or Linux VM. You\r\ncan use these scripts for general machine or application management. They can help you to quickly diagnose and\r\nremediate VM access and network issues and get the VM back to a good state. Scripts can be embedded in the\r\nproperties or referenced to a pre published gallery script.\r\nThe original set of commands are action orientated. The updated set of commands are management orientated and\r\nenable you to run multiple scripts and has less restrictions. This article will explain the difference between the two\r\nsets of run commands and help you decide which set is the right one to use in your scenario.\r\nImportant\r\nManaged Run Command is currently available in Azure CLI, PowerShell, and API at this time. Portal\r\nfunctionality isn't currently available.\r\nWhen to use action or managed commands\r\nThe original set of commands are action orientated. You should consider using this set of commands for situations\r\nwhere you need to run:\r\nA small script to get a content from a VM\r\nA script to configure a VM (set registry keys, change configuration)\r\nA one time script for diagnostics\r\nSee Action Run Commands for Linux and Action Run Commands for Windows for available action commands\r\nand instructions on how to apply them.\r\nThe updated set of commands are management orientated. Consider using managed run commands if your needs\r\nalign to the following examples:\r\nhttps://learn.microsoft.com/en-us/azure/virtual-machines/run-command-overview\r\nPage 1 of 3\n\nScript needs to run as part of VM deployment\r\nRecurrent script execution is needed\r\nMultiple scripts needs to execute sequentially\r\nBootstrap a VM by running installation scripts\r\nPublish custom script to be shared and reused\r\nSee Managed Run Command for Linux and Managed Run Command for Windows to learn how to use them.\r\nNote\r\nThe maximum number of allowed Managed Run Commands is currently limited to 25.\r\nCompare feature support\r\nFeature support Action RunCommand Managed RunCommand\r\nARM template No, it’s a POST action Yes, it’s a resource type\r\nLong running 90 min limit Customer specified timeout\r\nExecution account System account / root Customer specified user\r\nMultiple run\r\ncommands\r\nOnly one active Multiple in parallel or sequenced\r\nLarge output Limited to 4k (in status blob) Uploaded to customer append blob\r\nProgress tracking Reports only final status\r\nReports progress and last 4k output during\r\nexecution\r\nAsync execution\r\nGoal state/provisioning waits for\r\nscript to complete\r\nCustomer specified async flag if\r\nprovisioning waits for the script\r\nVirtual machine scale\r\nset support\r\nOnly on VM instance\r\nSupport virtual machine scale set model and\r\nscale out\r\nSAS generation No blob support\r\nAutomated, CRP generates SAS for\r\ncustomer blobs and manages them\r\nGallery (custom\r\ncommands)\r\nOnly built-in commandIds Customer can publish scripts and share them\r\nNext steps\r\nGet started with Managed Run Command for Linux or Managed Run Command for Windows.\r\nAdditional resources\r\nhttps://learn.microsoft.com/en-us/azure/virtual-machines/run-command-overview\r\nPage 2 of 3\n\nTraining\r\nLast updated on 02/23/2026\r\nSource: https://learn.microsoft.com/en-us/azure/virtual-machines/run-command-overview\r\nhttps://learn.microsoft.com/en-us/azure/virtual-machines/run-command-overview\r\nPage 3 of 3",
	"extraction_quality": 1,
	"language": "EN",
	"sources": [
		"MITRE"
	],
	"references": [
		"https://learn.microsoft.com/en-us/azure/virtual-machines/run-command-overview"
	],
	"report_names": [
		"run-command-overview"
	],
	"threat_actors": [],
	"ts_created_at": 1775434611,
	"ts_updated_at": 1775791286,
	"ts_creation_date": 0,
	"ts_modification_date": 0,
	"files": {
		"pdf": "https://archive.orkl.eu/bc2bc5c346601941c909c97088b6c97ddc97a7bf.pdf",
		"text": "https://archive.orkl.eu/bc2bc5c346601941c909c97088b6c97ddc97a7bf.txt",
		"img": "https://archive.orkl.eu/bc2bc5c346601941c909c97088b6c97ddc97a7bf.jpg"
	}
}