PowerShell Playground

Lab Steps

lock
PowerShell Playground
Need help? Contact our support team

Here you can find the instructions for this specific Lab Step.

If you are ready for a real environment experience please start the Lab. Keep in mind that you'll need to start from the first step.

Introduction

This PowerShell playground lab provides you with a browser-based integrated development environment (IDE). The playground has an integrated PowerShell terminal and file editor with syntax highlighting for PowerShell files (.ps1 file extension). The playground runs on a Linux host so you should avoid Windows-specific PowerShell cmdlets or modules and focus on cross-platform PowerShell cmdlets and modules in addition to the PowerShell language itself.

The following instructions prepare you to connect to the playground IDE. Once connected you can explore, test, build, and play with PowerShell until the lab time expires.

 

Instructions

1. To open the lab IDE, wait for the setup to complete in the top-left corner of the lab, then click Open Development Env.:

alt

 

2. Click the Terminal menu and choose New Terminal:

alt

A PowerShell terminal will appear.

 

3. Input the following command to display the installed version of PowerShell:

Copy code
1
$psversiontable

You can now play with PowerShell in the playground!

 

Suggested Activities 

  • Read and try out topics explained in the about topics pages. For example, learn about pipelines or splatting.
  • Practice installing and using modules. Remember to limit yourself to using modules supporting Linux in the playground. You can search the PowerShell Gallery for modules. As an example, you can install the Azure Compute module with Install-Module -Name Az.Compute
  • Learn PowerShell by answering questions with PowerShell using the PSKoans module. Run the following commands and read the brief primer to start your journey:
    Copy code
    Install-Module PSKoans -Scope CurrentUser
    Show-Karma