Forum Discussion

Charline_74's avatar
Charline_74
Icon for Resolver I rankResolver I
3 months ago
Solved

Automatically update the connection for a semantic model after deploying it

Hello,    I'm looking for a way to automatically change the connection for a semantic model connected to a lakehouse in Azure Data Lake Storage mode. Are there any APIs... Thanks in advance,
  • v-hashadapu's avatar
    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.