Forum Discussion
Programmatically create a Power BI dataset with data source connections
- Anonymous1 year ago
Hi gb_asc,
Thank you for reaching out in Microsoft Community Forum.
Thank you Deku , lbendlin for the helpful response.
Please follow below steps to Programmatically create a Power BI dataset with data source connections;
1.Define your model with SQL Server as the source using the Microsoft.AnalysisServices.Tabular library.
2.Connect to the Power BI workspace using the XMLA endpoint and deploy the dataset.
3.Use the Power BI Admin REST API to set data source credentials after deployment (XMLA doesn't support credential input).
4. Make sure you authenticate with a gateway or service principal to securely manage credentials.
Please continue using Microsoft community forum.
If you found this post helpful, please consider marking it as "Accept as Solution" and give it a 'Kudos'. if it was helpful. help other members find it more easily.
Regards,
Pavan.
Hi gb_asc,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, kindly "Accept as Solution" and give it a 'Kudos' so others can find it easily.
Thank you,
Pavan.