Hello @Sabyasachi Dash , welcome to Microsoft Q&A and thank you for your question. Also, thank you for adding tag azure-data-factory
. The tag adfs
is for something unrelated.
I am not confident there is an acceptable solution beyond the ternary architectures, but I am willing to give it a try. Let me tell you why it is difficult.
Even if you were able to give both IR the same name, you would still run into trouble. This is because a Linked IR and Shared IR are different. One is the 'owner' of the SHIR, and the other is the 'borrower'. If you deployed one over the other, you would end up with 2 'owners' or 2 'borrowers'. There can only be 1 owner, and a borrower needs an owner to point to.
My colleague has a workaround where he edits part of the template.
I can look into whether the IR name can be parameterized, if you like, but as explained above, you would still run into another issue.
p.s. I meant this as a comment, but Q&A is giving me a hard time.