In my previous article [Step by Step] Configure and run pipelines in Power Platform, I covered how to deploy a solution from Development to Target environments using pipelines.
In this article, I will cover how to deploy Power Pages Websites from the Development to Target environments using pipelines.
Scenario:
- In my Development environment, named Developer Dev, I have a website called ‘Hello World’

- I need to deploy the Hello World website to my Test environment using Pipelines.

Prerequisites:
To move the Hello World website from Developer Dev environment to Test environment, both the Developer Dev and Test environments need to be switched to Enhanced Data Model.
- To switch to Enhanced Data Model, Open Power Platform admin center, select the Developer Dev environment, go to Resources > Power Pages sites.
- Turn on the Switch to enhanced data model

- Repeat this step for Test environment.

Once you enable the Enhanced Data Model, you can proceed with pipeline configuration.
Add Power Pages website to solution:
As a first step, in the Developer Dev environment, add the Hello World website to a Dataverse solution as shown below.
- Connect to Power Pages Portal.
- Go to Solutions and create a new Solution.

- Open the solution and add the Hello World website using Add existing > Sites

Configure the Pipeline:
- To configure a Pipeline, please refer my previous article [Step by Step] Configure and run pipelines in Power Platform, I covered how to deploy a simple Dataverse solution from Development to Target environments using pipelines.
Run the Pipeline:
- Once you have the Pipeline, run the Pipeline by opening Solution > Pipelines 🚀.
- In the Pipeline select the Deployment Stage > 🚀Deploy here
- Finally click Deploy to start the deployment.

- After successful pipeline run you will see the deployment details like Last deployed.

Validate the deployed site on Target:
As our pipeline ran successfully, let’s validate the deployment by going to Power Pages Portal and selecting Test environment.
- By default deployed Website will be in inactive state and available under Inactive sites

- Click on Reactivate and provide new website url.

- That’s how you deploy websites from development environments to target environments using Pipelines in Power Platform
🙂

![[Step by Step] Configure and run 'Pipelines in Power Platform'](https://rajeevpentyala.com/wp-content/uploads/2024/08/image.png)
![[Beginners] Power Fx: ShowColumns, AddColumns, RenameColumns and DropColumns](https://rajeevpentyala.com/wp-content/uploads/2024/04/record-ezgif.com-video-to-gif-converter-1-2.gif)
Leave a comment