In this blog post, I will show you how to run a PowerShell script directly from Azure 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.
Note: Make sure you save the script under the Clouddrive directory.
You can use the built-in text editor to modify the script.
To run the script, use the following format.