New user image created for $Home directory when mounting new file share
-
From practice tests answer. I can't find enough of an explanation to give me any context to understand what it means.
"If you are mounting a new file share, a new user image is created for your $Home directory, but it does not overwrite the previous user image used for the previous user share. Your previous $Home image is kept in your previous file share."
-
I would need to see the question to understand the context and explain, but this is referring to using Azure File storage to persist files across sessions.
When you launch Cloud Shell, you can mount a file share to have access to files (scripts, etc)
https://docs.microsoft.com/en-us/azure/cloud-shell/persisting-shell-storage
-
The Nutex corporation has recently adopted azure. You are the azure administrator at the Nutex corp. You recently learned that not all tasks can be accomplished from the azure portal and that knowledge of the azure cli and powershell is necessary to administer azure.
Which of the following statements about azure cli is true.one of the wrong answers is "If you mount a new file share the new user image created for the $Home directory overwrites the user image used for the previous file share."
This is the explanation for the wrong answer "If you are mounting a new file share, a new user image is created for your $Home directory, but it does not overwrite the previous user image used for the previous user share. Your previous $Home image is kept in your previous file share."
And my question what user image is created? is this some form of profile?
-
The .img file is a disk image of your home directory. (Like a .vhd) This image file is saved in a file share in Azure storage. It is referred to as a "user disk image"
When you launch Cloud Shell for the first time, Azure will create an image file and store it in a file share. It is then mounted as /home/<user>/clouddrive. You can upload and download files to your user disk image.
The next time you launch Cloud Shell, this image is mounted automatically, so any files you have uploaded will be available (think scripts, SSH keys, etc.)
You can choose to create a new file share when you launch CloudShell. This will also create a new user disk image in this new file share. The previous file share and the user disk image stored in the previous file share are unaffected. They will remain and you can switch back to them if you need to.
Hope this helps!