DevOps & Deployment Strategies
Source control and repeatable deployments for something that lives in a database
Power Pages configuration lives in Dataverse, not in files. That’s convenient right up until you want a code review, a diff, or an answer to “what changed on Tuesday”.
The tooling to fix this exists. The Power Platform CLI downloads your site configuration to disk as files you can commit, and uploads it into another environment. Around that you can build the same workflow you’d use for anything else.
Step by step
1. Get the site into source control
Download the site configuration with the CLI, commit it, and from then on treat the repository as the record of what the site is.
The first commit is the interesting one - it’s usually the first time anyone’s seen the whole configuration in one place. Expect to find things nobody remembers adding.
2. Decide where changes are made
This is the decision that makes or breaks the whole approach.
The design studio is a lovely editing experience, and it writes directly to whatever environment you have open. If people edit production directly, your repository is fiction within a week.
The workable pattern: make changes in a development environment, download, commit, and promote through the pipeline. Production is deployed to, never edited in. That requires agreement from everyone with access, not just a wiki page.
3. Separate configuration from environment
Anything environment-specific - URLs, endpoints, keys, provider registrations - has to be parameterised rather than carried along in the deployment. Otherwise promoting to production takes your development settings with it.
Deployment profiles handle part of this: one YAML file per environment that overrides site settings and content snippets by record ID at upload. Values can come from the pipeline through ${OS.VARIABLE}, which is where secrets belong rather than in the profile file. What a profile can’t do is create the identity provider registration or anything else that lives outside site configuration; that’s still per-environment setup.
4. Automate the pipeline
Once download and upload are commands, they can go in Azure DevOps or GitHub Actions like anything else. Azure DevOps has the Power Platform Build Tools with download and upload tasks for sites; GitHub has GitHub Actions for Microsoft Power Platform, which also support deployment profiles.
A useful pipeline: validate on every pull request, deploy to staging on merge, and deploy to production on an explicit trigger with an approval gate. Nothing exotic - just the ordinary discipline applied to a platform where it’s less common than it should be.
${OS.VARIABLE}.5. Know what the tooling doesn’t carry
Site configuration is not the whole picture. Dataverse schema travels in solutions, and data - reference data, content records your site depends on - travels in neither by default.
Write down what makes up a complete deployment for your site, because the day you rebuild an environment from scratch is the day you find out what you forgot.
How to make a mess and fix it
Deployment succeeds, site is broken. Something environment-specific came along that shouldn’t have. Check what’s parameterised.
Changes in production nobody made. Someone edited it directly. That’s a process problem, and it needs a conversation rather than a fix.
Deployment overwrites someone’s work. Two people edited the same environment. Development environments per developer if the team is big enough to need it.
Works in dev, fails in production. Environments have drifted. Compare them instead of guessing.
Wrapping up
The tooling for treating Power Pages as a real codebase is there. What it needs from you is the discipline: edit in development, promote through a pipeline, parameterise everything environment-specific, and keep production read-only.
Useful links
- Power Pages ALM overview
- Power Platform CLI support for Power Pages
- Tutorial: CLI download, upload and deployment profiles
- Power Platform Build Tools for Azure DevOps
- Migrate site configuration between environments
Next, the last one: going live and keeping it alive.