Study FAQ
How do environment variables and connection references work together in a solution deployment?
Also asked as 2
- Where should I configure a target SharePoint list and its connection when importing a solution?
- How do I move a solution without carrying over its development data-source settings?
Answer
Use environment variables for target-specific configuration, such as a SharePoint site and list. Use connection references to bind solution components to the approved target connection. Verify both the selected resource and the permissions of the identity behind that connection.
Include each required variable definition in the solution and supply the destination value on deployment. A current value takes precedence over the default. If a development current value must stay in development, remove it from the solution before exporting while leaving the definition. Custom code must retrieve the configured value through its supported runtime path.
Bind the connection reference with the target operator or administrator and record the owner without storing credentials. Use the documented Azure Key Vault integration for a Secret environment variable. In test, exercise a marked operation against the intended resource and verify it as the intended identity. A successful write to a similarly named development list is a failed release check.
Use environment variables in solutions · Pipeline deployment configuration
Full explanation
AB-400: Managing Solutions, Pipelines and Build Tools
Study guide · AB-400
Read the full explanation