{"id":634,"date":"2021-07-02T20:52:51","date_gmt":"2021-07-02T20:52:51","guid":{"rendered":"https:\/\/www.spktechfit.com\/?p=634"},"modified":"2021-07-02T20:52:51","modified_gmt":"2021-07-02T20:52:51","slug":"11-configure-azure-files","status":"publish","type":"post","link":"https:\/\/www.spktechfit.com\/?p=634","title":{"rendered":"11. Configure Azure Files"},"content":{"rendered":"<h1 style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 16.0pt; color: #1e4e79;\">Create Azure File Share<\/h1>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">Blobs aren&#8217;t made for sharing files in a &#8220;file share&#8221;, so for this we use Azure files.<\/p>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">To do this:<\/p>\n<ul style=\"margin-left: .75in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;\" type=\"disc\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">create a Storage Account of the &#8220;General Purpose V2&#8221; type<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Go to the Storage Account and select &#8220;file shares&#8221;<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Click on the + icon to create a File Share<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Give it a name and set a quota (optional)<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Once File Share is created you can go into it and create directories, upload files etc\u2026<\/span><\/li>\n<\/ul>\n<p style=\"margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 11.0pt;\">\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">Map This File Share to your computer<\/p>\n<ul style=\"margin-left: .75in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;\" type=\"disc\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">From within the File Share in Azure, click on Connect<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Here you can select which drive letter to use, then copy the code Azure gives you to mount this file share on your computer<\/span><\/li>\n<\/ul>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\"><span style=\"font-weight: bold;\">NOTE: a lot of ISPs block port 445 so you may not be able to mount this on your home network.<\/span><\/p>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">\n<h1><\/h1>\n<h1 style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 16.0pt; color: #1e4e79;\">Azure File Sync<\/h1>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">Azure File sync allows us to sync files from our local servers to the cloud or other servers. It&#8217;s like replication for shared files for offices in different locations.<\/p>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\"><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/storage\/file-sync\/file-sync-deployment-guide?tabs=azure-portal%2Cproactive-portal\">https:\/\/docs.microsoft.com\/en-us\/azure\/storage\/file-sync\/file-sync-deployment-guide?tabs=azure-portal%2Cproactive-portal<\/a><\/p>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">\n<ol style=\"margin-left: .375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in; font-family: Calibri; font-size: 14.0pt; font-weight: normal; font-style: normal;\" type=\"1\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2e75b5;\" value=\"1\"><span style=\"font-family: Calibri; font-size: 14.0pt; font-weight: normal; font-style: normal;\">Azure File Sync Service<\/span><\/li>\n<\/ol>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">This is a service from within the Azure Portal. You need to create an instance of &#8220;Azure File Sync&#8221; service before using. When creating it you choose which Resource Group to create it in.<\/p>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">\n<ol style=\"margin-left: .375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in; font-family: Calibri; font-size: 14.0pt; font-weight: normal; font-style: normal;\" type=\"1\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2e75b5;\" value=\"2\"><span style=\"font-family: Calibri; font-size: 14.0pt; font-weight: normal; font-style: normal;\">Sync Group<\/span><\/li>\n<\/ol>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">Once you have created the service, you create the sync group within that service. This is basically the group of files you want to keep synced across servers.<\/p>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">When creating the sync group you select:<\/p>\n<p style=\"margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 11.0pt;\">Storage account to use<\/p>\n<p style=\"margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 11.0pt;\">The file share within the storage account where the files will be replicated to<\/p>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">\n<ol style=\"margin-left: .375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in; font-family: Calibri; font-size: 14.0pt; font-weight: normal; font-style: normal;\" type=\"1\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2e75b5;\" value=\"3\"><span style=\"font-family: Calibri; font-size: 14.0pt; font-weight: normal; font-style: normal;\">Azure File Sync Agent<\/span><\/li>\n<\/ol>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">This is the agent you install on your local server that you want to sync the files from to the cloud. You can download this from Microsoft. Once you install this on your server the &#8220;Server Registration&#8221; config will pop up. This is where you select the &#8220;Sync service&#8221; created in step 1 above.<\/p>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">Registering your Windows Server with a Storage Sync Service establishes a trust relationship between your server (or cluster) and the Storage Sync Service. A server can only be registered to one Storage Sync Service and can sync with other servers and Azure file shares associated with the same Storage Sync Service.<\/p>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">\n<h1><\/h1>\n<h1 style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 16.0pt; color: #1e4e79;\">Troubleshoot Azure Sync<\/h1>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">Microsoft article on this: <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/storage\/file-sync\/file-sync-troubleshoot?tabs=portal1%2Cazure-portal\">https:\/\/docs.microsoft.com\/en-us\/azure\/storage\/file-sync\/file-sync-troubleshoot?tabs=portal1%2Cazure-portal<\/a><\/p>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">Troubleshooting tip:<\/p>\n<ul style=\"margin-left: .75in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;\" type=\"disc\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Turn on verbose logging<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Monitor sync health from within the Sync Group<\/span><\/li>\n<\/ul>\n<p style=\"margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 11.0pt;\">\n<p style=\"margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 11.0pt;\">\n<p style=\"margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 11.0pt;\">\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">\n<h3 style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 12.0pt; color: #5b9bd5;\">Should I remove and recreate my server endpoint?<\/h3>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">No: removing a server endpoint isn&#8217;t like rebooting a server! Removing and recreating the server endpoint is almost never an appropriate solution to fixing issues with sync, cloud tiering, or other aspects of Azure File Sync. Removing a server endpoint is a destructive operation. It may result in data loss<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create Azure File Share Blobs aren&#8217;t made for sharing files in a &#8220;file share&#8221;, so for this we use Azure files. To do this: create a Storage Account of the &#8220;General Purpose V2&#8221; type Go to the Storage Account and select &#8220;file shares&#8221; Click on the + icon to create a File Share Give it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[13,3],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts\/634"}],"collection":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=634"}],"version-history":[{"count":3,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts\/634\/revisions"}],"predecessor-version":[{"id":637,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts\/634\/revisions\/637"}],"wp:attachment":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}