Below you will find pages that utilize the taxonomy term “Connection references”
posts
Sharing Connection References with Service Principal in Azure DevOps for Power Platform ALM
Introduction When setting up your Azure DevOps pipeline for deploying a Power Platform solution, you may encounter an error message if your solution relies on connection references.
The reason given was : An unexpected error occurred.
This generic message does not provide much help and can occur for multiple reasons. In my scenario, it was related to the connection references in the target environment not being shared with the service principal.