Skip to content
Advertisement

Mapping Azure File Share in Bash Cloud Shell

Is this possible? So far I have not had much luck but I have limited Linux skills. I want to be able to map a persistent share so I can store Terraform state files that can be accessed by every person on my team. Using the PowerShell Shell, I can easily create a new psdrive to the share but you can’t run Terraform from the PowerShell Shell.

Advertisement

Answer

Maybe you can use this to share files to every person in my team.

First you should make sure every one cloud shell use the same storage account, every one will create a disk image of their $Home directory to persist all contents within the directory, like this:enter image description here

Then upload files to that file share, like this: enter image description here

Check files in cloud shell:
From user1:
enter image description here

From user2:
enter image description here

In this way, you can share files to all users in the same storage account.

Note:
About upload files to Azure file share via Azure portal, please refer to this article.

Upload files to this path:

enter image description here

Hope this helps.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement