Home
%3CLINGO-SUB%20id%3D%22lingo-sub-885151%22%20slang%3D%22en-US%22%3EStep-By-Step%3A%20Manage%20file%20storage%20growth%20with%20Azure%20File%20Sync%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-885151%22%20slang%3D%22en-US%22%3E%3CP%3EAt%20this%20point%20I%E2%80%99m%20sure%20you%E2%80%99re%20heard%20about%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fstorage%2Ffiles%2Fstorage-sync-files-extend-servers%3FWT.mc_id%3DITOpsTalk-blog-pierrer%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20File%20Sync%3C%2FA%3E.%20If%20you%20have%20not%2C%20Azure%20File%20Sync%20(AFS)%20is%20a%20service%20that%20centralizes%20your%20file%20shares%20in%20Azure%20Files%2C%20while%20keeping%20the%20flexibility%2C%20performance%2C%20and%20compatibility%20of%20an%20on-premises%20file%20server.%26nbsp%3B%20In%20essence%2C%20it%20transforms%20your%20File%20Server%20into%20a%20quick%20cache%20of%20your%20Azure%20file%20share.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%E2%80%99s%20a%20great%20way%20to%20deal%20with%20shrinking%20storage%20space%20in%20your%20environment%20by%20using%20AFS%20to%20tier%20your%20files%20to%20the%20cloud%20and%20ensure%20you%20never%20run%20out%20of%20space%20locally.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3C%2FP%3E%3CDIV%20class%3D%22video-embed-center%20video-embed%22%3E%3CIFRAME%20class%3D%22embedly-embed%22%20src%3D%22https%3A%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252FZm2w8-TRn-o%253Ffeature%253Doembed%26amp%3Burl%3Dhttp%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253DZm2w8-TRn-o%26amp%3Bimage%3Dhttps%253A%252F%252Fi.ytimg.com%252Fvi%252FZm2w8-TRn-o%252Fhqdefault.jpg%26amp%3Bkey%3Db0d40caa4f094c68be7c29880b16f56e%26amp%3Btype%3Dtext%252Fhtml%26amp%3Bschema%3Dyoutube%22%20width%3D%22600%22%20height%3D%22337%22%20scrolling%3D%22no%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%22%20allowfullscreen%3D%22true%22%20title%3D%22Video%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20order%20for%20you%20to%20be%20able%20to%20set%20this%20up%20in%20your%20environment%20you%20have%20to%20meet%20the%20following%20prerequisites%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EOS%3C%2FLI%3E%0A%3COL%3E%0A%3CLI%3EWindows%20Server%202019%20(Datacenter%20and%20Standard)%2C%20Full%20and%20Core%3C%2FLI%3E%0A%3CLI%3EWindows%20Server%202016%20(Datacenter%20and%20Standard)%2C%20Full%20and%20Core%3C%2FLI%3E%0A%3CLI%3EWindows%20Server%202012%20R2%20(Datacenter%20and%20Standard)%2C%20Full%20and%20Core%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CLI%3EA%20minimum%20of%202%20GiB%20of%20memory.%3C%2FLI%3E%0A%3CLI%3EA%20locally%20attached%20volume%20formatted%20with%20the%20NTFS%20file%20system%20(Only%20NTFS%20volumes%20are%20supported.%20ReFS%2C%20FAT%2C%20FAT32%2C%20and%20other%20file%20systems%20are%20not%20supported.)%3C%2FLI%3E%0A%3CLI%3EAz%20and%20StorageSync%20PowerShell%20modules%20installed%20(requires%20.NET%204.7.2)%3C%2FLI%3E%0A%3COL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fpowershell%2Fazure%2Finstall-az-ps%3Fview%3Dazps-2.7.0%26amp%3BviewFallbackFrom%3Dazps-1.1.0%26amp%3BWT.mc_id%3DITOpsTalk-Blog-pierrer%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EInstall%20the%20Azure%20PowerShell%20module%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20style%3D%22font-family%3A%20inherit%3B%20background-color%3A%20%23ffffff%3B%22%20href%3D%22https%3A%2F%2Fwww.powershellgallery.com%2Fpackages%2FAz.StorageSync%2F1.2.0%3FWT.mc_id%3DITOpsTalk-Blog-pierrer%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EInstall%20the%20Az.StorageSync%20module%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FOL%3E%0A%3CH3%20id%3D%22toc-hId-1627380792%22%20id%3D%22toc-hId-1627380792%22%3ECreate%20an%20Azure%20storage%20account%2C%20file%20share%20and%20Azure%20File%20Sync%20Service%3C%2FH3%3E%0A%3CP%3Ein%20my%20case%20I%20used%20Azure-CLI%20in%20an%20azure%20shell%20to%20create%20the%20storage%20account%20that%20will%20host%20our%20File%20Share.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-python%22%3E%3CCODE%3Eaz%20storage%20account%20create%20--location%20%3CLOCATION%3E%20--name%20%3CACCOUNT_NAME%3E%20--resource-group%20%3CRESOURCE_GROUP%3E%20--sku%20%3CACCOUNT_SKU%3E%3C%2FACCOUNT_SKU%3E%3C%2FRESOURCE_GROUP%3E%3C%2FACCOUNT_NAME%3E%3C%2FLOCATION%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20that%20the%20Storage%20account%20is%20created%2C%20to%20create%20the%20File%20Share%20in%20that%20storage%20account%20we%20need%20to%20create%20a%20connection%20string%20to%20the%20storage%20account%20where%20you%20want%20to%20create%20the%20share.%20To%20achieve%20that%20we%20used%20the%20following%20command%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-python%22%3E%3CCODE%3Econn_string%3D%24(az%20storage%20account%20show-connection-string%20-n%20%3CACCOUNT_NAME%3E%20-g%20%3CRESOURCE_GROUP%3E%20--query%20'connectionString'%20-o%20tsv)%3C%2FRESOURCE_GROUP%3E%3C%2FACCOUNT_NAME%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EThen%20we%20used%20that%20environment%20variable%20to%20create%20the%20share.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eaz%20storage%20share%20create%20--name%20itopsfiles%20--quota%202048%20--connection-string%20%24conn_string%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134867i0F314DFB1CC52CE0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22connect-string.png%22%20title%3D%22connect-string.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20that%20the%20Storage%20Account%20and%20the%20file%20share%20have%20been%20created%20we%20are%20ready%20to%20enabled%20the%20File%20Sync%20Service%20in%20the%20portal%20(this%20can%20also%20be%20done%20in%20Powershell).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20the%20Azure%20Portal%2C%20search%20for%20%22Azure%20File%20Sync%22%2C%20select%20it%20from%20the%20results%20and%26nbsp%3B%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134872iD1640C8E2AE96A86%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22AFS-add%20(2).png%22%20title%3D%22AFS-add%20(2).png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20the%20%22Deploy%20Azure%20File%20Sync%22%20screen%20pick%20a%20Subscription%20where%20you%20want%20it%20deployed%2C%20a%20resource%20group%20to%20store%20it%20in%2C%20and%20the%20name%20you%20want%20to%20give%20to%20your%20AFS%20service.%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134871iDB0ED33BD42C0D51%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22AFS-create1.png%22%20title%3D%22AFS-create1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThen%20click%20Review%20%26amp%3B%20Create.%20%26gt%3B%20Create.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EOnce%20the%20Azure%20File%20Sync%20Service%20has%20been%20deployed%2C%20we%20need%20to%20install%20the%20agents%20and%20register%20our%20Windows%20Server%20with%20the%20Storage%20Sync%20Service.%26nbsp%3B%20Registering%20your%20Windows%20Server%20with%20the%20Storage%20Sync%20Service%20will%20setup%20a%20trust%20relationship%20between%20your%20server%20(or%20cluster)%20and%20the%20Storage%20Sync%20Service.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EThe%20Server%20registration%20process%20uses%20your%20Azure%20credentials%20to%20create%20a%20trust%20relationship%20between%20the%20Storage%20Sync%20Service%20and%20your%20Windows%20Server%2C%20however%20subsequently%20the%20server%20creates%20and%20uses%20its%20%3CSTRONG%3Eown%20identity%3C%2FSTRONG%3E%20that%20is%20valid%20as%20long%20as%20the%20server%20stays%20registered%20and%20the%20current%20Shared%20Access%20Signature%20token%20(Storage%20SAS)%20is%20valid.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20Azure%20credentials%20you%20use%20MUST%20have%20the%20capabilities%20to%20grant%20access%20to%20the%20registered%20server.%20If%20you%20do%20not%20have%20enough%20rights%20in%20your%20Azure%20Active%20Directory%2C%20you%20will%20get%20a%20notification%20when%20you%20try%20to%20perform%20the%20registration%20in%20the%20form%20of%20the%20following%20authentication%20prompt%3A%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%20style%3D%22width%3A%20492px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134874i30F3E3A4F2015EA2%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222019-09-30_21-52-07.png%22%20title%3D%222019-09-30_21-52-07.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20this%20article%20I%E2%80%99m%20using%20a%20subscription%20where%20I%20have%20%E2%80%9Cglobal%20administrator%E2%80%9D%20role.%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134875iA86152F14E8B3876%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222019-10-01_1-16-01.png%22%20title%3D%222019-10-01_1-16-01.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20my%20case%20I%20used%20the%20Windows%20Admin%20Center%20console%20to%20register%20both%20my%20servers.%20I%20will%20walk%20you%20throught%20setup%20up%20TWT-FS01%20my%20on-prem%20File%20Server.%26nbsp%3B%20TWT-FS02%20is%20setup%20the%20exact%20same%20way%20and%20it%20sits%20in%20a%20remote%20branch%20office.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20start%2C%20in%20my%20Windows%20Admin%20center%20(WAC)%20console%2C%20I%20select%20the%20server%20I%20want%20to%20manage.%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134876i80E8BD53DD9B001B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22wac1.png%22%20title%3D%22wac1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20next%20step%20is%20to%20navigate%20to%20the%20Azure%20File%20Sync%20menu%20option.%20And%20click%20Setup.%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134879iC55D026E465A276B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22wac2.png%22%20title%3D%22wac2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ethe%20process%20will%20take%20you%20through%20the%203%20steps%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EDeploy%20the%20Agent%3C%2FLI%3E%0A%3CLI%3EConnect%20to%20the%20Storage%20Sync%20Service%3C%2FLI%3E%0A%3CLI%3ERegister%20the%20server%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3Eclick%20Next%20to%20Deploy%20the%20Agent%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134881i11755C4034E87781%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22wac3%20(3).png%22%20title%3D%22wac3%20(3).png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eyou%20need%20to%20decide%20if%20you%20want%20to%20use%20Windows%20Update%20to%20keep%20the%20agent%20up%20to%20date.%26nbsp%3B%20I%20recommend%20you%20do%2C%20and%20deploy%20the%20agent.%26nbsp%3B%20whe%20it's%20done%20downloading%20and%20installing%2C%20click%20next%20to%20continue.%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134882i6B914B53E7206CB2%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22wac4%20(2).png%22%20title%3D%22wac4%20(2).png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ethe%20next%20section%20is%20where%20you%20need%20to%20authenticate%20to%20Azure%20in%20order%20to%20connect%20to%20the%20Storage%20Sync%20Service.%26nbsp%3B%20Remember%2C%20if%20it%20says%20%22Need%20Admin%20Approval%22%20your%20Azure%20Account%20does%20not%20have%20the%20proper%20permissions.%26nbsp%3B%20if%20you%20have%20the%20proper%20permission%20a%20dialogue%20box%20will%20prompt%20you%20to%20grant%20access.%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134883iC533F1B86CF24066%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22wac5%20(2).png%22%20title%3D%22wac5%20(2).png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20that%20we%20are%20authenticated%20and%20can%20read%20the%20subscription%20info%2C%20the%20next%20step%20will%20have%20you%20pick%20the%20subscription%2C%20the%20resource%20group%20and%20the%20Storage%20Sync%20Service%20we%20created%20earlier.%20then%20click%20Next.%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134884iB312427B2BEA5F3E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22wac7.png%22%20title%3D%22wac7.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eand%20on%20the%20last%20step%20just%20click%20register%20server.%26nbsp%3B%20it%20will%20take%20a%20few%20minutes%20to%20complete.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFollowing%20the%20server%20registration%20we%20will%20create%20a%20sync%20group%20to%20defines%20the%20sync%20topology%20for%20a%20set%20of%20files.%26nbsp%3B%20Endpoints%20(cloud%20or%20server)%20within%20a%20sync%20group%20are%20kept%20in%20sync%20with%20each%20other.%26nbsp%3B%20So%20after%20we%20setup%20TWT-FS01%20and%20TWT-FS02%20has%20endpoints%2C%26nbsp%3B%20the%20will%20be%20kept%20in%20sync%20with%20each%20other.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EA%20server%20endpoint%20represents%20the%20path%20on%20a%20registered%20server%20we%20want%20synchronized.%20A%20server%20can%20have%20server%20endpoints%20in%20multiple%20sync%20groups.%20You%20can%20create%20as%20many%20sync%20groups%20as%20you%20need%20to%20appropriately%20describe%20your%20desired%20sync%20topology.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENote%3A%20in%20your%20Azure%20File%20Share%2C%20a%20special%20folder%2C%20comparable%20to%20the%20hidden%20%22System%20Volume%20Information%22%20folder%20on%20an%20NTFS%20volume%2C%20will%20be%20provisioned.%20This%20directory%20is%20called%20%22.SystemShareInformation%22.%20It%20holds%20important%20sync%20metadata%20that%20will%20not%20sync%20to%20other%20endpoints.%20%3CU%3E%3CSTRONG%3EDo%20not%20use%20or%20delete%20it!%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENext%20we%20need%20to%20create%20a%20sync%20group%2C%20in%20the%20Azure%20portal%2C%20go%20to%20your%20Storage%20Sync%20Service%2C%20and%20then%20select%20%2B%20Sync%20group%3A%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134886iE16894D0B0012947%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22AFS1.png%22%20title%3D%22AFS1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ethe%20Sync%20Group%20creation%20only%20required%20a%20Name%2C%20a%20subscription%2C%20the%20name%20of%20the%20storage%20account%20and%20File%20Share%20we%20created%20earlier%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%20style%3D%22width%3A%20825px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134887i79521E0D4CCB381A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22afs2.png%22%20title%3D%22afs2.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eand%20once%20the%20sync%20group%20creation%20is%20complete%2C%20we%20are%20now%20at%20the%20point%20to%20add%20the%20server%20endpoints.%20by%20selecting%20%22Add%20server%20endpoint%22%20in%20the%20portal.%26nbsp%3B%20this%20is%20where%20the%20tiering%20magic%20happens.%26nbsp%3B%20while%20adding%20the%20server%20endpoint%20we%20can%20setup%20how%20we%20want%20the%20service%20to%20treat%20the%20local%20volumes.%26nbsp%3B%20so%20for%20TWT-FS01%20(in%20the%20registered%20server%20field)%20we%20setup%20the%20path%20where%20the%20local%20share%20is%2C%20and%20setup%20cloud%20tiering%20to%20ensure%20that%20our%20local%20drive%20ALWAYS%20has%2050%25%20free%20space%20and%20that%20it%20only%20cached%20the%20files%20used%20in%20the%20last%2030%20days.%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%20style%3D%22width%3A%20594px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134890i3854222999B2E279%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22afs6.png%22%20title%3D%22afs6.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAt%20this%20point%20I%20can%20also%20add%20TWT-FS02%20and%20use%20server%20specific%20tiering%20settings%20to%20deal%20with%20servers%20that%20may%20not%20have%20the%20same%20size%20volumes%20locally.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20always%20go%20back%20to%20the%26nbsp%3BStorage%20Sync%20Service%20and%20drill%20into%20your%20sync%20groups%20and%20validate%20the%20health%20of%20your%26nbsp%3B%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%23333333%3B%20cursor%3A%20text%3B%20font-family%3A%20inherit%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.7142%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3Esync%20topology%3C%2FSPAN%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F134891i3F0E5729D8A7DD30%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22afs9.png%22%20title%3D%22afs9.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat's%20it!%26nbsp%3B%20we%20now%20have%20a%20fuly%20managed%20topology%20that%20will%20ensure%20our%20local%20servers%20never%20run%20out%20of%20space%20and%20(at%20least%20on%20the%20drive%20being%20synced)%20and%20the%20Azure%20File%20Share%20is%20now%20our%20offsite%20backup.%26nbsp%3B%202%20birds...%26nbsp%3B%20one%20stone.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOutstanding.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet%20me%20know%20if%20there%20are%20other%20scenarios%20you'd%20like%20us%20to%20cover.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECheers!!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPierre%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-885151%22%20slang%3D%22en-US%22%3E%3CP%3EAt%20this%20point%20I%E2%80%99m%20sure%20you%E2%80%99re%20heard%20about%20Azure%20File%20Sync.%20If%20you%20have%20not%2C%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fstorage%2Ffiles%2Fstorage-sync-files-extend-servers%3FWT.mc_id%3DITOpsTalk-blog-pierrer%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20File%20Sync%20(AFS)%3C%2FA%3E%20is%20a%20service%20that%20centralizes%20your%20file%20shares%20in%20Azure%20Files%2C%20while%20keeping%20the%20flexibility%2C%20performance%2C%20and%20compatibility%20of%20an%20on-premises%20file%20server.%20In%20essence%2C%20it%20transforms%20your%20File%20Server%20into%20a%20quick%20cache%20of%20your%20Azure%20file%20share.%3CBR%20%2F%3E%3CBR%20%2F%3EIt%E2%80%99s%20a%20great%20way%20to%20deal%20with%20shrinking%20storage%20space%20in%20your%20environment%20by%20using%20AFS%20to%20tier%20your%20files%20to%20the%20cloud%20and%20ensure%20you%20never%20run%20out%20of%20space%20locally.%20the%20Article%20walks%20you%20through%20the%20setup.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-885151%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eazure%20file%20sync%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHybrid%20Cloud%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIT%20Cloud%20and%20Infrastructure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIT%20Pro%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPierre%20Roman%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%202019%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

