%3CLINGO-SUB%20id%3D%22lingo-sub-1670525%22%20slang%3D%22en-US%22%3EAzure%20File%20Sync%3A%20Integration%20with%20DFS%20Namespaces%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1670525%22%20slang%3D%22en-US%22%3E%3CH2%20id%3D%22toc-hId--1265870800%22%20id%3D%22toc-hId--1265870771%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-1221642033%22%20id%3D%22toc-hId-1221642062%22%3EIntroduction%3C%2FH2%3E%0A%3CP%3EHello%20everyone%2C%20this%20is%20Andrew%20Coughlin%20and%20I%20am%20a%20Customer%20Engineer%20at%20Microsoft%20focusing%20on%20Azure%20IaaS.%20In%20this%20blog%20I%20will%20focus%20on%20a%20couple%20of%20questions%20I%20get%20quite%20often%20around%20Azure%20File%20Sync%2C%20does%20Azure%20File%20Sync%20support%20DFS-N%2C%20how%20do%20you%20set%20DFS-N%20with%20Azure%20File%20Sync%20and%20can%20I%20have%20two%20Azure%20File%20Sync%20servers%20in%20a%20DFS-N%20target%20folder.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAzure%20File%20Sync%20is%20a%20service%20that%20allows%20you%20to%20turn%20your%20on-premises%20servers%20into%20caching%20servers.%26nbsp%3B%20All%20files%20in%20the%20directory%20you%20specify%20for%20Azure%20File%20Sync%20will%20be%20copied%20to%20a%20file%20share%20in%20a%20storage%20account.%26nbsp%3B%20You%20can%20also%20enable%20a%20feature%20called%20Cloud%20Tiering%2C%20with%20this%20feature%20you%20can%20set%20which%20files%20stay%20on%20premises%20and%20which%20ones%20are%20in%20the%20cloud%20only.%26nbsp%3B%20To%20the%20end%20user%20this%20feature%20is%20seamless%2C%20and%20they%20don%E2%80%99t%20know%20if%20their%20file%20is%20on%20the%20file%20server%20or%20in%20the%20cloud.%26nbsp%3B%20%26nbsp%3BFor%20more%20information%20about%20Azure%20File%20Sync%20head%20over%20to%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Ffiles%2Fstorage-sync-files-planning%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eplanning%20for%20an%20Azure%20File%20Sync%20deployment%3C%2FA%3E%20page.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--585812430%22%20id%3D%22toc-hId--585812401%22%3EPrerequisites%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%3EShare%20the%20folders%20out%20on%20each%20server(s)%3C%2FLI%3E%0A%3CLI%3ECreate%20DFS%20Namespace%20as%20documented%20%3CA%20href%3D%22https%3A%2F%2Fmicrosoft.sharepoint.com%2Fteams%2FCIS-TechCommunity%2FShared%2520Documents%2FReview%2F%E2%80%A2%2509https%3A%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fstorage%2Fdfs-namespaces%2Fcreate-a-dfs-namespace%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1901700403%22%20id%3D%22toc-hId-1901700432%22%3EDoes%20Azure%20File%20Sync%20Support%20DFS-N%3C%2FH2%3E%0A%3CP%3EOne%20of%20the%20most%20common%20questions%20I%20receive%20is%20can%20you%20use%20Azure%20File%20Sync%20with%20Distributed%20File%20System%20Namespaces%20(DFS-N).%26nbsp%3B%20A%20lot%20of%20corporate%20customers%20use%20DFS-N%20to%20hide%20the%20backend%20file%20server.%26nbsp%3B%20This%20allows%20them%20to%20change%20the%20backend%20server%20without%20having%20impact%20to%20their%20end%20users.%20Azure%20File%20Sync%20does%20support%20DFS-N%2C%20from%20an%20interoperability%20it%20also%20supports%20Distributed%20File%20System%20Replication%20(DFS-R)%20for%20those%20customers%20looking%20to%20migrate%20away%20from%20DFS-R%20to%20Azure%20File%20Sync.%20Let%E2%80%99s%20see%20how%20we%20can%20add%20a%20share%20on%20an%20Azure%20File%20Sync%20server%20to%20DFS-N.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-94245940%22%20id%3D%22toc-hId-94245969%22%3EAdd%20Share%20under%20Azure%20File%20Sync%20to%20DFS-N%3C%2FH2%3E%0A%3CP%3EFirst%2C%20we%20will%20want%20to%20launch%20the%20DFS%20Management%20tool%20and%20connect%20to%20the%20name%20space%20if%20the%20name%20space%20doesn%E2%80%99t%20show%20up.%26nbsp%3B%20Then%20we%20will%20right%20click%20on%20the%20name%20space%20and%20click%20%E2%80%9CNew%20Folder%E2%80%9D.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AndrewCoughlin_0-1600198389331.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F218456i6B2746A32E0D9B0B%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22AndrewCoughlin_0-1600198389331.png%22%20alt%3D%22AndrewCoughlin_0-1600198389331.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENext%20you%20will%20provide%20the%20folder%20name%20and%20click%20Add.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AndrewCoughlin_1-1600198389335.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F218458iB21A5AC1F7ABE676%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22AndrewCoughlin_1-1600198389335.png%22%20alt%3D%22AndrewCoughlin_1-1600198389335.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThen%20click%20Browse%2C%20type%20the%20Azure%20File%20Sync%20server%2C%20if%20needed%2C%20and%20select%20the%20folder%20and%20click%20OK.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AndrewCoughlin_2-1600198389337.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F218457iA59B76986664A2A8%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22AndrewCoughlin_2-1600198389337.png%22%20alt%3D%22AndrewCoughlin_2-1600198389337.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EClick%20OK%2C%20on%20the%20Add%20Folder%20Target%20window.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AndrewCoughlin_3-1600198389341.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F218461i4023C7F13E11DF1A%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22AndrewCoughlin_3-1600198389341.png%22%20alt%3D%22AndrewCoughlin_3-1600198389341.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EClick%20on%20OK%2C%20on%20the%20New%20Folder%20window.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AndrewCoughlin_4-1600198389342.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F218460i49116D5F323A3A3C%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22AndrewCoughlin_4-1600198389342.png%22%20alt%3D%22AndrewCoughlin_4-1600198389342.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1713208523%22%20id%3D%22toc-hId--1713208494%22%3EAdd%20Additional%20%2F%20New%20Azure%20File%20Sync%20Server%20to%20a%20Folder%20Target%3C%2FH2%3E%0A%3CP%3EThere%20are%20a%20couple%20of%20reasons%20why%20you%20might%20want%20to%20add%20a%20second%20server%20to%20a%20folder%20target%20that%20has%20a%20share%20syncing%20with%20Azure%20File%20Sync%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ETwo%20servers%20in%20different%20locations%20part%20of%20the%20same%20sync%20group%3C%2FLI%3E%0A%3CLI%3EDR%20purposes%3C%2FLI%3E%0A%3CLI%3ERetiring%20an%20older%20Azure%20File%20Sync%20server%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSTRONG%3ENOTE%3A%3C%2FSTRONG%3E%20At%20the%20time%20of%20writing%20this%20article%20global%20locking%20is%20not%20supported%20for%20Azure%20File%20Sync%20or%20Azure%20Files.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20add%20an%20additional%20server%20to%20a%20target%20folder%20in%20DFS-N%20with%20Azure%20File%20Sync.%26nbsp%3B%20First%20open%20DFS%20Management%2C%20find%20the%20folder%20you%20are%20wanting%20to%20add%20to%20the%20target%20folder%20and%20right%20click%20it%20and%20go%20to%20Add%20Folder%20Target.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AndrewCoughlin_5-1600198389345.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F218459i28B92DA888E3A408%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22AndrewCoughlin_5-1600198389345.png%22%20alt%3D%22AndrewCoughlin_5-1600198389345.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EClick%20Browse%2C%20Type%20the%20second%20file%20server%2C%20and%20click%20Show%20Shared%20Folders.%26nbsp%3B%20You%20will%20then%20select%20the%20shared%20folder%20and%20Click%20OK.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AndrewCoughlin_6-1600198389346.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F218464i8B4DC42853F6EE1E%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22AndrewCoughlin_6-1600198389346.png%22%20alt%3D%22AndrewCoughlin_6-1600198389346.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EClick%20OK%2C%20on%20New%20Folder%20Target%20window.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AndrewCoughlin_7-1600198389347.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F218463iAC230F158979F607%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22AndrewCoughlin_7-1600198389347.png%22%20alt%3D%22AndrewCoughlin_7-1600198389347.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20will%20receive%20a%20replication%20message.%26nbsp%3B%20This%20message%20is%20asking%20you%20if%20you%20want%20to%20setup%20a%20replication%20group.%26nbsp%3B%20With%20two%20servers%E2%80%99%20part%20of%20the%20same%20sync%20group%20we%20are%20using%20Azure%20File%20Sync%20to%20keep%20both%20servers%20synchronized.%26nbsp%3B%20You%20will%20click%20No%20because%20of%20this.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENOTE%3A%3C%2FSTRONG%3E%20DFS-R%20and%20Azure%20File%20Sync%20can%20co-exist%2C%20the%20use%20case%20for%20this%20is%20for%20migrating%20from%20DFS-R%20to%20Azure%20Files%2C%20for%20more%20information%20about%20this%20migration%20process%20please%20see%20this%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Ffiles%2Fstorage-sync-files-deployment-guide%3Ftabs%3Dazure-portal%252Cproactive-portal%23migrate-a-dfs-replication-dfs-r-deployment-to-azure-file-sync%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Elink%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AndrewCoughlin_8-1600198389348.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F218462i71CDD2338FEC8AB9%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22AndrewCoughlin_8-1600198389348.png%22%20alt%3D%22AndrewCoughlin_8-1600198389348.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-774304310%22%20id%3D%22toc-hId-774304339%22%3EConclusion%3C%2FH2%3E%0A%3CP%3EIn%20this%20blog%20I%20covered%20supportability%20with%20Azure%20File%20Sync%20with%20DFS-N%2C%20how%20to%20add%20a%20server%20with%20Azure%20File%20Sync%20to%20DFS-N%20and%20how%20to%20add%20an%20additional%20server%20to%20a%20target%20folder%20in%20a%20DFS%20Namespace.%26nbsp%3B%20Thank%20you%20for%20taking%20the%20time%20to%20read%20this%20blog%2C%20I%20hope%20this%20helps%20you%20and%20see%20you%20next%20time.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1670525%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Azure%20File%20Sync.png%22%20style%3D%22width%3A%20806px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F218455iEEF945BAC20A8584%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Azure%20File%20Sync.png%22%20alt%3D%22Azure%20File%20Sync.png%22%20%2F%3E%3C%2FSPAN%3EI%20will%20cover%20how%20to%20integrate%20DFS%20Namespaces%20with%20Azure%20File%20Sync%20and%20add%20a%20file%20sync%20server%20to%20an%20existing%20target%20folder.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1670525%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAndrewCoughlin%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

 

