reportingservicestools
1 TopicChange data source connection strings in Power BI reports with PowerShell
Hi, I'm trying to automate PowerBI reports deployment using Azure Pipelines and PowerShell. I am able to connect to PowerBI using Connect-PowerBIServiceAccount and a service principal. I also can list workspaces and existing reports. My next task is to change the data source connections. I have been following this MS documentation https://learn.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis but when I try the following: # Get report parameters $parameters = Get-RsRestItemDataModelParameters '/Infusion_Model_Auto' I get this error: Failed to create a new session to http://localhost/reports/api/v2.0/me : | The cmdlet cannot protect plain text secrets sent over unencrypted | connections. To suppress this warning and send plain text secrets over | unencrypted networks, reissue the command specifying the | AllowUnencryptedAuthentication parameter. I'm not sure what's going on, since I already have an active connection. Thanks for any help.Solved3.3KViews0likes3Comments