Search code examples
azure-data-factorylinked-service

Access denied to server in File System Linked Service in Data Factory


I'm trying to create a File System Linked Service in Data Factory in order to access a folder (\\serverName\c$\folder) using Self-Hosted Integration Runtime, even though I inserted an user who has "Full Control" permission on this specific folder, when I test connection, it returns the following error message:

Please consider I changed "serverName" with the proper server name, which is the same one I installed the IR.

The value of the property '' is invalid: 'Access to serverName is denied, resolved IP address is ::1, network type is OnPremise'. Access to serverName is denied, resolved IP address is ::1, network type is OnPremise

What really concerns me is that this message says the "property '' is invalid", how am I supposed to solve this?

Thanks in advance.


Solution

  • I just had a similar issue: Accessing a (shared -> only read access) folder from an Azure VM on which I had installed the SHIR.

    According to the Microsoft documentation you have to enable the access to the local machine for copying files on each SHIR node. To do this I opened the PowerShell on the VM and entered the following two commands (using IR version 5.0; for details to this command see here) to run the dmgcmd.exe:

     cd "C:\Program Files\Microsoft Integration Runtime\5.0\Shared\"
     .\dmgcmd.exe -EnableLocalMachineAccess