Forum Discussion
Help with New-PowerBIReport ConflictAction Option
hey miguelsus2000 ,
I'm currently working on a PowerShell script to automate Power BI report migration via GitLab. Everything works as expected when using interactive login, but I ran into a blocker with Service Principal, which I later found isn’t supported for report uploads.
So I switched to using a domain resource account (no MFA), which has been granted Admin role on the target workspace. Most operations work fine, but the script fails with an “Unauthorized” error when trying to upload a report.
Given your experience, would you mind sharing a sample script or any implementation tips for handling this scenario? It would really help us move this CI/CD integration forward.
Appreciate any insights you can offer!
Resolved the report migration issue, it is working fine, migration replaces the existing reports fine as long as reports are owned by same service/resource account, if it is not owned by the account, it creates a new version. I need to findout a way replace the original version owned by a different user.