adf access sql database in another subscription

Priya Ananthram 1 Reputation point
2022-07-26T23:11:32.783+00:00

HI
I need to access a PASS db through ADF in another subscription
From what I see my options are
1)Whitelist IP range of ADF in the PASS db.
2)Use a shir in the same vnet .But this I need to manage a VM etc.

Any other options?
Kind Regards
Prihya

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
{count} votes

2 answers

Sort by: Most helpful
  1. PRADEEPCHEEKATLA 91,496 Reputation points Moderator
    2022-07-27T10:46:32.177+00:00

    Hello @Priya Ananthram ,

    Thanks for the question and using MS Q&A platform.

    Yes, you can access Azure SQL Database in another subscription from Azure Data Factory.

    Make sure to add the Azure Integration Runtime IP addresses of the ADF region in the Azure SQL Database firewall.

    225283-image.png

    Error: If you are not adding Azure Integration Runtime IP addresses of the ADF region, you will experience this error message:

    225281-image.png

    Success: Once you add the ADF IR IP addresses it will works as excepted.

    225208-image.png

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    1 person found this answer helpful.
    0 comments No comments

  2. Pratik Somaiya 4,211 Reputation points Volunteer Moderator
    2022-07-27T05:10:52.53+00:00

    Hello @Priya Ananthram

    If the database and ADF are in the same tenant, the databases in any subscription can be accessed via managed identity or service principal

    While creating the linked service in ADF you can select managed identity option

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.