In this video, we are going to have a look at how to run scripts in your Azure VM by using Run Command. You can access your Azure virtual machine (VM) in multiple ways, like SSH or RDP. However, if you have issues with the RDP or SSH network configuration, the Run Command feature is another option. Run Command can run a PowerShell or shell script within an Azure VM remotely by using the VM agent. This scenario is especially useful when you need to troubleshoot operating system network configurations or user access configuration. We are going to have a look at how you can run scripts against multiple Azure virtual machines (VMs) by using PowerShell and the Invoke-AzVMRunCommand feature.

🔧 Links:

📺 Agenda:

0:00 Intro
0:45 Azure VM Run Command
1:48 Run Scripts on Azure VMs from the Azure Portal
6:02 Run Scripts using PowerShell and Cloud Shell against Azure virtual machines
9:26 Run Scripts against multiple VMs using a PowerShell script
23:54 Wrap up