Open a ticket
Chat with us
BLOG Published on 2018/02/01 by Asitha De Silva in Tech-Tips

Implementing and Configuring Azure File Sync

From my previous post of Modern Day File Server with Azure File Sync, I have discussed the technology behind the Azure File Sync, benefits of integrating with the file server and capabilities of azure sync with work scenarios. Now we are going to implement it. Remember it’s still in public preview and your region might not have it, if so just change the region.

Prerequisites are simple, first, your region should support Azure File Sync and you should have a storage account in Azure. Also to test the local file sync, you should have a local file share.

Creating File Share and Storage Account

  1. Log in to the Azure portal, in More services, type Storage, and open Storage Accounts blade
  2. Click Add
  3. Fill the details in the Create storage account blade


  4. After storage account created, click the storage account. You may have to refresh the console
  5. Inside of the storage account click Files


  6. Inside the file service, click create file share plus icon, fill the file share name and the capacity. Click OK to create the file share

This will complete the prerequisites, next do the following steps

Enable File Sync

  1. Log in to the Azure portal, Click new and type “Azure File Sync


  2. Select the File Sync and Create


  3. Add a Name, Select subscription and the region to create


Configuring Sync Group

  1. Login to the Azure portal and open the previously created Azure File Sync Storage Sync Account
  2. Click Create Storage Group icon


  3. On sync group blade, type a name for the sync group and select the previously created Storage Account and Azure File Share


Configuring Local File Server to Sync

When configuring a local server to sync its data to Azure, you need to download and install the Azure File sync agent from Microsoft downloads. And before installing the agent, you need to install the Azure PowerShell and turn off the Internet Explorer Enhanced Security Configuration.

  1. Log in to the local server where you are going to sync with Azure
  2. On Server Manager select Local server
  3. Click on the Internet Explorer Enhanced Security Configuration, and turn off to both Administrators and Users




  4. If you are running windows server 2012R2, then you have to install PowerShell 5.1.*. PowerShell 5.1 is default on windows server 2016. Download and install PowerShell 5.1 from https://www.microsoft.com/en-us/download/details.aspx?id=54616

  5. Next, you have to install the Azure PowerShell on the server. follow the below article for a full description
    - https://docs.microsoft.com/en-us/powershell/azure/install-azurerm-ps?view=azurermps-5.1.1

    Install the Module - Install-Module AzureRM –AllowClobber

    Load the AzureRM module - Import-Module AzureRM

  6. Next step is to install the Azure File Sync Agent. Go to the following link and download the agent installation
    - https://www.microsoft.com/en-us/download/details.aspx?id=55988

  7. Run the installation with default settings

  8. When installation completes configuration wizard will pop open, sign in using Azure credentials

  9. Select the Azure Subscription and the previously created Resource group and storage sync service account, you need to sign in again


  10. After completing the agent installation, log in again to the Azure portal to add the server endpoint to the Sync group

  11. Open Sync group click Add Server Endpoint

  12. Select the registered server and type the path name where you need the data to be synced.

    Cloud Tiering  - This is to maintain the free space in the local file server. If you add 50% to the tiering value, when drive exceeds the specified free space, the tiering engine will kick in and delete the additional data from local drive to maintain the free space.

    Note – you cannot sync the system drive (C :)

  13. After sync completes, you can see both cloud endpoints and server endpoints are in good health

  14. To view the files that sync to Azure I’m using Microsoft storage explorer, download and install using the following link
    https://azure.microsoft.com/en-us/features/storage-explorer/

  15. After login to the correct storage account using storage explorer, you can see the files which have sync using Azure Sync


Hope this post is useful 

Cheers

Asitha De Silva

References

Microsoft TechNet, Microsoft ignite 2017 contents

Don't forget to follow us on our social networks to keep track of all the latest blog posts!

  

Asitha De Silva

Consultant Cloud Solutions

Expert in architecting and implementing cloud-based infrastructure solutions.

Newsletter

To keep up with the news and updates related to our products, make sure to subscribe to our newsletter!

Copyright © 2024 Terminalworks. All Rights Reserved