At this point I’m sure you’re heard about Azure File Sync. If you have not, Azure File Sync (AFS) is a service that centralizes your file shares in Azure Files, while keeping the flexibility, performance, and compatibility of an on-premises file server.  In essence, it transforms your File Server into a quick cache of your Azure file share.

 

It’s a great way to deal with shrinking storage space in your environment by using AFS to tier your files to the cloud and ensure you never run out of space locally.

 

 

In order for you to be able to set this up in your environment you have to meet the following prerequisites:

 

  1. OS
    1. Windows Server 2019 (Datacenter and Standard), Full and Core
    2. Windows Server 2016 (Datacenter and Standard), Full and Core
    3. Windows Server 2012 R2 (Datacenter and Standard), Full and Core
  2. A minimum of 2 GiB of memory.
  3. A locally attached volume formatted with the NTFS file system (Only NTFS volumes are supported. ReFS, FAT, FAT32, and other file systems are not supported.)
  4. Az and StorageSync PowerShell modules installed (requires .NET 4.7.2)
    1. Install the Azure PowerShell module
    2. Install the Az.StorageSync module

Create an Azure storage account, file share and Azure File Sync Service

in my case I used Azure-CLI in an azure shell to create the storage account that will host our File Share.

 

 

az storage account create --location <location> --name <account_name> --resource-group <resource_group> --sku <account_sku>

 

 

