Forum Discussion

mbbozzuto's avatar
mbbozzuto
Advocate II
4 years ago
Solved

Deployment pipeline based parameters for datasets reports and dataflows

We use the Deployment Pipeline feature to develop and test reports before moving them into production.  A major challenge is that a change in a report may require a change in the dataset it is connected to, which in turn may require a change in the dataflow that we use in the dataset.  Is there a way to set parameters/environment variables in a deployment pipeline and/or workspace that can be accessed from within reports, datasets and dataflows so that the data source connection settings in each will update dynamically when moving an object within a deployment pipeline.

 

For example, a report in the dev workspace should be connected to the dataset in dev; when we publish that report to prod in the deployment pipeline, we want it to automatically reset its dataset connection to the prod workspace dataset.

5 Replies

    • mbbozzuto's avatar
      mbbozzuto
      Advocate II

      Nimrod_Shalit does a configuration need to be made to enable auto-binding or do the objects need to be in the same workspace but different pipelines (not sure if this is even possible)?

       

      In our case, auto-binding doesn't appear to be happening automatically because we have reports in one pipeline and our datasets in another pipeline as described in the docs, and when we deploy the reports, they retain the connection to the dataset they were already connected to rather than auto-binding to the new dataset (i.e., report connected to TEST dataset, when report deployed to PROD, the report retains connection to TEST dataset rather than updating to PROD dataset).

       

      Even if auto-binding can work, it would still be better to explicitly set a parameter variable to define the connection - in some cases, we need to use a variable, in other cases, we may want to explicitly set the connection directly to an dataset without a variable regardless of pipeline stage (eg. confirm that a report works with the PROD dataset while the report is in TEST stage before deploying to PROD stage).

  • LeeBenjamin's avatar
    LeeBenjamin
    Microsoft Employee

    Hi mbbozzuto 
    It could be that per changes in the M query, the parameters won't be recognized.
    As suggested above, using the deployment pipeline's parameters rule is probably be the preferable way here.