title: How to update Azure SQL datasource credentials of PowerBI dataset programmatically?
body: <p>I have an Azure Devops Process which uses a Service Principle to deploy a Power BI report from a .pbix file and updates the data source to point at the production Azure SQL server.</p>
  <p>The outcome is that the report and dataset are deployed and the connection is updated, however the CREDENTIALS are blank (Username and Password), so in order to make it usable, someone has to log on to Power BI service, open the Dataset and update the credentials, which means there is a manual step involved in our CI/CD process.</p>
  <p>I need help with updating the source credentials for the new data source via code so that this manual process is not needed</p>
  <p><img src="https://i.stack.imgur.com/xaksl.png" alt="snippet of powerbi logging page" /></p>
  <p>Any suggestion will be of great help. Thank You.</p>