-
As we move our work over from manually importing releases to Azure DevOps, so we would like to use the Migrator in there... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @Mindia620 , Yes, it is possible to make this migrator work in Azure DevOps pipeline. But that might take several hours of debugging. I would first make sure it works on your local computer, to save time. And then, move it to the pipeline. Overall, the the migrator is just 3 scripts combined together:
The Although I haven't tried it myself, there are a few things you can do: Use Windows Server VM for the pipeline. Not the Linux one.Install and import the PnP.PowerShell.Online module via the pipelineYou can add a step in the ADO pipeline that installs the legacy PowerShell module with Update the RunAllScripts.ps1 file:It is fine to modify the RunAllScripts.ps1 file to match your needs. You can also choose to abandon RunAllScripts.ps1 completely. It does not really have any migration logic in it.
Update it to use the Azure App Registration or SharePoint-only app. for example: Automate export and import of Power Platform solutions withCreate Azure App registration
Then you will be able to use cli to export and import solutions in your Azure DevOps pipeline Install the MS PP CLI:
Authenticate to an environment $clientSecret = 'XXXXavb-j' Export Solution
Run the Flow and Apps Migrator hereImport the converted Solution
|
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your detailed answer. We will look into doing that. |
Beta Was this translation helpful? Give feedback.
Hi @Mindia620 ,
Yes, it is possible to make this migrator work in Azure DevOps pipeline. But that might take several hours of debugging. I would first make sure it works on your local computer, to save time. And then, move it to the pipeline. Overall, the the migrator is just 3 scripts combined together:
The
RunAllScripts.ps1
file combines these files and adds some fluff for user-friendly executions.Although I haven't tried it myself, there are a few things you can do:
Use Windows Server VM for the pipeline. Not the Linux one.
Install and import the PnP.PowerShell.Online module via the pipeline
You can add a step…