- Lab
- A Cloud Guru
Accessing and Using the Azure Cloud Shell
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 objectives 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.
Path Info
Table of Contents
-
Challenge
Configure Cloud Shell
- In the Azure portal, click the Cloud Shell icon (>_) in the top right corner of the screen.
- In the Cloud Shell welcome menu, click PowerShell.
- In the storage menu, click Show advanced settings.
- Use the lab-provided subscription. Use the existing resource group. Use Central US for the location. Create a new, uniquely named Storage account and a new, uniquely named File Share.
- Click Create storage.
-
Challenge
Execute Azure CLI Commands in the Cloud Shell
- Use Azure CLI commands to list the resource groups, storage accounts, virtual machines, and all resources available in our Azure subscription.
- Note the output.
-
Challenge
Create a Virtual Machine Using the Azure CLI
- Create a virtual machine in the cloud shell, using the actual name of your lab resource group for the
resource-group
. - Verify the creation of the virtual machine.
- Create a virtual machine in the cloud shell, using the actual name of your lab resource group for the
-
Challenge
Run PowerShell cmdlets in the Cloud Shell
- Run PowerShell cmdlets to list resource groups, storage accounts, virtual machines, and all resources available in the lab.
- Note the output.
-
Challenge
Remove the Virtual Machine
- 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. - Verify that the virtual machine has been deleted.
- Use a cmdlet to remove the virtual machine, providing the names of the virtual machine and resource group for the
What's a lab?
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.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.