ALM and governance Tip #24

Every connection reference arrives in the target environment unconnected

pac solution create-settings writes each connection reference with an empty ConnectionId, so the import has nothing to bind and the connections are still supplied in the UI afterwards.

You export a solution, generate the deployment settings file with pac solution create-settings, and hand it to the pipeline. Every entry the file writes carries an empty ConnectionId, so the import has no connection to attach to any of the references, and the target environment’s connections are still supplied in the UI afterwards - the manual step the file exists to remove.

pac solution create-settings reads the solution’s connection references and writes one entry per reference, with the logical name and the connector filled in and the connection left as an empty string. Each entry carries its own ConnectionId, and two entries can name the same connector, so a connector is not a key you fill once.

Fill ConnectionId on every entry with the ID of a connection in the target environment, read from that environment’s Connection References table, then import with the file: pac solution import --settings-file, or the Build Tools Import Solution task with Use deployment settings file and the path to it. The import checks that the connection is usable by the owner of the reference, so use one that owner owns or one that is shared.