Now that the Storage account is created, to create the File Share in that storage account we need to create a connection string to the storage account where you want to create the share. To achieve that we used the following command:

 

 

conn_string=$(az storage account show-connection-string -n <account_name> -g <resource_group> --query 'connectionString' -o tsv)

 


Then we used that environment variable to create the share.

 

 

az storage share create --name itopsfiles --quota 2048 --connection-string $conn_string

 

 

connect-string.png

 

Now that the Storage Account and the file share have been created we are ready to enabled the File Sync Service in the portal (this can also be done in Powershell).

 

In the Azure Portal, search for "Azure File Sync", select it from the results and 

 

AFS-add (2).png

 

In the "Deploy Azure File Sync" screen pick a Subscription where you want it deployed, a resource group to store it in, and the name you want to give to your AFS service.

 

AFS-create1.png

 

Then click Review & Create. > Create.


Once the Azure File Sync Service has been deployed, we need to install the agents and register our Windows Server with the Storage Sync Service.  Registering your Windows Server with the Storage Sync Service will setup a trust relationship between your server (or cluster) and the Storage Sync Service.


The Server registration process uses your Azure credentials to create a trust relationship between the Storage Sync Service and your Windows Server, however subsequently the server creates and uses its own identity that is valid as long as the server stays registered and the current Shared Access Signature token (Storage SAS) is valid.

 

