Self Hosted Integration Runtime are tied to the ADF it is created in.
To use CI/CD with Self Hosted IR you need to do following steps:
- Create a new Data Factory other than the ones you using in CI/CD
process,then create the Self hosted Integration Runtime their.(This
ADF doesn't need to contain any of your pipeline or Dataset).
- Go to the newly created Integration Runtime and click on edit or pencil
icon. Go to sharing tab of opened window.
- Click on Grant Permission to other Data factory.(Search and Give Permission to all ADF
involved in CI/CD Process).
- Copy the resource id Displayed. Go to the DEV Data Factory and create new Self hosted runtime of type linked.

5.Enter the Resource ID when asked and click create.
6.Then proceed to setup CI/CD process through DEV Data Factory.
Since through ARM template in all other Data factory linked Self Hosted IR will be created and if you provided permission then everything will work.