Skip to content

Commit 3a0a869

Browse files
authored
Merge pull request #278638 from mbifeld/docs-editor/persisting-shell-storage-1718763417
Remove clouddrive mount command from docs
2 parents f01724b + 3b79ee2 commit 3a0a869

File tree

1 file changed

+4
-49
lines changed

1 file changed

+4
-49
lines changed

articles/cloud-shell/persisting-shell-storage.md

Lines changed: 4 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -56,62 +56,17 @@ If you want to disallow users from creating storage accounts in Cloud Shell, cre
5656

5757
## Managing Cloud Shell storage
5858

59-
### Use the `clouddrive` command
60-
61-
Cloud Shell includes a command-line tool that enables you to change the Azure Files share that's in
62-
Cloud Shell. Run `clouddrive` to see the available commands.
63-
64-
```Output
65-
Group
66-
clouddrive :Manage storage settings for Azure Cloud Shell.
67-
68-
Commands
69-
mount :Mount a file share to Cloud Shell.
70-
unmount :Unmount a file share from Cloud Shell.
71-
```
72-
7359
### Mount a new clouddrive
7460

75-
Use the `clouddrive mount` command to change the share used by Cloud Shell.
61+
If you have previously selected to use ephemeral sessions for Cloud Shell, then you must reset your
62+
preferences by selecting **Settings** > **Reset User Settings** in Cloud Shell. Follow the steps to
63+
mount an [existing storage account][04] or a [new storage account][05].
64+
7665

7766
> [!NOTE]
7867
> If you're mounting a new share, a new user image is created for your `$HOME` directory. Your
7968
> previous `$HOME` image is kept in the previous file share.
8069
81-
Run the `clouddrive mount` command with the following parameters:
82-
83-
```bash
84-
clouddrive mount -s mySubscription -g myRG -n storageAccountName -f fileShareName
85-
```
86-
87-
For more information, run `clouddrive mount -h`.
88-
89-
```Output
90-
Command
91-
clouddrive mount :Mount an Azure file share to Cloud Shell.
92-
93-
Mount enables mounting and associating an Azure file share to Cloud Shell.
94-
Cloud Shell will automatically attach this file share on each session start-up.
95-
96-
Note: This command does not mount storage if the session is Ephemeral.
97-
98-
Cloud Shell persists files with both methods below:
99-
1. Create a disk image of your $HOME directory to persist files within $HOME.
100-
This disk image is saved in your specified file share as 'acc_sean.img'' at
101-
'//<storageaccount>.file.storage.windows.net/<fileshare>/.cloudconsole/acc_sean.img'
102-
2. Mount specified file share as 'clouddrive' in $HOME for file sharing.
103-
'/home/sean/clouddrive' maps to '//<storageaccount>.file.storage.windows.net/<fileshare>'
104-
105-
Arguments
106-
-s | --subscription id [Required]:Subscription ID or name.
107-
-g | --resource-group group [Required]:Resource group name.
108-
-n | --storage-account name [Required]:Storage account name.
109-
-f | --file-share name [Required]:File share name.
110-
-d | --disk-size size :Disk size in GB. (default 5)
111-
-F | --force :Skip warning prompts.
112-
-? | -h | --help :Shows this usage text.
113-
```
114-
11570
### Unmount clouddrive
11671

11772
You can unmount a Cloud Shell file share at any time. Since Cloud Shell requires a mounted file

0 commit comments

Comments
 (0)