Forum Discussion

evgenyg's avatar
evgenyg
Helper I
10 months ago
Solved

Create connection to semantic model using fabric resp api

Hi, colleagues! I'm trying to create a connection that can be used in a data pipeline to refresh a semantic model. I need to do this programmatically via the API. I'm trying to make a POST request to...
  • svenchio's avatar
    svenchio
    10 months ago

    Perfect, this clarification makes a world of difference, let's go one point at a time:

     

    #1. Start with "Is Power BI Semantic Model connection type via the API" and the answer is NO, I got the JSON list from https://api.fabric.microsoft.com/v1/connections/supportedConnectionTypes there are 246 supported types, but not Power BI Semantic Model 

    #2. Then how is this created?  When you configure a semantic model refresh in the Fabric portal, it creates a connection object internally that appears as "Power BI Semantic Model" — but this is not a standalone connection type you can create via the /connections endpoint, you can however, create this types of conections manually via the portal 

     or via the data pipeline as you shown before 

    And then bind this connection via fabric-rest-api-for-connection-binding-of-semantic-models 

     

    #3. So what's possible?  Unfortunately, this seems to be one case where seems like a fully automation is not yet possible the exact way you wanted, until this connection can be created by API, therefore, the closes strategy is manually create the "Power BI Semantic Model" connection up-ahead in the portal and then use the Bind Semantic Model Connection API to associate it with other semantic models programmatically.

     

    I know is not the answer you wanted to hear , but it's the answer to your question (don't kill the messanger hehehe)... wish in the near future all connections will be possible via the API. 

     

    Hopefully you accept this as valild once confirmed the information provided, if you deemed appropiate, accept this as a solution and kudos for the information provided. All the best mate.