Use the ALM Accelerator with Power Pages sites
Makers can use ALM Accelerator components to apply source control strategies with Azure DevOps, including fully automated builds and deployments, without needing intimate knowledge of downstream technologies or manual intervention by the maker, administrator, developer, or tester. You can switch quickly from developing to source-controlling solutions and, ultimately, push apps to other environments with as few interruptions to your work as possible.
With the ALM Accelerator, you can source-control your Power Pages websites, transport them to downstream environments, and include them during solution commits.
Prerequisites for Power Pages website ALM
- Have an active Power Pages site.
- Install the ALM Accelerator for Power Platform app.
Include a website when you commit a solution
In the ALM Accelerator app, on the COMMIT SOLUTION pane, select Include Power Pages.
Select the website from the Website list, and then select COMMIT SOLUTION.
After the commit succeeds, the website components are contained in a folder named {SolutionName}\PowerPages{SiteName} under the repository branch.
Upload changes using a deployment profile
When you're working with multiple environments, consider using deployment profiles to make sure your changes are uploaded to the correct environment. You can provide deployment profiles to the ALM Accelerator in either of two ways: upload a deployment profile or add it to the solution branch.
Upload deployment profiles in the deployment settings
In the ALM Accelerator app, open a solution's deployment settings.
Select an environment, and then select the Power Pages tab.
Find and select the YAML file that contains the deployment profile.
Select Upload File.
Add deployment profiles to the solution branch
Commit the solution and include the Power Pages website.
Open the solution branch.
Create a folder named deployment-profiles in the PowerPages > Website folder.
In the deployment-profiles folder, create a deployment YAML file that contains environment-specific changes. The file name must start with your environment name; for example, dev.deployment.yml or validation.deployment.yml.
When the deployment-profiles folder is present in your repository, the ALM Accelerator automatically looks for the appropriate profile during deployment.
Upload a website to downstream environments
Use the DEPLOY SOLUTION option in the ALM Accelerator app to upload a Power Pages website to your downstream environments.
Complete website setup after deployment
Update the website record after the site has been deployed to your downstream environments.
Open the Power Platform admin center and select the downstream environment.
Under Resources, select Power Pages sites.
On the Power Pages sites page, select the website, and then select Manage.
In the Site Details section, select Edit.
In the Website Record list, select the website that was transported from your maker or development environment.
Select Save.
Clear the configuration cache
If your changes aren't reflected on the website after deployment, clear the configuration cache. You can clear the cache in a couple of ways.
Restart the portal in the Power Apps portal admin center
If you're an administrator, this is the easiest option.
Open the Power Apps portals admin center.
Navigate to Portal Actions > Restart.
Clear the cache on the service page
Site administrators can use this method. It requires more setup and planning but is the safest way to clear the configuration cache.
Authenticate to the site.
Assign the resulting contact record the Administrator Web role.
In your web browser, navigate to the {site URL}/_services/about page.
Select Clear cache.
Refresh the website in your browser to see the changes.
See also
Learn more about deployment profiles in the portal CLI documentation
Feedback
Submit and view feedback for