Forum Discussion
Automatically update the connection for a semantic model after deploying it
- 2 months ago
Hi Charline_74 , Thank you for reaching out to the Microsoft Community Forum.
There is no dedicated REST API that can directly update or rebind the Lakehouse connection for a Direct Lake semantic model after deployment. Direct Lake semantic models work differently from traditional Import or DirectQuery models, so the standard datasource update APIs are generally not applicable here.
Automation can be done through metadata changes using TMDL, TOM/TMSL/XMLA or SemPy/Semantic Link scripting as part of a CI/CD process. In practice, many teams either maintain environment-specific semantic models or automate the replacement of Lakehouse references during deployment.
Hi Charline_74 , Hope you are doing well. Kindly let us know if the issue has been resolved or if further assistance is needed. Your input could be helpful to others in the community.