Azure Shots: Run Commands in VM from Portal

Pawan Dubey
1 min readSep 11, 2020

--

Sometimes because of some issues, you can not get inside your virtual machine to check the issue. However you can run your commands from Azure Portal and check the basic stuff there. It works well with Windows and Linux machines.

To run commands, go to the VM and select Run command from Operations blade. In Linux machines you’ll see RunShellScript and in Windows it will be RunPowerShellScript and few more options.

Windows Machine
Linux Machine

Select the option to write script and here you can run the commands on the machine.

Running command on Linux machine

--

--

Pawan Dubey
Pawan Dubey

Written by Pawan Dubey

0 Followers

Exploring the universe of information technology :)

No responses yet