When working with Dynamics machines in Azure you might want to move database backups from one VM to another and since they are not on the same network it is i little trickier. One option is to move the file using RDP… we have a couple of issues here… large files do not work/take a long lime… your computer is tied up since you cannot shut it down or use the clip board while copying… we need another solution.
The solution is Azure File Share but we need a simple solution to use them. We will map it to a drive letter:
- To create a storage file share start by logging into the Azure Portal
- Create a new Storage account or use an existing
- Select File Service – Files
- Click + File share, give the share a name and click OK
- Go back to the Storage Account and select Access Keys
- Copy one of the access key
- Start Command Prompt and enter this command to map the drive:
net use z: \\[StorageAccountName].file.core.windows.net\[fileshare] /u[StrorageAccountName] [StorageAccountKey]
UPDATE: Do not start the command prompt as administrator
Note: You need external access on port 445 which means that this might not work from your ISP or from your company network. It does however work great from Azure
You talk about Blob but actually use an Azure File share to do the mapping….
@Jim… You are absolutely correct. Of course I mean Azure File Share. I have changed it
Thanks
/Johan
I had some issues with your command – I used the following syntax on Windows 10:
net use z: \\[StorageAccountName].file.core.windows.net\[fileshare] /user:[StrorageAccountName] [StorageAccountKey]
While this creates the Z: drive, it wasn’t visible in File Explorer. I was able to use the File Explorer / This PC / Network – Map network drive option using the [StorageAccountName].file.core.windows.net\[fileshare] for the Folder, and checking the “Connect Using different credentials” option. This passed the [StorageAccountName] as the user and I used the [StorageAccountKey] as the password. I did have to click OK twice, but I can now see it like every other drive in File Explorer.
HI…
Thanks for your comment
I think your issue is that you are running command prompt elevated. You should run it as usual
I will add this clarification to the post
Johan