|
1 | 1 | ---
|
2 | 2 | description: This article answers common questions and explains how to troubleshoot Cloud Shell issues.
|
3 | 3 | ms.contributor: jahelmic
|
4 |
| -ms.date: 11/08/2023 |
| 4 | +ms.date: 08/14/2024 |
5 | 5 | ms.topic: troubleshooting
|
6 | 6 | tags: azure-resource-manager
|
7 | 7 | ms.custom: has-azure-ad-ps-ref
|
@@ -60,23 +60,30 @@ your anticipated usage date.
|
60 | 60 | ### I created some files in Cloud Shell, but they're gone. What happened?
|
61 | 61 |
|
62 | 62 | The machine that provides your Cloud Shell session is temporary and is recycled after your session
|
63 |
| -is inactive for 20 minutes. Cloud Shell uses an Azure fileshare mounted to the `clouddrive` folder |
64 |
| -in your session. The fileshare contains the image file that contains your `$HOME` directory. Only |
65 |
| -files that you upload or create in the `clouddrive` folder are persisted across sessions. Any files |
66 |
| -created outside your `clouddrive` directory aren't persisted. |
| 63 | +is inactive for 20 minutes. |
67 | 64 |
|
68 |
| -Files stored in the `clouddrive` directory are visible in the Azure portal using Storage browser. |
69 |
| -However, any files created in the `$HOME` directory are stored in the image file and aren't visible |
70 |
| -in the portal. |
| 65 | +When you started Cloud Shell the first time, you were prompted to choose a storage option. |
| 66 | + |
| 67 | +- If you chose the **Mount storage account** option, Cloud Shell mounts an Azure fileshare to the |
| 68 | + `clouddrive` folder in your session. Files stored in the `clouddrive` folder are visible in the |
| 69 | + Azure portal using Storage browser. Files stored in the `clouddrive` folder persist across |
| 70 | + sessions. |
| 71 | + |
| 72 | +- If you chose the **No storage account required** option, you can only write files to your `$HOME` |
| 73 | + folder. |
| 74 | + |
| 75 | +In both scenarios, you can write files to the `$HOME` folder. However, the `$HOME` folder only |
| 76 | +exists in the Cloud Shell container image that you're currently using. Files in the `$HOME` folder |
| 77 | +aren't visible in the Storage browser and are deleted when your session ends. |
71 | 78 |
|
72 | 79 | ### I create a file in the Azure: drive, but I don't see it. What happened?
|
73 | 80 |
|
74 |
| -PowerShell users can use the `Azure:` drive to access Azure resources. The `Azure:` drive is created |
75 |
| -by a PowerShell provider that structures data as a file system drive. The `Azure:` drive is a |
76 |
| -virtual drive that doesn't allow you to create files. |
| 81 | +Cloud Shell loads a PowerShell provider for Azure that presents Azure resource data as a file system |
| 82 | +drive. PowerShell users can use the `Azure:` drive to access Azure resources. The `Azure:` drive is |
| 83 | +a virtual drive that doesn't allow you to create files. |
77 | 84 |
|
78 | 85 | Files that you create a new file using other tools, such as `vim` or `nano` while your current
|
79 |
| -location is the `Azure:` drive, are saved to your `$HOME` directory. |
| 86 | +location is the `Azure:` drive, are saved to your `$HOME` folder. |
80 | 87 |
|
81 | 88 | ### I want to install a tool in Cloud Shell that requires `sudo`. Is that possible?
|
82 | 89 |
|
|
0 commit comments