The Azure credentials you use MUST have the capabilities to grant access to the registered server. If you do not have enough rights in your Azure Active Directory, you will get a notification when you try to perform the registration in the form of the following authentication prompt:

 

2019-09-30_21-52-07.png

 

For this article I’m using a subscription where I have “global administrator” role.

 

2019-10-01_1-16-01.png

 

In my case I used the Windows Admin Center console to register both my servers. I will walk you throught setup up TWT-FS01 my on-prem File Server.  TWT-FS02 is setup the exact same way and it sits in a remote branch office.

 

To start, in my Windows Admin center (WAC) console, I select the server I want to manage.

 

wac1.png

 

The next step is to navigate to the Azure File Sync menu option. And click Setup.

 

wac2.png

 

the process will take you through the 3 steps:

  1. Deploy the Agent
  2. Connect to the Storage Sync Service
  3. Register the server

click Next to Deploy the Agent

 

wac3 (3).png

 

you need to decide if you want to use Windows Update to keep the agent up to date.  I recommend you do, and deploy the agent.  whe it's done downloading and installing, click next to continue.

 

wac4 (2).png

 

the next section is where you need to authenticate to Azure in order to connect to the Storage Sync Service.  Remember, if it says "Need Admin Approval" your Azure Account does not have the proper permissions.  if you have the proper permission a dialogue box will prompt you to grant access.

 

