Accessing and Using the Azure Cloud Shell

30 minutes
  • 5 Learning Objectives

About this Hands-on Lab

This hands-on lab will introduce you to Azure Cloud Shell, a web-based virtual terminal that allows you full access to Azure PowerShell and the CLI — right from your browser. There’s nothing to install and no plugins — just scripting goodness. We’ll take a look at how to set up Cloud Shell and run a few commands in both the Azure CLI and Azure PowerShell. When we’re finished, you’ll have the knowledge necessary to run Cloud Shell in your own Azure subscription. Our key objective include configuring the Azure Cloud Shell, running sample commands in Azure CLI (PowerShell Environment), creating a Linux virtual machine using the Azure CLI (PowerShell Environment), viewing Azure resources in Azure PowerShell, and removing a Linux virtual machine using Azure PowerShell.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Configure Cloud Shell
  1. In the Azure Portal, click the Cloud Shell icon (>_) in the top right corner of the screen.
  2. In the Cloud Shell welcome menu, click PowerShell.
  3. In the storage menu, click Show advanced settings.
  4. Use the lab provided subscription. Use the existing resource group. Use the same location as your lab provided resource group. Create a new, uniquely named Storage account and a new, uniquely named File Share.
  5. Click Create storage.
Execute Azure CLI commands in the Cloud Shell
  1. Use Azure CLI commands to list the resource groups, storage accounts, virtual machines, and all resources available in our Azure subscription.
  2. Note the output.
Create a Virtual Machine Using the Azure CLI
  1. Create a virtual machine in the Bash shell, using the actual name of your lab resource group for the resource-group.
  2. Verify the creation of the virtual machine.
Run PowerShell Cmdlets in the Cloud Shell
  1. Run PowerShell Cmdlets to list resource groups, storage accounts, virtual machines, and all resources available in the lab.
  2. Note the output.
Remove the Virtual Machine
  1. Use a cmdlet to remove the virtual machine, providing the names of the virtual machine and resource group for the -Name and -ResourceGroupName parameters, respectively.
  2. Verify that the virtual machine has been deleted.

Additional Resources

Make sure you're logged into the Azure Portal to complete this lab.

When setting up the Azure Cloud Shell:

  1. In the Azure Portal, click the Cloud Shell icon (>_) in the top right corner of the screen.
  2. In the Cloud Shell welcome menu, click PowerShell.
  3. In the storage menu, click Show advanced settings.
  4. Use the lab provided Subscription. Use the existing Resource group. Use the same location as your lab provided Resource Group. Create a new, uniquely named Storage account, and a new, uniquely named File Share.
  5. Click Create storage.

Helpful Links

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!
Thanks for reaching out!

You’ll hear from us shortly. In the meantime, why not check out what our customers have to say about ACG?