Run a PowerShell Scripts From Azure Cloud Shell

In this blog post, I will show you how to run a PowerShell script directly from Azure Cloud Shell.

Cloud Shell

With Azure Cloud Shell we have to option to use two types of Shells, PowerShell or Bash.

Create a PowerShell script

To start, I will create a PowerShell script that create a VM using the following command.

New-item Create_VM.ps1

Note: Make sure you save the script under the Clouddrive directory.

You can use the built-in text editor to modify the script.

Run Script

To run the script, use the following format.


Success! You're on the list.