Hi Ridhima Verma,
Thanks for reaching out to Microsoft Q&A.
The issue you're experiencing is likely related to the dynamic nature of the IP addresses used by Azure services, like ADF when using SHIR. The discrepancy you're observing between the IP address from your Self-hosted Integration Runtime (IR) and the IP ranges listed under AzureDataFactory.westeurope
in the JSON file is because the IP ranges in the JSON file correspond to Azure services' public IP addresses, particularly when using Azure IR rather than SHIR.
Key Points to Consider:
- Self hosted IR vs. AzureIR:
- SHIR runs on your on-premises infrastructure or a virtual machine within your network, and it uses the outbound IP address of that machine or network, not the IP ranges listed in the JSON file.
- Azure IR uses a set of public IP addresses provided by Azure, which are listed in the JSON file under your region (ex.,
AzureDataFactory.westeurope
).
- IPs in SHIR:
- The IP address you see from your SHIR is the public IP of the environment where the IR is hosted. If this environment's IP is dynamic (ex., if it’s hosted in a cloud environment with dynamic IPs), it can change, which is why it's not listed in the static ranges provided in the JSON file.
- Whitelisting Approach:
- If you are using SHIR, you need to whitelist the public IP of the machine or environment where the SHIR is running. You might have to configure your infrastructure to use a static public IP if the current setup changes IP addresses dynamically.
- For Azure IR, you would whitelist the range of IPs provided in the JSON file under
AzureDataFactory.<region>
.
Using Azure IR:
- If feasible, switch to using Azure IR. This will allow you to use the IP ranges from the JSON file for whitelisting. These IP ranges are static and tied to the region of your Azure Data Factory.
Ensure StaticIP for SHIR:
- If you must use SHIR, ensure that the environment where it is running uses a static public IP address. You can then provide this static IP to the SFTP server administrators for whitelisting.
Verify with Network Setup:
- Double-check your network setup to make sure that the Self-hosted IR's IP address remains consistent, or use a service like Azure Virtual Network NAT, which can assign a consistent outbound IP address for all traffic from your virtual network.
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.