Cloud shell: Warning: Failed to mount the Azure file share. Your cloud drive won't be available.

Michael Cameron 587 Reputation points
2024-07-17T08:30:13.2566667+00:00

Due to a number of limitations in my current environment I have been using cloudshell on a regular basis. Recently I keep getting this message (bash):

Warning: Failed to mount the Azure file share. Your cloud drive won't be available.

Your Cloud Shell session will be ephemeral so no files or system changes will persist beyond your current session.

Or this one (powershell):
Your Cloud Shell session will be ephemeral so no files or system changes will persist beyond your current session.

The thing is, the clouddrive shows as mounted, I can write to it and the changes are persisted. I'm just worried that sometimes they won't be and I will lose data. I have tried running clouddrive unmount then remounting both my existing file share and a new file share but still get this message. I also tried the "Reset User Settings" option but it does the same.

It is also inconsistent, it seems to appear for a long period then disappear for a long period.

Anyone else seeing this? Any suggestions for a root cause or what can be done to ensure the drive is definitely not ephemeral?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,228 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,942 questions
{count} vote