0

I'm trying to build a POC for a solution to synchronize files between an Azure File Share using Azure File Sync and a VM that runs on-prem and does not have access to the internet. I started following the Azure guide however, when I get to the Server Registration part, I'm blocked since my VM does not have access to the internet, I cannot connect to Azure, but I still need to be able to somehow configure the server endpoint.

enter image description here

What I already tried:

  • Tried to setup the registration like in the documentation but it failed (obviously)
  • Tried to search for a "Download agent" option in the Azure portal, that supposedly downloads a registration file (JSON) that I could copy to the VM, but I cannot find the "Download Agent" option anywhere, the only thing I can download is Azure File Sync Agent which is just the installer, that I could copy to the VM without issues to install the Azure File Sync Agent which is a mandatory part in the beginning of the Azure tutorial.

I'm planning on using private link for the actual use of Azure File Sync, but this step to register the server seems to be mandatory. Are there any other solutions or could it be that I'm somehow understanding something wrong?

vimuth
  • 5,064
  • 33
  • 79
  • 116

1 Answers1

0

I tried to reproduce the same in my environment I got the same error like below:

enter image description here

Created virtual machine with windows server 2019 Data center and storage account with file share like below:

enter image description here

And Deploy Azure file sync and Sync group like below:

enter image description here

In regsistered server downloaded the Azure file sync agent I selected 2019 as windows server.

enter image description here

To resolve the error check the below:

Go to Azure active directory -> users -> select user -> Assigned roles -> Add assignments -> add Application adminsitrator like below:

enter image description here

In subscription -> Access control(IAM) -> add contibutor role to the user like below:

enter image description here

Then click on signin ->Internet explorer will be open -> click on Add

enter image description here

In trusted sited click on Add like below:

Internet explorer normally pop up and allow you to add traffic to tranfer sites.

enter image description here

On scriptError -> click yes and signin again

When I try to sign-in again to Azure file sync-server registration, sign-in is successfully like below:

enter image description here

enter image description here

Imran
  • 3,875
  • 2
  • 3
  • 12