Forum Discussion
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!
- Justin LukMicrosoft
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!
- Miguel LobatoIron ContributorThis had solved it! thank you very much!
- DaniMartMSMicrosoftGlad it`s working now, Miguel :) Looking forward to see your use cases and how you`re using Cloud Shell on your next posts!
- Yadder CamachoMicrosoft
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-CloudDriveAnd 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
- Justin LukMicrosoft
Hey, sorry for the trouble could you provide some more info:
1. Could you confirm if you are using Bash or PowerShell in Cloud Shell?
Currently PowerShell in Cloud Shell uses a different syntax so instead of `clouddrive unmount` run `Dismount-clouddrive`
- vasun76Copper 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.
- falk0069Copper 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.
- DaniMartMSMicrosoftSander van de Velde, you`ve been playing with the Cloud Shell. Have you seen this error?
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
Thanks! clouddrive unmount did trick
- AbdulazeezHammedCopper ContributorThe Azure files must reside in the same region as the Cloud Shell machine that you're mounting them to
- HarshulCopper ContributorHi 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.