@@ -56,62 +56,17 @@ 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
+ 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
+
76
65
77
66
> [ !NOTE]
78
67
> If you're mounting a new share, a new user image is created for your ` $HOME ` directory. Your
79
68
> previous ` $HOME ` image is kept in the previous file share.
80
69
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
-
115
70
### Unmount clouddrive
116
71
117
72
You can unmount a Cloud Shell file share at any time. Since Cloud Shell requires a mounted file
0 commit comments