2025-08-05
Implement DevOps for Power Apps

Power Apps Without Panic: The No-Drama DevOps & ALM Playbook for Power Platform
Episode Overview
Manual publishes feel fast—until they wreck production. We unpack why solution exports aren’t real ALM, how to move from “hope and ZIPs” to source control and pipelines, and the exact steps to make every release boring (in the best way). You’ll get a practical blueprint for environments, managed solutions, automated builds, and rollbacks that actually work.
Who This Is For
-
Power Apps/Automate makers turning “department apps” into business-critical systems
-
Platform admins and CoE leads standardizing environments and releases
-
DevOps/IT pros wiring Power Platform into Azure DevOps or GitHub Actions
-
Business owners sick of Friday publishes → Monday outages
Core Problems (Why ‘Publish’ = Panic)
-
No rollback: Publish has no “undo.” One bad push = outage + scramble.
-
ZIP illusion: Solution exports/imports ≠ versioning, ≠ audit trail, ≠ merge safety.
-
Config drift: Connectors/env vars/permissions differ per environment.
-
Manual steps: Human checklists miss a step; production pays the price.
-
Shadow changes: Hotfixes with no history → rework, mistrust, and tech debt.
The Sustainable ALM Blueprint
1) Environment Strategy (non-negotiable)
-
Dev → Test → Prod (plus Sandbox/Hotfix if needed).
-
Lock Prod: no direct edits; use managed solutions only.
-
Use environment variables for URLs, secrets, IDs—never hard-code.
2) Source Control Everything
-
Store solution in unpacked (source control friendly) format:
-
Canvas apps, model-driven apps, flows, connectors, env vars, PCF controls.
-
-
Require PRs with reviewers; enforce branch policies.
-
Keep a CHANGELOG.md (what changed, why, who approved).
3) Automated Pipelines (Azure DevOps or GitHub Actions)
-
CI: On PR merge, pack solution, validate dependencies, run linters/tests.
-
CD: Promote to Test automatically, to Prod on approval.
-
Use Managed on upper envs; keep Unmanaged only in Dev.
4) Testing That Matters
-
Unit/logic checks: Validate formulas, expression rules, flow actions.
-
Connector smoke tests: Mock/test critical APIs with safe data.
-
Happy path flows: Click-through scripts (Playwright/Power Fx tests) for key scenarios.
-
Health gates: Fail the pipeline if tests or dependency checks fail.
5) Rollbacks & Releases
-
Version every release (
v1.12.3). -
Keep the last known good managed solution artifact.
-
Rollback = re-deploy previous artifact, not “find an old ZIP.”
-
Publish release notes (features, fixes, breaking changes, owner).
Five ALM Traps (and Fast Fixes)
-
No Git: Start with solution unpack → repo → PRs.
-
One environment: Add Test today; block direct Prod edits.
-
Manual imports: Replace with pipeline tasks; parameterize env vars.
-
No rollback: Store artifacts; script “redeploy last good.”
-
Zero documentation: Add CHANGELOG + runbook (deploy/rollback/contacts).
Minimal Viable DevOps (Start This Week)
-
Create Dev/Test/Prod if you don’t have them.
-
Turn on solution pack/unpack and push to Git.
-
Add one pipeline: CI pack + CD to Test (auto), manual approval to Prod.
-
Move secrets to Azure Key Vault/Connection References + env vars.
-
Publish a one-page Runbook: how to deploy, verify, and roll back.
Governance & Guardrails
-
Maker policies: Who can create connectors/flows; DLP policies by environment.
-
Catalog & templates: Approved connectors, component libraries, solution skeletons.
-
Telemetry: Log deployments, failures, and user impact to a central dashboard.
-
CoE Kit: Use Microsoft’s CoE starter kit for inventory, analytics, and hygiene.
Troubleshooting Playbook
-
It worked in Test, failed in Prod: Check env vars/connection references/managed vs unmanaged diffs.
-
Flow died after import: Rebind connections; confirm permissions and DLP.
-
Connector mismatch: Version pinning; promote the connector as a managed asset.
-
Hotfix pressure: Use a hotfix branch + pipeline to Prod; never edit live.
Migration Path: ZIPs → Real ALM
-
Inventory solutions & dependencies.
-
Enable unpack; commit to Git; tag as
v0. -
Stand up CI pack + CD to Test.
-
Flip Prod to managed only; ban in-place edits.
-
Expand tests, add approvals, and iterate.
KPI Cheat Sheet
-
Mean time to restore (rollback minutes)
-
Deployment failure rate (pre- vs post-pipeline)
-
Lead time for change (idea → Prod)
-
% solutions with tests + env vars
-
of direct Prod edits (should trend to zero)
Host: Mirko Peters