When working with self-hosted integration runtime in Azure Data Factory, you may encounter an issue where you are unable to create a linked service pointing to a local machine path. This can be frustrating, but there are a few steps you can take to troubleshoot and resolve the issue.
First, let's understand what a linked service is in Azure Data Factory. A linked service is a configuration setting that defines the connection information to an external data source or destination, such as a database, file system, or API. It allows you to connect and interact with these external resources within your data integration workflows.
Now, let's dive into the steps to resolve the issue of not being able to create a linked service pointing to a local machine path.
Step 1: Check Self-Hosted Integration Runtime Configuration
The first thing you need to do is ensure that your self-hosted integration runtime is correctly configured. Follow these steps:
- Open the Azure portal and navigate to your self-hosted integration runtime.
- Check if the integration runtime is running and connected to Azure Data Factory.
- If it is not connected, click on the "Connect" button to establish the connection.
Once your self-hosted integration runtime is properly configured and connected, proceed to the next step.
Step 2: Verify Local Machine Path Access
The next step is to ensure that the user account running the self-hosted integration runtime has appropriate access to the local machine path you are trying to create a linked service for. Follow these steps:
- Log in to the machine where the self-hosted integration runtime is installed.
- Open Windows Explorer and navigate to the local machine path.
- Right-click on the folder or file you want to access and select "Properties".
- In the "Properties" window, go to the "Security" tab.
- Check if the user account running the self-hosted integration runtime has the necessary permissions to access the path.
- If the user account is not listed or does not have the appropriate permissions, click on the "Edit" button to add the account or modify the permissions.
- Save the changes and close the "Properties" window.
After verifying and updating the access permissions, proceed to the next step.
Step 3: Use UNC Path Instead of Local Machine Path
If you are still unable to create a linked service pointing to a local machine path, try using a UNC (Universal Naming Convention) path instead. Follow these steps:
- Open Windows Explorer and navigate to the folder or file you want to access.
- Right-click on the folder or file and select "Properties".
- In the "Properties" window, go to the "Sharing" tab.
- Click on the "Advanced Sharing" button.
- Check the box that says "Share this folder".
- Click on the "Permissions" button.
- Ensure that the user account running the self-hosted integration runtime has the necessary permissions.
- Click "OK" to save the changes.
Now, try creating a linked service using the UNC path instead of the local machine path. This should resolve the issue in most cases.
If you are still facing issues or need further assistance, it is recommended to reach out to the Azure Data Factory support team for personalized help.
Creating a linked service pointing to a local machine path using self-hosted integration runtime can sometimes be challenging. However, by following the steps outlined in this article, you should be able to troubleshoot and resolve the issue. Remember to check the configuration of your self-hosted integration runtime, verify local machine path access, and consider using a UNC path instead. If problems persist, don't hesitate to seek assistance from the Azure Data Factory support team.
| Reference | Link |
|---|---|
| Azure Data Factory documentation | https://docs.microsoft.com/en-us/azure/data-factory/ |
| Azure Data Factory support | https://azure.microsoft.com/en-us/support/ |