| description | Learn how to start using Azure Cloud Shell with persistent storage. |
|---|---|
| ms.contributor | jahelmic |
| ms.date | 01/22/2024 |
| ms.topic | how-to |
| tags | azure-resource-manager |
| title | Get started with Azure Cloud Shell using persistent storage |
The first time you start Cloud Shell you have the choice to continue with or without storage. Creating a storage account allows you to create files that are persisted across sessions. This article shows you how to start Cloud Shell with a newly created storage account for persistent file storage.
-
Sign into the Azure portal.
-
Launch Cloud Shell from the top navigation of the Azure portal.
-
The first time you start Cloud Shell you're prompted to which shell to use. Select Bash or PowerShell.
-
In the Getting started pane, select Mount storage account. Using the dropdown menu, select the subscription you want to use for Cloud Shell, then select the Apply button.
-
In the Mount storage account pane, select We will create a storage account for you. Select the Next button to create a new resource group and storage account.
-
List subscriptions you have access to.
az account listGet-AzSubscription -
Set your preferred subscription:
az account set --subscription 'my-subscription-name'Set-AzContext -Subscription <SubscriptionId>
Tip
Your subscription is remembered for future sessions using /home/<user>/.azure/azureProfile.json.
Run the following command to see a list of all Azure CLI commands.
az
Run the following command to get a list of Azure CLI commands that apply to WebApps:
az webapp --help
Run the following command to see a list of all Azure PowerShell cmdlets.
Get-Command -Module Az.*
Under Azure drive, the Get-AzCommand lists context-specific Azure commands.
Run the following commands to get a list the Azure PowerShell commands that apply to WebApps.
cd 'Azure:/My Subscription/WebApps'
Get-AzCommand


