Skip to content

Commit c4df635

Browse files
authored
Merge pull request #54076 from georgewallace/runcommand
run command updates
2 parents 16d7887 + a84fc32 commit c4df635

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

articles/virtual-machines/linux/run-command.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: automation
55
ms.service: automation
66
author: georgewallace
77
ms.author: gwallace
8-
ms.date: 06/06/2018
8+
ms.date: 10/02/2018
99
ms.topic: article
1010
manager: carmonm
1111
---
@@ -15,7 +15,7 @@ Run Command uses the VM agent to run shell scripts within an Azure Linux VM. The
1515

1616
## Benefits
1717

18-
There are multiple options that can be used to access your virtual machines. Run Command can run scripts on your virtual machines remotely using the VM agent. Run Command can be used through the Azure portal, [REST API](/rest/api/compute/virtual%20machines%20run%20commands/runcommand), [Azure CLI](/cli/azure/vm/run-command?view=azure-cli-latest#az-vm-run-command-invoke), or [PowerShell](/powershell/module/azurerm.compute/invoke-azurermvmruncommand).
18+
There are multiple options that can be used to access your virtual machines. Run Command can run scripts on your virtual machines remotely using the VM agent. Run Command can be used through the Azure portal, [REST API](/rest/api/compute/virtual%20machines%20run%20commands/runcommand), or [Azure CLI](/cli/azure/vm/run-command?view=azure-cli-latest#az-vm-run-command-invoke) for Linux VMs.
1919

2020
This capability is useful in all scenarios where you want to run a script within a virtual machines, and is one of the only ways to troubleshoot and remediate a virtual machine that doesn't have the RDP or SSH port open due to improper network or administrative user configuration.
2121

articles/virtual-machines/windows/run-command.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: automation
55
ms.service: automation
66
author: georgewallace
77
ms.author: gwallace
8-
ms.date: 06/06/2018
8+
ms.date: 10/02/2018
99
ms.topic: article
1010
manager: carmonm
1111
---
@@ -15,7 +15,7 @@ Run Command uses the VM agent to run PowerShell scripts within an Azure Windows
1515

1616
## Benefits
1717

18-
There are multiple options that can be used to access your virtual machines. Run Command can run scripts on your virtual machines remotely using the VM agent. Run Command can be used through the Azure portal, [REST API](/rest/api/compute/virtual%20machines%20run%20commands/runcommand), [Azure CLI](/cli/azure/vm/run-command?view=azure-cli-latest#az-vm-run-command-invoke), or [PowerShell](/powershell/module/azurerm.compute/invoke-azurermvmruncommand).
18+
There are multiple options that can be used to access your virtual machines. Run Command can run scripts on your virtual machines remotely using the VM agent. Run Command can be used through the Azure portal, [REST API](/rest/api/compute/virtual%20machines%20run%20commands/runcommand), or [PowerShell](/powershell/module/azurerm.compute/invoke-azurermvmruncommand) for Windows VMs.
1919

2020
This capability is useful in all scenarios where you want to run a script within a virtual machines, and is one of the only ways to troubleshoot and remediate a virtual machine that doesn't have the RDP or SSH port open due to improper network or administrative user configuration.
2121

@@ -27,6 +27,7 @@ The following restrictions apply when using Run Command:
2727
* The minimum time to run a script is about 20 seconds
2828
* Scripts run as System on Windows
2929
* One script at a time may run
30+
* Scripts that prompt for information (interactive mode) are not supported.
3031
* You cannot cancel a running script
3132
* The maximum time a script can run is 90 minutes, after which it will time out
3233
* Outbound connectivity from the VM is required to return the results of the script.

0 commit comments

Comments
 (0)