Azure Cloud Shell is a browser-based shell experience running in the cloud to help manage your Azure resources, which is available in the Azure portal, the Azure mobile app, and in some Azure documentation topics. Use this tag when your question is specific to Cloud Shell use.
Azure Cloud Shell is a browser-based shell experience running in the cloud to help manage your Azure resources. Cloud Shell includes support for popular command-line tools and programming languages in a shell that Microsoft maintains and updates, and you can persist files with attached Azure File storage. Cloud Shell saves you the trouble of configuring and maintaining an admin machine of your own by providing a clean, ready-to-use shell experience every time from virtually anywhere. Cloud Shell is accessible from a variety of locations, including shell.azure.com.
For more information, see Azure Cloud Shell documentation.
Persisted Storage (clouddrive
)
On the first launch, Cloud Shell prompts to create a clouddrive
to persist files on your behalf. This is a one-time step and will be automatically attached for all sessions.
Cloud Shell creates three resources on your behalf for the clouddrive
:
- Resource Group named:
cloud-shell-storage-<region>
- Storage Account named:
cs-uniqueGuid
- File Share named:
cs-<user>-<domain>-com-uniqueGuid
You can also attach your own file share as a clouddrive' using the
mountcommand. Use the
unmount` command to detach a file share.
Mount:
clouddrive mount -s mySubscription -g myResourceGroup -n storageAccountName -f fileShareName [--disk-size n]
Disk size (optional) is in GB (default is 5).
Unmount:
clouddrive unmount
The file share for your unmounted clouddrive
will continue to exist unless manually deleted. Cloud Shell will no longer search for this file share on subsequent sessions.
Discover File Share
The df
command will list the file share used for your current clouddrive
.
Status
Bash in Cloud Shell generally available as of 20.11.2017. PowerShell in Cloud Shell in public preview.