Using solutions with Power Pages (preview)
[This topic is pre-release documentation and is subject to change.]
Using solutions with Power Pages allows you to contain and transport all website configuration using standard Power Platform solutions. You can combine all website and Dataverse components into a single solution artifact and participate in advanced ALM capabilities to deploy websites to destination environments using managed solutions.
Important
- This is a preview feature.
- Preview features aren’t meant for production use and may have restricted functionality. These features are available before an official release so that customers can get early access and provide feedback.
Prerequisites
To try this feature, you'll require two Power Platform environments that have the enhanced data model enabled, one designated as the source and the other as the target. See Power Pages enhanced data model to enable the enhanced data model for an environment.
Each environment will required a site that is created using the new data model. See create a website with an enhanced data model.
Add Power Pages site and components to a solution
From the Power Pages home page, select the Solutions tab.
Create a new solution using the new solution command on the command bar. Fill in the solution details and select Create to create the new solution.
Navigate to the solution.
From the Add Existing menu, select Site.
From the Add existing sites panel, select site(s) and choose Add.
Note
- If the Site option doesn't appear, then your environment does not have any websites created using the enhanced data model.
- The process will add all of the site components to the solution.
Add website components
As you create and add new components to your website, you can add them to your solution containing the website.
Note
New website components are not automatically added to a solution containing a site. You will need to add any new website components to a solution following the steps below.
From the Power Pages home page, go to the Solutions area.
Select the solution to which you want to add components.
Select Add existing > More > Other > Site Component.
From the Add existing Site component panel, select the site components and select Add to add them to the solution.
Alternatively, you can add the required components to your site.
In the solution, select the Site.
From the main menu, choose Advanced and then select Add required objects.
A panel will appear, select OK to continue. After a few moments, you'll see a message that the required objects have been successfully added to the solution.
Export solution from source environment
Select the solution and choose Export solution from the main menu. See Solution Concepts for more information on importing and exporting solutions.
Import solution to destination environment.
Select Import solution from the top toolbar.
Browse to the location of the exported solution, select the file and choose open.
Select Next.
Select Import.
Once the solution is imported, it will appear under solutions list.
Note
If the solution is unmanaged, select Publish all customizations in the destination environment.
Reactivating site on target environment
Once the website has been transferred to the target environment, you will need to reactivate the website.
On the target environment, on the Power Pages home screen, select Inactive sites, you should see the website you migrated to the environment.
Select Reactivate.
You can specify the Reactivated website name and Create a web address or leave default values.
Select Done.
The website updates from the source environment should be reflected in this new target environment. Going forward, you should be able to transfer configuration from your source to target environments by transferring the website configuration data.
Binding enhanced data model website record to a site
The following steps show how you can update an existing website using the configuration from the source environment.
Navigate to the Power Platform admin center
Select the destination environment
Select Power Pages sites from the Resources section.
Select the destination site, select the ellipse (…) and choose Manage to display the site details page.
Choose the Edit button from the Site Details section and select the imported site record in the Website Record dropdown, then choose Save.
Choose Site Actions, and then Restart site.
Now your destination site is updated with data from source environment site.
Note
You can't delete website configuration from the Power Pages management app that is part of a managed solution. To remove the website, delete the managed solution.
Frequently asked questions:
What is best practice when you're migrating a Power Pages website using solutions?
Refer to Overview of application lifecycle management with Microsoft Power Platform for best practices.
After importing site configuration data in a managed solution I edited my website in the target environment. I don't see any new changes when I import managed solutions from my source environment.
Editing the site configuration data in the target environment is discouraged as it will result in the creation of an unmanaged layer and changes from the source won't reflect in the target. To fix it in the target environment user needs to remove the unmanaged solution layer. See Solution layers for more information.
See Also
Feedback
Submit and view feedback for