Hi,
I searched knowledge internally, but I could not find any solutions for your requirement.
I think that agents and environments have different IDs in database between source and destination server even if their name is same.
If you need, please raise an idea in this community.
Thanks
Yas