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

Michael Cameron 607 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,277 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.
3,105 questions
{count} vote

Accepted answer
  1. KarishmaTiwari-MSFT 19,872 Reputation points Microsoft Employee
    2024-07-30T00:20:25.7233333+00:00

    @Michael Cameron I got the confirmation from the internal team - "The error was due to a bug where one step in the mounting process is failing but the rest of the mounting operation completed successfully. We have a fix for it that will be included in the next Cloud Shell image update."

    The image release with the fix completed on July 23rd.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Michael W. Goodman 0 Reputation points
    2024-09-04T14:38:23.6266667+00:00

    SMB channel encryption was my issue.

    AES-128-GCM had to be enabled

    having just AES-256-GCM enabled to setting to maximum security caused the clouddrive to not mount.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.