How to execute .ps1 files in Windows Azure Powershell How to execute .ps1 files in Windows Azure Powershell powershell powershell

How to execute .ps1 files in Windows Azure Powershell


  1. create a file with notepad and name it test.ps1
  2. put your powershell commands in the file, e.g. Start-AzureVM -Name 'myvm' -ServiceName 'myservice'
  3. in powershell prompt, type .\test.ps1 and hit enter to run

Alternatively, in powershell ISE load test.ps1 and hit F5 to run. You can set breakpoints, step through line-by-line and check variable contents. You might be better off taking this route.