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

Notifications

Announcements

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

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 78 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 75

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard