[Bug] pa app add flow binds to a non-portable connection — flow bindings aren't restored when the Code App is redeployed to a new environment
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- authentication, ci-cd, cli, cloud
Línea de trabajo
Comienza en el punto de entrada de pa app add flow y compara su gestión de conexiones con pa app add data-source, especialmente --connection-ref y --solution-id. Después, sigue el manejo de flow connectionReferences por parte de pa app push y la ruta de autenticación documentada de pa app list-flows. Se considera terminado cuando un enlace de flujo se restaura después de importar una solución en otro entorno, o cuando push advierte claramente o falla si no puede resolver el enlace.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
Unlike pa app add data-source, which supports --connection-ref <name> --solution-id <id> to bind through a solution-portable Connection
Reference, pa app add flow has no equivalent option. It always creates a
raw, environment-specific connection for the flow. As a result, a Code
App's Power Automate flow bindings are not portable across environments
the way its other data sources are — moving/redeploying the Dataverse
solution and Code App to a new environment does not restore them, and
pa app push doesn't warn that anything is missing.
Steps to Reproduce
- Initialize a Code App in a Dev environment, add a flow with
pa app add flow --flow-id <dev-flow-id>, andpa app push. - Export the Dataverse solution (tables, the flow, its own connection
references) from Dev and import it into a new environment (UAT/Prod),
either natively or via Power Platform Pipelines. Reconnect the
solution's own connection references as prompted. - Push the Code App to the new environment — either interactively, or
non-interactively as a service principal (pa app push --non-interactive) — reusing the same committedpower.config.json.
The push reports success. - Open the Code App in the new environment's maker portal and check the
Flows tab.
Expected behavior
Either the flow binding is restored automatically (e.g. resolved by the
flow's portable workflowIdUnique against the new environment), or the
push fails / warns clearly that the flow connection couldn't be resolved
in the target environment.
Actual behavior
The push succeeds silently. The app's Flows tab reads "There are no flows
used in this app," because the committed power.config.json's
connectionReferences for the flow still reference the source
environment's (Dev's) connection, which doesn't exist in the target
environment.
The only documented fix
(https://learn.microsoft.com/en-us/power-apps/developer/code-apps/how-to/add-flows)
is to rerun pa app add flow --flow-id <id> once per flow, interactively,
authenticated against each target environment, and keep a separate
power.config.<env>.json per environment.
We also confirmed this step can't be moved into CI/CD: the
service-principal doc
(https://learn.microsoft.com/en-us/power-apps/developer/code-apps/how-to/use-service-principal)
only documents SP auth for pa app push, never for pa app add flow /
pa app list-flows; the add-flows page phrases the access requirement as
"the person who runs pa app add flow must have access to the flow
and its underlying connections," which reads as user-account-only.
Screenshots or Error Messages
N/A — no error is raised; the maker portal's Flows tab is simply empty in
the target environment after a successful push.
Environment information
- Framework, build tool or relevant package used: React + TypeScript +
Vite,@microsoft/power-apps-cli(pa) v1.x - Any connection/components: Power Automate solution-aware instant flows
(Power Apps trigger) via theshared_logicflowsconnector; also
Microsoft Dataverse and SharePoint Online data sources (unaffected,
since those use portable Connection References)
Additional context
This is the one manual, human-in-the-loop step left in an otherwise fully
automated multi-environment CI/CD pipeline (Build → Dev → UAT → Prod via
Azure Pipelines with service-principal auth). Two possible fixes:
- Add
--connection-ref/--solution-idsupport topa app add flow,
mirroringpa app add data-source, so the flow binding can be made
solution-portable. - Support (and document) running
pa app add flow/
pa app list-flowsunder service-principal authentication
(PA_CLI_USE_SP_AUTH), so this step can be automated in a pipeline
instead of requiring an interactive maker login per environment.
Happy to share our power.config.<env>.json setup and pipeline YAML
(Azure DevOps) if useful for reproduction.
- Lenguaje dominante
- TypeScript
- Estrellas
- 504
- Forks
- 145
- Merge medio
- 4 h 3 min
- PR fusionados (30 d)
- 1
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/PowerAppsCodeApps
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
microsoft/PowerAppsCodeApps#465 ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
microsoft/PowerAppsCodeApps#463 · 1 comentario ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
microsoft/PowerAppsCodeApps#462 ·
-
bug
Dificultad 5/5 Más de una semana Aptitud para principiantes 28/100
microsoft/PowerAppsCodeApps#460 · 3 comentarios ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
microsoft/PowerAppsCodeApps#459 ·
Todos los issues de microsoft/PowerAppsCodeApps
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
mksglu/context-mode#1200 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
anthropics/claude-code#96687 ·
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
AOSSIE-Org/DebateAI#582 · 2 comentarios ·