Configure and experiment with Azure Cloud Shell
In this unit, you'll learn how to experiment with Azure Cloud Shell.
Configure the Cloud Shell
- Access the Azure portal.
- Select the Cloud Shell icon in the toolbar.
- When prompted, select PowerShell as your shell.
- In the Getting started pane, select Mount storage account to set up persistent storage, or select No storage account required for an ephemeral session.
- If mounting storage: select your subscription from the dropdown, select Apply, then select We'll create a storage account for you and follow the prompts to create a new resource group and storage account.
Experiment with Azure PowerShell
- Wait for your storage to be created and your account to be initialized.
- At the PowerShell prompt, enter
Get-AzSubscriptionto review your subscriptions. - Enter
Get-AzResourceGroupto review resource group information.
Experiment with the Bash shell
- Use the drop-down list to switch to the Bash shell and confirm your choice.
- At the Bash shell prompt, enter
az account listto review your subscriptions. Also, try tab completion. - Enter
az resource listto review resource information.
Experiment with the Cloud Editor
- To use the Cloud Editor, enter
code .. You can also select the Editor button (pencil icon) in the toolbar. - Select a file from the navigation pane; for example, .profile.
- On the editor banner, notice the selections for Settings, such as Text Size, Font, and Upload/Download files.
- Notice the ellipses (...) for Save, Close Editor, and Open File.
- After experimenting, you can close the Cloud Editor.
- Close Azure Cloud Shell.