Use Cloud Shell as your DevOps workstation

DevOps, Hands On10 minutesFree tierSteps checked 14 November 2026By Cloud Hands On

In this task you'll get a ready-made DevOps workstation in the browser.

Azure Cloud Shell is a Linux machine in your browser, already signed in to Azure, with the tools this guide uses installed: az, git, kubectl, helm, terraform, jq and an editor (code).

Choose Bash. If you mount a storage file share, your home folder is kept between sessions; in an ephemeral session it's wiped when the session ends, so keep anything precious in Git or in Azure.

Example. An engineer at SS Kaiser has a locked-down laptop with no admin rights. They do every lab from shell.azure.com instead: nothing to install, and nothing left behind on the laptop.

Before you start

You need: An Azure account. Time: 10 minutes.

Where to look

  1. shell.azure.com
  2. Bash
  3. Settings
  4. Go to Classic version / Reset user settings

Steps

  1. Open shell.azure.com (or the >_ icon in the Azure portal) and choose Bash.The first time, it asks about storage. Ephemeral is fine for these labs: state lives in Azure, code in Git.
  2. Run az account show -o table to see which subscription you're in.Every lab command runs against this subscription.
  3. Run git --version, kubectl version --client and terraform version.All three are there already.
  4. Make a folder for your work: mkdir -p ~/labs && cd ~/labs, then code notes.md to try the editor.

Commands

# Which subscription am I using?
az account show --query "{name:name, id:id}" -o table

# Switch subscription if you have more than one
az account list -o table
az account set --subscription "<name or id>"

Watch out for

Cost
Cloud Shell itself is free. A storage account for a persistent home folder costs pennies a month.
Security
Cloud Shell is signed in as you, with all your rights. Don't paste commands you don't understand.
Common mistakes
Leaving work only in an ephemeral session's home folder, then losing it when the session times out after about 20 minutes idle.

Clean up

Nothing to clean up. If you created a storage account for Cloud Shell, keep it or delete its resource group.

Words to know

Ephemeral session
A Cloud Shell with no storage attached: quick to start, but files are lost when it closes.
code
Cloud Shell's built-in editor: code main.tf opens a file.

Tick off each step and track your progress in the guide.

Open this task in DevOps, Hands On

Keep going