Forum Discussion

Miguel Lobato's avatar
Miguel Lobato
Iron Contributor
May 17, 2017

Azure Cloud Shell error

I am getting this error messagem when connecting to the 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."

 

Anyone with the same problem? 

  • Sorry you hit this bug Miguel! We're tracking this issue and should have a fix for this very soon! By chance did you delete the storage resource that was created for you when first launching Cloud Shell?

     

    Sander is correct in troubleshooting, could you:

    1. Run "clouddrive unmount"

    2. Restart Cloud Shell via restart icon or exit and relaunch

    3. You should be prompted with the storage creation dialog again

     

    Let me know if this works or not for you!

  • Sorry you hit this bug Miguel! We're tracking this issue and should have a fix for this very soon! By chance did you delete the storage resource that was created for you when first launching Cloud Shell?

     

    Sander is correct in troubleshooting, could you:

    1. Run "clouddrive unmount"

    2. Restart Cloud Shell via restart icon or exit and relaunch

    3. You should be prompted with the storage creation dialog again

     

    Let me know if this works or not for you!

      • DaniMartMS's avatar
        DaniMartMS
        Icon for Microsoft rankMicrosoft
        Glad it`s working now, Miguel :) Looking forward to see your use cases and how you`re using Cloud Shell on your next posts!
    • Yadder Camacho's avatar
      Yadder Camacho
      Icon for Microsoft rankMicrosoft

      Hello Justin!

       

      I am having a bit of an issue with such when I run  " Clouddrive unmount ", I receive the error: 

       

      Get-CloudDrive : A positional parameter cannot be found that accepts argument 'unmount'.
      At line:1 char:1
      + clouddrive unmoint
      + ~~~~~~~~~~~~~~~~~~
      + CategoryInfo : InvalidArgument: (:) [Get-CloudDrive], ParameterBindingException
      + FullyQualifiedErrorId : PositionalParameterNotFound,Get-CloudDrive

       

      And I do to receive the same error here :

       

      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.
      VERBOSE: Authenticating to Azure ...
      WARNING: Azure Authentication failed.

       

      So I am unable to use correctly The Azure Cloud Shell, 

       

      Any help is greatly recieved

    • vasun76's avatar
      vasun76
      Copper Contributor

      Justin Luk - In my case, the warning was due to the firewall settings. I had removed public access to the storage account. I kept getting only the warning (no error message) - "Your Cloud Shell session will be ephemeral so no files or system changes will persist beyond your current session". Tried the unmount command which prompted to reload/recreate the file share, but would not create the file share in the storage account and I kept getting the same warning. Removed the firewall restrictions and it fixed the issue, but now I have to dig deep to find out what is the source IP/subnet for the built-in shell before re-enabling the firewall.

       

       

      • falk0069's avatar
        falk0069
        Copper Contributor

        vasun76 did you have any luck?  The Firewall is my issue as well.  I tried adding my own IP and the IP when running 'curl http://ifconfig.me/ip' from the shell.  I still get that warning.  However, my session seems to persist and I don't lose any files, so maybe it is warning that isn't breaking anything.

    • Seems the storage is already deleted but the cloud drive is still connected.

       

      Try in the shell: "clouddrive unmount" and then refresh.

       

      See my blog for more details.

      • Deleted's avatar
        Deleted

        Thanks! clouddrive unmount did trick

  • The Azure files must reside in the same region as the Cloud Shell machine that you're mounting them to
  • Harshul's avatar
    Harshul
    Copper Contributor
    Hi Miguel,
    I am having error while running commands on Azure Cloud Shell from Microsoft Learn website.
    I deleted and recreated resource group but the same error since 1 week. can you please help? Thnx in advance.
    https://docs.microsoft.com/en-us/learn/modules/secure-and-isolate-with-nsg-and-service-endpoints/3-exercise-network-security-groups
    Command:
    rg=<resource group name>
    az group create --name $rg --location <location>

    Error:
    rg=<resource: The term 'rg=<resource' is not recognized as a name of a cmdlet, function, script file, or executable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Resources