Atvik
Heimsmeistaramót Power BI DataViz
Feb 14, 4 PM - Mar 31, 4 PM
Með 4 tækifæri til að taka þátt gætirðu unnið ráðstefnupakka og komist í LIVE Grand Finale í Las Vegas
Nánari upplýsingarÞessi vafri er ekki lengur studdur.
Uppfærðu í Microsoft Edge til að nýta þér nýjustu eiginleika, öryggisuppfærslur og tæknilega aðstoð.
You can change data source connection strings of Power BI reports hosted in Power BI Report Server by using PowerShell to interact with the necessary APIs.
Mikilvægt
If you're using the latest version of Power BI Report Server, see Change data source connection strings in Power BI reports with PowerShell - Power BI Report Server.
Athugasemd
Currently this functionality only works for DirectQuery. Support for import and data refresh is coming.
Install the Power BI Report Server PowerShell commandlets. Find the commandlets and installation instructions at https://github.com/Microsoft/ReportingServicesTools.
Install the ReportingServicesTools
module directly from the PowerShell Gallery using the following command.
Install-Module ReportingServicesTools
Fetch the existing data source information for the Power BI file via the PowerShell commandlets:
$dataSources = Get-RsRestItemDataSource -RsItem '/MyPbixReport'
To view information for the first data source contained in the Power BI report:
$dataSources[0]
Update connection and credential info as needed. If updating the connection string and the data source makes use of stored credentials, you need to provide the account password.
To update a data source connection string:
$dataSources[0].ConnectionString = 'data source=myCatalogServer;initial catalog=ReportServer;persist security info=False'
To change the data source credential type:
$dataSources[0].DataModelDataSource.AuthType = 'Integrated'
To change the data source username/password:
$dataSources[0].DataModelDataSource.Username = 'domain\user'
$dataSources[0].DataModelDataSource.Secret = 'password'
Save the updated credentials back to the server.
Set-RsRestItemDataSource -RsItem '/MyPbixReport' -RsItemType 'PowerBIReport' -DataSources $dataSources
More questions? Try asking the Power BI Community
Atvik
Heimsmeistaramót Power BI DataViz
Feb 14, 4 PM - Mar 31, 4 PM
Með 4 tækifæri til að taka þátt gætirðu unnið ráðstefnupakka og komist í LIVE Grand Finale í Las Vegas
Nánari upplýsingarÞjálfun
Eining
Create reports with Power BI and Dataverse for Teams - Training
Learn how to build your first report with Microsoft Power BI and Dataverse for Teams.
Vottorð
Microsoft Certified: Power BI Data Analyst Associate - Certifications
Demonstrate methods and best practices that align with business and technical requirements for modeling, visualizing, and analyzing data with Microsoft Power BI.
Skjöl
Change data source connection strings with PowerShell - Power BI
Change data source connection strings using APIs in PowerShell - Power BI Report Server.