wac5 (2).png

 

Now that we are authenticated and can read the subscription info, the next step will have you pick the subscription, the resource group and the Storage Sync Service we created earlier. then click Next.

 

wac7.png

 

and on the last step just click register server.  it will take a few minutes to complete.

 

Following the server registration we will create a sync group to defines the sync topology for a set of files.  Endpoints (cloud or server) within a sync group are kept in sync with each other.  So after we setup TWT-FS01 and TWT-FS02 has endpoints,  the will be kept in sync with each other.

 

A server endpoint represents the path on a registered server we want synchronized. A server can have server endpoints in multiple sync groups. You can create as many sync groups as you need to appropriately describe your desired sync topology.

 

Note: in your Azure File Share, a special folder, comparable to the hidden "System Volume Information" folder on an NTFS volume, will be provisioned. This directory is called ".SystemShareInformation". It holds important sync metadata that will not sync to other endpoints. Do not use or delete it!

 

Next we need to create a sync group, in the Azure portal, go to your Storage Sync Service, and then select + Sync group:

 

AFS1.png

 

the Sync Group creation only required a Name, a subscription, the name of the storage account and File Share we created earlier

 

afs2.png 

and once the sync group creation is complete, we are now at the point to add the server endpoints. by selecting "Add server endpoint" in the portal.  this is where the tiering magic happens.  while adding the server endpoint we can setup how we want the service to treat the local volumes.  so for TWT-FS01 (in the registered server field) we setup the path where the local share is, and setup cloud tiering to ensure that our local drive ALWAYS has 50% free space and that it only cached the files used in the last 30 days.

 

afs6.png

 

At this point I can also add TWT-FS02 and use server specific tiering settings to deal with servers that may not have the same size volumes locally.

 

You can always go back to the Storage Sync Service and drill into your sync groups and validate the health of your sync topology.

 

afs9.png

 

That's it!  we now have a fuly managed topology that will ensure our local servers never run out of space and (at least on the drive being synced) and the Azure File Share is now our offsite backup.  2 birds...  one stone.

 

Outstanding.

 

Let me know if there are other scenarios you'd like us to cover.

 

Cheers!!

 

Pierre