web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Power Platform CLI for...
Power Pages
Answered

Power Platform CLI for Power Pages Issue

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

In order to test the ALM features, I was experimenting with Power Platform CLI for Power Pages. I have created a Power Pages site in Environment 1. Using PP CLI, I connected to the Environment 1 and downloaded the Power Pages site which I created. Then, connected to Environment 2 using CLI and uploaded the downloaded website from Environment 1. The upload succeeded. I listed the Power Pages site available in the environment and the new website showed up in the list displayed.

Now when I open the Power Pages home page, I could not find the new website which I uploaded. I checked the Portal Management MDA app, it is listed there, but I'm unable to launch or open the website. 

Am I doing anything wrong here?

Categories:
I have the same question (0)
  • Verified answer
    rcarrigan Profile Picture
    67 on at

    Hi @Anonymous ,

     

    I've had trouble with this before as well, so I feel your pain. I believe that your issue lies in the statement "I could not find the new website which I uploaded". When you are migrating a Power Pages site from one environment to another for the first time, you need to follow a very specific process:

     

    1. Create the new site manually in the target environment using the same template used in the source environment.

    2. Delete the newly-created site (trust me).

    3. Delete the newly-created portal app (not portal management).

    4. Upload the website contents.

    5. Create a new website in the target environment with the "Use data from existing website record" box checked and your website name selected.

     

    Here are the official MS docs: https://learn.microsoft.com/en-us/power-pages/admin/migrate-site-configuration?tabs=CLI#prepare-the-target-environment

     

    Hope this helps!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @rcarrigan,

    I followed the above steps and I was able to deploy the site to another environment. Thanks for providing the solution.

    I have one more query regarding this. Can we deploy the Dataverse tables associated with the source website as well to the target environment? Is that possible currently?

     

  • rcarrigan Profile Picture
    67 on at

    Hi @Anonymous ,

     

    Glad to hear that it solved your problem. Are you trying to deploy the table configuration or the data within the table? You can package tables into a Power Platform solution in order to ensure they exist and are configured correctly in the target environment, but I don't believe it's supported to migrate data this way because that could cause personal data to be inadvertently loaded into a dev/test environment.

     

    If you *must* migrate data between environments, you could use the Dataverse Web API to query the data from the source environment and then write it to the target environment.

     

    References:

    Dataverse Web API: Use the Microsoft Dataverse Web API (Dataverse) - Power Apps | Microsoft Learn

    Adding components (i.e. tables) to solutions: https://learn.microsoft.com/en-us/power-apps/maker/data-platform/create-solution#add-solution-components

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Valantis Profile Picture

Valantis 59

#2
11manish Profile Picture

11manish 51

#3
omkarsupreme Profile Picture

omkarsupreme 27

Last 30 days Overall leaderboard