Install Azure File Sync Agent (preview) on Windows Server 1709
!!NOT SUPPORTED!!
Only Windows Server 2012 R2 and Windows Server 2016 with full Ui is currently supported by Microsoft.
Do not recommend this for production environments.
I wanted to install this on a File Cluster running Windows Server 1709 to see if it was possible.
This is how I did it.
1. Install Azure Resource Manager Powershell module on the Cluster node.
1 2 |
# Install Azure Resource Manager module Install-Module AzureRM |
2. Download and Install Storage Sync Agent:
By browser:
https://www.microsoft.com/en-us/download/details.aspx?id=55988
By Powershell directly to Cluster node:
1 2 |
#Download Storage Sync Agent Invoke-WebRequest -Uri 'https://download.microsoft.com/download/A/3/1/A318690B-1D85-43F8-BB97-730CC6E4D49D/StorageSyncAgent_PreviewRefresh1_WS2016.msi' -OutFile 'c:\temp\StorageSyncAgent.msi' |
Run:
1 |
C:\Temp\StorageSyncAgent.msi |
Press X when you hit the “Sign In”. It will fail since its not able to load IEFRAME.dll
3. Connect to AzureRM
1 2 3 4 |
$Password = ConvertTo-SecureString "Your Password" -AsPlainText -Force $Cred = New-Object System.Management.Automation.PSCredential($Username, $Password) Login-AzureRmAccount -Credential $Cred |
List Subscription and Tenant ID
1 |
Get-AzureRmSubscription |
Name : Visual Studio Enterprise with MSDN
Id : cfxxxxx-7axxx-4xxx-axxx-edxxxxxxxxx
TenantId : 91xxxxx-2xxx-4xxx-8xxx-a1xxxxxxxxx
State : Enabled
4. Connect to Azure Storage Sync
1 2 3 4 5 |
#Import Azure Storage Sync Module Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.PowerShell.Cmdlets.dll" #Login to Azure Storage Sync Login-AzureRmStorageSync -SubscriptionID "cfxxxxx-7axxx-4xxx-axxx-edxxxxxxxxx" -TenantID "91xxxxx-2xxx-4xxx-8xxx-a1xxxxxxxxx" -Credential $Cred |
5. Register Server with Azure Storage Sync
1 |
Register-AzureRmStorageSyncServer -SubscriptionId "cfxxxxx-7axxx-4xxx-axxx-edxxxxxxxxx" -ResourceGroupName "Resourse Group" -StorageSyncService "FileSync Service Name" |
ServerRole : ClusterNode
ClusterName : lab-filecluster01
ClusterId : exxxxxxx-3xxx-4xxx-axxx-6xxxxxxxxxxxxx
LastHeartBeat : 20.02.2018 22:31:57
ServerOSVersion : 10.0.16299.0
ServerManagementErrorCode : 0
AgentVersion : 2.0.11.0
ProvisioningState : Succeeded
Name : 8xxxxxxx-axxx-4xxx-axxx-2xxxxxxxxxxx
DisplayName : lab-FIL01.domain.com
Location : westeurope
Id : /subscriptions/
6. Run same procedure on the rest of the file cluster nodes. (If needed)
Now you will see the endpoint registration in the Azure Portal.
You can now configure your newly added File Cluster Endpoint to Azure Sync Groups
Disclaimer: All scripts and references on this blog are offered “as is” with no warranty. These scripts are tested in my environment, it is recommended that it is tested in a test environment before using in production.