Introduction

Hello everyone, this is Andrew Coughlin and I am a Customer Engineer at Microsoft focusing on Azure IaaS. In this blog I will focus on a couple of questions I get quite often around Azure File Sync, does Azure File Sync support DFS-N, how do you set DFS-N with Azure File Sync and can I have two Azure File Sync servers in a DFS-N target folder. 

 

Azure File Sync is a service that allows you to turn your on-premises servers into caching servers.  All files in the directory you specify for Azure File Sync will be copied to a file share in a storage account.  You can also enable a feature called Cloud Tiering, with this feature you can set which files stay on premises and which ones are in the cloud only.  To the end user this feature is seamless, and they don’t know if their file is on the file server or in the cloud.   For more information about Azure File Sync head over to the planning for an Azure File Sync deployment page.

 

Prerequisites

  • Share the folders out on each server(s)
  • Create DFS Namespace as documented here.

 

Does Azure File Sync Support DFS-N

One of the most common questions I receive is can you use Azure File Sync with Distributed File System Namespaces (DFS-N).  A lot of corporate customers use DFS-N to hide the backend file server.  This allows them to change the backend server without having impact to their end users. Azure File Sync does support DFS-N, from an interoperability it also supports Distributed File System Replication (DFS-R) for those customers looking to migrate away from DFS-R to Azure File Sync. Let’s see how we can add a share on an Azure File Sync server to DFS-N.

 

