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 wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please "Accept as Solution" and give a 'Kudos' so other members can easily find it.
Thank you,
Pavan.