You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cloud-shell/persisting-shell-storage.md
+1-49Lines changed: 1 addition & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,62 +56,14 @@ If you want to disallow users from creating storage accounts in Cloud Shell, cre
56
56
57
57
## Managing Cloud Shell storage
58
58
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
-
73
59
### Mount a new clouddrive
74
60
75
-
Use the `clouddrive mount` command to change the share used by Cloud Shell.
61
+
Follow [these steps to mount an existing storage account][04] or [these steps to mount a new storage account][05]. If you have previously selected to use ephemeral sessions for Cloud Shell, then you must reset your preferences by selecting *Settings* > *Reset User Settings* in Cloud Shell.
76
62
77
63
> [!NOTE]
78
64
> If you're mounting a new share, a new user image is created for your `$HOME` directory. Your
79
65
> previous `$HOME` image is kept in the previous file share.
80
66
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
0 commit comments