Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
trevorgermain
Advocate I
Advocate I

No SetAllConnections support for ImportMode a show stopper!

As an enterprise SAAS organization, we need to automate all of our deployment processes. I've got a full deployment scenario scripted, but it fails on SetAllConnections due to the fact that the report(s) are import mode. We need this support ASAP!

5 REPLIES 5
v-ljerr-msft
Employee
Employee

Hi @trevorgermain,

 

For anyone who also need this feature, please vote the idea and add your comments here to improve Power BI on this feature. Smiley Happy

 

Regards

Try this one- https://msdn.microsoft.com/en-us/library/mt814715.aspx

It's newer and supports import mode for few datasources.

The request allows you to change server and database. How do you also update the credentials for the source? Obviously, if you are changing to a different environment (e.g. staging to production), there will be a different set of credentials.

{
      "connectionDetails":
      {
        "server": "new-Sql-Server.com",
        "database": "new-Sql-Database"
      },
      "datasourceSelector":
      {        
        "datasourceType": "Sql",
        "connectionDetails": 
        {
          "server":"My-Sql-Server",
          "database":"My-Sql-Database"
        }
      }
    }

What was nice about SetAllConnections was that I could set all connections to a specific connection string. My scenario:

- I develop a report, connecting to a local copy of a database. (e.g. instance = server1, db = DataWarehouse

- My teammate develops a different report, connecting to a local copy of his database. (e.g. server2, db = DW

 

With SetAllConnections, I can write a deployment that imports both reports from source control, and updates both reports to connect to production (e.g. instance = azureserver\production db = DataWarehouse).

 

With UpdateDatasource, I need to explicitly know that the "source" database to update is server1; DataWarehouse and server2; DW. This removes the ability to have a generic deployment script.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.