- On your Microsoft Azure virtual machine, create a symbolic link to the Azure share:
- Open Notepad and create a document with this content:
net use * /delete /yes
net use \\<account.file.core.windows.net\share> /u:<Azure account> <storage account access key>
mklink /d "C:\backups" \\account.file.core.windows.net\share
where <account.file.core.windows.net\share> is your Azure file share, <Azure account> is your Azure account and <storage account access key> is the access key (password) to this account. “C:\backups” is the path on local drive the share will be linked to (you can keep it as-is).
You can copy the net use line from your file share settings in Azure portal:
- Save the file as a .bat file.
- Add this script to computer startup scripts:
- Open Local Group Policy Editor: Start -> Search -> gpedit.msc.
- Navigate to Local Group Policy -> Computer Configuration -> Windows Settings -> Scripts (Startup/Shutdown).
- Double-click on Startup.
- Choose Add:
- Click Browse and select the script created in the previous step.
- Save changes and reboot the computer. Now your Azure file share will be linked to the folder you have specified in the script (C:\Backups in this example) and thus can be accessed by this path.
- Access to the symbolic link is limited to Local System, therefore you need to change Acronis Managed Machine Service user to Local System:
- Open Windows Services: Start -> Search -> services.msc.
- Locate Acronis Managed Machine Service.
- Right-click the service and select to log on as Local System account on the Log On tab:
- Restart the service.
- Create a backup plan and select Files/folders in What to back up; then specify your symlink (C:\Backups in this example) in Items to back up:
Now you can back up your Azure file share.