Shipping Connection References and Environment Variables So Customer Pipelines Do Not Fail
A vendor's guide to the deployment settings template, empty documented variables, a pre-flight check, the import failure modes and a support runbook.
As a vendor you do not control the customer's pipeline. They may import with pac CLI, Azure DevOps, GitHub Actions, Power Platform Pipelines or by hand, with their own connections and policies. So ship three things with every release. A deployment settings template: the file pac solution create-settings generates, listing every environment variable and connection reference, with empty values and a document explaining each entry. Environment variables with no baked-in values: no current values exported, defaults only where safe for every customer. And a pre-flight check the customer runs before import. Then publish the failure modes seen at import and a support runbook. Solzet sets up this packaging for product teams.
Why do customer pipelines fail on an ISV's connection references and environment variables?
Because the solution was tested in the vendor's pipeline, with the vendor's connections and values, and the customer runs a different one. Microsoft documents how environment variables and connection references work and how a deployment settings file supplies them at import. What it cannot document is your distribution problem: dozens of customers, each importing your managed solution with a tool you did not choose, connections you have never seen, data loss prevention policies you cannot read, and an administrator who opens your release notes once.
The pac CLI commands, pipeline design and settings files for a team that runs its own pipelines are covered on Power Platform ALM with pac CLI, and this page does not repeat them. It covers the vendor's side: what to ship so that a pipeline you do not control can import your release without a support call.
What should the deployment settings template contain?
Every environment variable and connection reference in the release, with empty values, generated from the release artefact rather than written by hand. Run pac solution create-settings against the packed managed solution in your build, so the template always matches what ships. The file is JSON with two lists: EnvironmentVariables, each with a SchemaName and a Value, and ConnectionReferences, each with a LogicalName, a ConnectionId and a ConnectorId. The customer fills it per environment and passes it to pac solution import, to the import task of Power Platform Build Tools or to the equivalent GitHub action.
JSON carries no comments, so ship a companion document with one row per entry. It is the page the customer's administrator will actually read.
| Column in the companion document | What to write |
|---|---|
| Schema or logical name | Exactly as in the settings file, under your publisher prefix |
| Type | Text, number, yes/no, JSON, data source or secret; or the connector for a connection reference |
| Purpose | One sentence on what breaks if it is wrong |
| Format and example | A made-up example in the right shape, never a real value from your environments |
| Required | Whether import or the first run fails without it |
| Identity | For a connection reference, which kind of account the connection should belong to and which permissions it needs |
| Since version | The release that introduced it, so an upgrading customer sees what is new |
Why should a managed solution ship with no baked-in environment variable values?
Because a value exported from your environment is a value from your environment. An environment variable has a definition with an optional default value, and a separate current value. If the current value is left in the solution, it travels with the export, and a customer can end up calling your test endpoint or reading your SharePoint site until someone notices. Remove the current value from the solution before the release build; the maker portal offers this on the variable, and your build can check that no value component is present.
Keep a default value only where it is correct for every customer, such as a feature switch that starts off. Leave everything customer-specific empty, so the import experience asks for it and a pipeline import gets it from the settings file. Secrets never go in a default or a settings file: use the secret type, which references a secret in the customer's own Azure Key Vault, and document the Key Vault access it needs as Microsoft describes it.
How should connection references be designed for customers you do not control?
Few, stable and explained. Connections themselves are not solution components: the customer creates them in each environment, and the connection reference in your solution points flows at whichever connection the customer chooses.
- One connection reference per connector per purpose, under your publisher prefix, shared by the flows that need the same identity. Twenty references for one connector is twenty chances to miss one.
- Never rename or recreate a connection reference once released. A new logical name breaks every customer settings file and leaves the old reference orphaned.
- Say which identity each connection should use: a service account or a service principal where the connector supports it, never a named employee who will leave.
- Ship custom connectors in their own solution and have customers import it first, where Microsoft guidance for your scenario recommends that, so references to the connector resolve.
- Avoid connectors that customers often block in data loss prevention policies, or say plainly in the documentation that the policy must allow them together.
What should the pre-flight check verify before the customer imports?
Everything that causes an import failure or a flow switched off, checked before the import rather than diagnosed after it. Ship it as a read-only script the customer runs with pac CLI or the Web API, or as a checklist where they will not run your code, and make the output something they can paste into a support ticket.
- Dependencies: required Microsoft solutions and your own core solution are installed at or above the minimum version.
- Upgrade path: the installed version of your solution, so a customer two releases behind is told which releases to import first if your upgrade path requires it.
- Connections: a connection exists for every connector in the settings file, in a connected state, owned by or shared with the identity that will turn the flows on.
- Data loss prevention: the environment policies allow the connectors your flows combine, in the same data group.
- Key Vault: for each secret variable, the vault and secret exist and the access Microsoft documents for secret environment variables is in place.
- Settings file: every entry in the template has a value or is documented as optional, and no entry is missing for this release.
- Importing identity: the user or service principal running the import has the security roles needed to import and to turn on flows.
Which failure modes appear at import, and what causes each?
Publish this table with the release. Most support tickets after a release fall into one of these rows, and a customer who can find their row fixes it without you.
| Symptom | Usual cause | Fix |
|---|---|---|
| Import fails asking for an environment variable value | Variable with no value and no default, and the pipeline passed no settings file or an old one | Regenerate the settings file from this release; fill the new entries |
| Import succeeds, flows are off | No connection mapped for a connection reference, or the connection owner cannot turn the flow on | Map the connection in the settings file; turn flows on as the connection owner |
| Flow cannot be turned on, policy error | Data loss prevention policy separates or blocks the connectors the flow combines | Customer admin adjusts the policy or grants an exception for the environment |
| Flow runs against the wrong system | A current value from the vendor environment was exported in the solution | Remove value components from the release; customer sets the current value |
| Secret variable cannot be read | Key Vault access not set up as Microsoft documents, or wrong secret reference | Run the pre-flight Key Vault check; fix access in the customer subscription |
| Settings file rejected or entries ignored | Logical name changed between releases, or file from a previous release | Keep names stable; version the template with the release |
| Missing dependency on import | Core solution, custom connector solution or a Microsoft solution not installed or too old | Import dependencies first, in the order the documentation gives |
What belongs in the support runbook for import failures?
A runbook turns a support ticket from a conversation into a checklist. Write it for your first-line support team, not for developers, and keep it with the release documentation.
- First ask: the release being imported, the installed version, the import tool, the pre-flight output and the exact error text or a screenshot of the solution history entry.
- Map the error to the failure mode table and send the matching fix with the line from the companion document.
- If flows are off after import, ask who owns each connection and which identity ran the import before anything else.
- Never ask the customer to export and send their environment variable values or settings file with secrets; ask for the names and whether a value is set.
- Escalate to engineering only when the failure is not in the table, and add the new row to the table after the fix.
- Keep a record of which customers are on which release, so you know who a breaking change in the next release will reach.
What are the steps to ship connection references and environment variables safely?
Inventory, strip, generate, document, pre-flight, test as a stranger, publish. Build the generation and the value check into your release pipeline, so a release cannot ship without its template.
- Inventory every value that differs per customer: List every endpoint, tenant identifier, site address, feature switch, secret and connector the solution uses, and move each one into an environment variable or a connection reference under your publisher prefix.
- Strip baked-in values: Remove current values from the solution before the release build, and keep a default value only where it is correct for every customer, so nothing from your own environments travels to theirs.
- Generate the deployment settings template: Run pac solution create-settings against the packed managed artefact for every release and ship the file with empty values, versioned with the release.
- Document each entry: For every environment variable and connection reference, publish the schema or logical name, type, purpose, expected format, whether it is required, and which identity the connection should use.
- Ship a pre-flight check: Give the customer a read-only script or checklist that confirms dependencies and versions, connections, data loss prevention policies, Key Vault access and the importing identity before they import.
- Test the release through a stranger pipeline: Import every release into a clean environment with only the settings file and documentation, as a customer would, and into an environment holding the previous version as an upgrade.
- Publish the failure modes and the runbook: Ship a short list of import failures with cause and fix, and a support runbook that tells your support team what to ask for first.
What does Solzet set up for product teams shipping managed solutions?
Solzet sets up this packaging for product teams: the inventory of values that must leave the components, the environment variables and connection references under your publisher, the build that generates the deployment settings template and refuses a release with baked-in values, the companion document, the pre-flight script, a clean-install and an upgrade test through an import route your customers use, and the failure mode table and support runbook. Our own senior consultants and developers do the work, in your repository. The Dataverse side of a product, from plugins to custom APIs, is on Dataverse plugin development for ISVs, the wider Power Platform scope on Power Platform consulting, and the Marketplace checks on an AppSource-ready managed solution.
If your customers would rather not carry Microsoft licensing for the CRM your product connects to, a custom CRM is the alternative we also build. We recommend the right solution: Dynamics 365 (Customer Engagement, Business Central or Finance and Operations), Power Platform, or a custom-built CRM. One team for CRM, ERP and the integration between them.
What do people ask us?
Why does our managed solution import fail in the customer pipeline but not in ours?
Usually because the customer pipeline supplies a different or outdated deployment settings file, has no connection for a connection reference, or runs under data loss prevention policies yours does not have. Ship a settings template generated from each release, documentation for every entry and a pre-flight check.
Should an ISV include environment variable values in the managed solution?
No current values. Remove the current value from the solution before the release build so values from your environments never travel to customers. Keep a default only where it is correct for every customer, and use the secret type backed by the customer Key Vault for secrets.
What is a deployment settings file for a Power Platform solution?
A JSON file, generated with pac solution create-settings, listing the solution environment variables by schema name and connection references by logical name and connector. The customer fills in values and connection IDs per environment and passes the file to the import.
Why are flows turned off after importing a managed solution?
Usually a connection reference had no connection mapped, the connection owner cannot turn the flow on, or a data loss prevention policy blocks the connectors the flow combines. The pre-flight check should catch all three before import.
Can we rename a connection reference in a later release?
Avoid it. A new logical name breaks every customer settings file and leaves the old reference behind. Keep logical names stable for the life of the product and add new references only when a new connector or identity is needed.
What should a pre-flight check for a managed solution import verify?
Dependencies and versions, the installed release, a connected connection for every connector, data loss prevention policies, Key Vault access for secret variables, a complete settings file and the security roles of the importing identity.
Does Solzet set up release packaging for ISV product teams?
Yes. Solzet sets up environment variables and connection references, the settings template generated in the build, the companion document, a pre-flight script, clean-install and upgrade tests and the support runbook, in your repository.
Where should you go next?
Power Platform ALM with pac CLI
Export, unpack, pack, import, pipelines and settings files.
Dataverse plugin development for ISVs
Plugins, custom APIs and what a managed solution must contain.
An AppSource-ready managed solution
What fails validation and the order of work to fix it.
Onboarding package for an add-on
A standard package and readiness form for customer setup.
Power Platform consulting
Power Apps, Power Automate, Power Pages, Copilot Studio and Dataverse.
Which solution is right for your business?
Tell us what you need. A senior consultant replies within one business day with a recommendation (Customer Engagement, Business Central, Finance and Operations, Power Platform or a custom-built CRM), not a sales script.