Add Share under Azure File Sync to DFS-N

First, we will want to launch the DFS Management tool and connect to the name space if the name space doesn’t show up.  Then we will right click on the name space and click “New Folder”.

 

AndrewCoughlin_0-1600198389331.png

 

Next you will provide the folder name and click Add.

 

AndrewCoughlin_1-1600198389335.png

 

 

Then click Browse, type the Azure File Sync server, if needed, and select the folder and click OK.

 

AndrewCoughlin_2-1600198389337.png

 

Click OK, on the Add Folder Target window.

 

AndrewCoughlin_3-1600198389341.png

 

Click on OK, on the New Folder window.

 

AndrewCoughlin_4-1600198389342.png

 

Add Additional / New Azure File Sync Server to a Folder Target

There are a couple of reasons why you might want to add a second server to a folder target that has a share syncing with Azure File Sync:

  • Two servers in different locations part of the same sync group
  • DR purposes
  • Retiring an older Azure File Sync server

NOTE: At the time of writing this article global locking is not supported for Azure File Sync or Azure Files.

 

To add an additional server to a target folder in DFS-N with Azure File Sync.  First open DFS Management, find the folder you are wanting to add to the target folder and right click it and go to Add Folder Target.

 

AndrewCoughlin_5-1600198389345.png

 

Click Browse, Type the second file server, and click Show Shared Folders.  You will then select the shared folder and Click OK.

 

AndrewCoughlin_6-1600198389346.png

 

Click OK, on New Folder Target window.

 

AndrewCoughlin_7-1600198389347.png

 

You will receive a replication message.  This message is asking you if you want to setup a replication group.  With two servers’ part of the same sync group we are using Azure File Sync to keep both servers synchronized.  You will click No because of this.

NOTE: DFS-R and Azure File Sync can co-exist, the use case for this is for migrating from DFS-R to Azure Files, for more information about this migration process please see this link.

 

AndrewCoughlin_8-1600198389348.png

 

Conclusion

In this blog I covered supportability with Azure File Sync with DFS-N, how to add a server with Azure File Sync to DFS-N and how to add an additional server to a target folder in a DFS Namespace.  Thank you for taking the time to read this blog, I hope this helps you and see you next time.