Power Platform Build Tools automate common build and deployment tasks related to Power Platform. This includes synchronization of solution metadata (a.k.a. solutions) between development environments and source control, generating build artifacts, deploying to downstream environments, provisioning/de-provisioning of environments, and the ability to perform static analysis checks against your solution using the PowerApps checker service.
MIT License
199
stars
41
forks
source link
Is it possible to migrate sites in "Portal Management" to "Power Pages Management"? #644
Originally posted by **aka963** November 24, 2023
Hi,
I came across a situation where pac cli commands are unable to do the migration.
I have 2 environments, Dev and Uat. The both the environment was created in the first week of February 2023.
The development activities started immediately, the sites were created in Dev environment. It was getting created under "PORTAL MANAGEMENT".
Mean while Uat environment was idle till now, no sites were created. Now when we create sites in Uat environment, it gets created under "POWER PAGES MANAGEMENT".
Now I need to migrate the site in Dev to Uat, but it is not happening, I followed various articles, including microsoft articles. Below is the brief of approaches I used:
- Solutions approach | https://learn.microsoft.com/en-us/power-pages/configure/power-pages-solutions
- The sites does not appear when I go for "Add existing > Site"
- Configuration Migration Tool | https://learn.microsoft.com/en-us/power-platform/admin/manage-configuration-data
- On Dev I created the site using Starter layout 1 template, not able to identify which schema file represents it (https://learn.microsoft.com/en-us/power-pages/admin/migrate-site-configuration?tabs=CMT#transfer-website-metadata). Please let me know if you have any idea
- Power Platform CLI (v2.0.11) | https://learn.microsoft.com/en-us/power-pages/admin/migrate-site-configuration?tabs=CLI
- Used command: pac paportal download --path [PATH] --webSiteId [WEBSITEID] -mv 1, for downloading the site from Dev. Downloaded successfully
- Used command: pac paportal upload --path [PATH] -mv 1, for uploading the site to Uat. Upload unsuccessful, ended with many similar kind of messages "XRM Network error: The entity with a name = 'adx_webfile' with namemapping = 'Logical' was not found in the MetadataCache."
- Used command: pac paportal upload --path [PATH] -mv 2, for uploading the site to Uat. Partial Success, ended with messages "Message: The attachment is either not a valid type or is too large. It cannot be uploaded or downloaded.". I had to go to "Power Pages Management" and delete the partially created site. Already the attachment size was increased to max
After a lot of trials and errors I came across the above commands which were near to success but not entirely successful.
So before I move further can you please let me know whether it is possible to migrate sites in "Portal Management" to "Power Pages Management"?
Or
Should I manually transfer the files from dev site "Portal Management" to uat site "Power Pages Management"?
Or
Any other approach?
Please provide the details of the suggestion or recommendation you give.
Thank you
Discussed in https://github.com/microsoft/powerplatform-build-tools/discussions/643