Introduction to scripting in PowerShell

Azure PowerShell

This module introduces you to scripting with PowerShell. It introduces various concepts to help you create script files and make them as robust as possible.

Learning objectives

  • Understand how to write and run scripts.
  • Use variables and parameters to make your scripts flexible.
  • Apply flow-control logic to make intelligent decisions.
  • Add robustness to your scripts by adding error management.


  • Basic familiarity with using a command-line shell like Command Prompt or Git Bash
  • Visual Studio Code
  • Ability to install Visual Studio Code extensions
  • Ability to install software on your computer, if you're not using a Windows operating system
  • Familiarity with running commands in PowerShell