What you need to know
DSE recommends deciding the output-retention requirement before launching the command.
Potentially affected
This guide applies to a managed Run Command on an Azure Linux VM when a verbose diagnostic or long-running script needs a complete output record.
DSE recommendation
DSE recommends deciding the output-retention requirement before launching the command.
Source facts
Microsoft limits the output and error fields returned in managed Run Command instanceView to the final four kilobytes. The guide provides output and error blob parameters to forward complete streams to storage append blobs. Deleting a Run Command resource terminates its script if execution is still in progress. Microsoft Learn
Applicability
This guide applies to a managed Run Command on an Azure Linux VM when a verbose diagnostic or long-running script needs a complete output record.
DSE recommendation
DSE recommends deciding the output-retention requirement before launching the command. For a full transcript, configure the documented append-blob destinations and agree who can access them. Review the script for sensitive output and record the VM and command-resource identifiers with the investigation. Keep resource cleanup separate from execution monitoring, particularly when a command is still running and its evidence has not been collected.
Verification
After the controlled run, inspect the command’s execution result and the intended output destinations. Confirm that both expected streams were captured, including the beginning of the diagnostic output. Record any missing or truncated evidence explicitly. Verify that execution has finished and required output has been retained before carrying out an approved command-resource cleanup.
Official references
Review the official source
Run scripts in a Linux VM in Azure using managed Run Commands - Azure Virtual Machines | Microsoft Learn · Verified September 17, 2026
Need help applying this guidance safely?
DSE can help confirm applicability, protect service continuity, and validate the result across physical security and IT systems.
Talk with DSE