We have:
- 3 SQL Server Databases: DB Dev, DB Test, DB Production
- 3 Power Platform environments: PP Dev, PP Test, PP Production
- Each Power Platform environment has an SQL connection targeting the database corresponding to the environment type.
We developed a Power Apps solution in the PP Dev environment that includes:
- Canvas apps communicating with DB Dev via a reference connection
- Power Automate flows communicating with DB Dev via a reference connection
- A reference SQL Server connection pointing to DB Dev
The PP Dev environment has a pipeline enabling automated deployment to PP Test and PP Production.
Since the pipeline will deploy managed solutions, how can we ensure that the solution in the PP Test environment targets the DB Test database and the solution in PP Production targets the DB Production database?
Do we need to create all 3 SQL Server connections (DB Dev, DB Test, DB Production) in the PP Dev environment and switch the reference connection to DB Test before deploying to PP Test, and then switch to DB Production before deploying to PP Production?
Or are there alternative approaches? If so, what are they?

Report
All responses (
Answers (