Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Answered

Power Platform CLI for Power Pages Issue

(1) ShareShare
ReportReport
Posted on by

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:
  • rcarrigan Profile Picture
    67 on at
    Re: Power Platform CLI for Power Pages Issue

    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

  • Community Power Platform Member Profile Picture
    on at
    Re: Power Platform CLI for Power Pages Issue

    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?

     

  • Verified answer
    rcarrigan Profile Picture
    67 on at
    Re: Power Platform CLI for Power Pages Issue

    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!

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 69 Super User 2025 Season 1

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 49 Most Valuable Professional

#3
Jon Unzueta Profile Picture

Jon Unzueta 43