Hello,
I’m working on a cross-tenant deployment of a Power Platform solution — specifically Power Apps and Power Automate — and running into major issues with how the connections are handled when moving to the destination (end-user) tenant.
The problem is that connections are caching the development tenant’s credentials**, and when I import the solution into the target tenant, it forces me to manually reconnect every single connection individually.
For example:
- I have a Power App** with 20+ SQL stored procedures and tables connected.
- Upon importing the app into the new tenant, it prompts me to reconnect each SQL connection separately. Keep in mind that connected SQL procs also make you rename them when you add the data source in Power Apps.
- It cannot find the referenced connections because they are linked to the dev tenant’s environment/credentials and not dynamically pointing to a new connection resource in the destination tenant.
This obviously isn’t scalable as I plan to deploy across multiple clients/tenants.
What I’m looking for:
- Is there a best practice to avoid having to manually reconnect each data source during cross-tenant deployments?
- Should I be using something like Environment Variables tied to connections? (I have used Environment Variables before, but I am not sure if it solves the SQL procs/tables references in the app itself.)
- Is there a better way to package the app/flows so that the connections can be mapped dynamically at import time?
- Are there limitations I should be aware of when using SQL Server as a data source across tenants during this kind of deployment?
- Any advice or examples for how others are handling cross-tenant connection remapping for SQL-heavy apps?
I want to make sure I’m not missing something fundamental, as manually remapping 20-30 connections per app per tenant is not practical long-term.