The latest SHIR has a security fix that has been changed and does not allow access to local files by default.
You must run .\dmgcmd.exe -DisableLocalFolderPathValidation to disable the setting.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I am trying to create a dataset for one of the pipelines in data factory, it is file system type and the host is virtual machine D drive and I am using self hosted integration runtime and while I click on test connection it is throwing the error: connection failed.
Error code22853
DetailsAccess to 'D:\nginx-1.22.1\nginx-1.22.1\logs' is not allowed.
Activity ID: ba7d55d2-66be-4501-8bee-351b7d06f9ae.
Appreciate anyones help.
Thanks in advance.
The latest SHIR has a security fix that has been changed and does not allow access to local files by default.
You must run .\dmgcmd.exe -DisableLocalFolderPathValidation to disable the setting.
Am able to resolve this by putting the complete path, the error is a result of the upgrade in the self-integration runtime, in the latest version of IR you need to provide the complete file share path.
The latest SHIR has a security fix that has been chenged and does not allow access to local files by default.
You must run .\dmgcmd.exe -DisableLocalFolderPathValidation to disable the setting.
https://learn.microsoft.com/en-us/azure/data-factory/create-self-hosted-integration-runtime?context=%2Fazure%2Fsynapse-analytics%2 Fcontext%2Fcontext&tabs=synapse-analytics#set-up-an-existing-self-hosted-ir-via-local-powershell
@Rizwan Sheik - - Thanks for the question and using MS Q&A platform.
According to the offical documentation, the latest SHIR has a security fix that has been changed and does not allow access to local files by default.
You must run
.\dmgcmd.exe -DisableLocalFolderPathValidation
to disable the setting for more details, refer to Set up an existing self-hosted IR via local PowerShell
Default: Enable security validation to disable access to file system of the local machine.
After Disabling access to file system of the local machine using:
.\dmgcmd.exe -DisableLocalFolderPathValidation
able to access the data from linked service.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.