Forum Discussion
elitekrishnan
8 years agoFrequent Visitor
Power BI Reports Connection String change on Power BI Report Server using Rest API
Hi, I am trying to publish Power BI Reports to Power BI Report Server in different environment like Dev, SIT, Prod through PowerShell Script using Rest API. While publishing, I am changing the PB...
Plantje
Helper I
8 years agoCool! Thanks! That is most likely something I can use in the coming sprints when creating a deployment tool
Plantje
Helper I
8 years agoI have found another work around.
If you edit the C:\Windows\System32\drivers\etc\hosts\file file (correct, no extension)
And add something like this:
[IP of your SQL Server DB] SQLServer
Then you can do that on all your application servers and in the report you can use "SQLServer" as server name. Then you can deploy the reports without editting them.
- elitekrishnan8 years agoFrequent Visitor
Thanks,
In my case, need to change both database and server name in all environments.
- Plantje8 years ago
Helper I
Ah ok, that will be harder. Microsoft should just do an update :)
- Anonymous8 years agoNot applicableI tried to change host file but change only reflects when you restart the powerBI report server