microsoft / powerplatform-build-tools

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
198 stars 40 forks source link

Power Platform CLI and Portal Config not working #630

Open maryha opened 1 year ago

maryha commented 1 year ago

We have been using the Power Platform CLI Portal Tools in Azure DevOps for the past 6 months to pull our Power Portal configuration into a repository and then deploy to other environments.

This week, those tools started behaving badly. This morning we discovered that all the Web Page files had been deleted from the repository (although they are still in the original environment's Dataverse). We did not realize this and so deployed to the next environment and all the pages were then deleted from that environment. A later build pipeline inserted a new .paportal folder. Then that disappeared and the build restored the web pages to the repository, but when we deploy to the next environment, all the pages still get deleted.

The manifest file is showing all the pages as deleted, but they are NOT deleted! image

Now, I don't know how to get the Export and Import configuration actions to work correctly in Azure DevOps.

maryha commented 1 year ago

I've set the pipeline to use version 1.28.3 for now and that is working. But I'll want to know when we can go back to the latest version.

maryha commented 1 year ago

Okay, still having issues even with 1.28.3. It seems to be some error that is occurring that is not cleaning up the .paportal folder. Sometimes the code gets moved properly to the main folder and sometimes it doesn't. Today, this caused all our web roles to be deleted from the next environment. This is so frustrating.

MrRishabhJain commented 2 months ago

Hey @maryha, are you facing this issue?

maryha commented 2 months ago

Hi @MrRishabhJain - I don't know. I am a consultant, and I am no longer able to access the DevOps pipeline where we had this implemented.