Hi Francesco Pegoraro ,
Thankyou for using Microsoft Q&A and thanks for posting your query here.
As per my understanding you are trying to clone a Data Factory to a different Resource Group using an ARM template, however, you are encountering an error related to a Self-Hosted Integration Runtime (IR) and are looking for a solution for the same. Please let me know if this is not the correct understanding.
This error is due to an integration runtime with the same name in the target service instance, but with a different type. Integration Runtime needs to be of the same type during deployment.
Kindly implement the below points and see if helps:
- Refer to the Best Practices for CI/CD
- Integration runtimes don't change often and are similar across all stages in your CI/CD, so the service expects you to have the same name and type of integration runtime across all stages of CI/CD. If the name and types & properties are different, make sure to match the source and target integration runtime configuration and then deploy the release pipeline.
- If you want to share integration runtimes across all stages, consider using a ternary factory just to contain the shared integration runtimes. You can use this shared factory in all of your environments as a linked integration runtime type.
For more details, kindly refer to the troubleshooting documentation:
Hope it helps. Kindly accept the answer by clicking on Accept answer
button if it helped. Thankyou