# Power BI & EDITable deployment pipelines

We will now create a pipeline in both Power BI and EDITable, and walk through the entire deployment process from beginning to end.

In this section, we will deploy the report in stages that use the same destination. This can be useful when you want to maintain version control for your EDITable visuals before sharing the final version of your content with business users across the organization.

## 1. Set up PowerBI deployment pipeline <a href="#id-1.-setup-inforiver-with-powerbi-deployment-pipelines" id="id-1.-setup-inforiver-with-powerbi-deployment-pipelines"></a>

The first step is to set up a Power BI pipeline. You can refer to [this page](https://learn.microsoft.com/en-us/fabric/cicd/deployment-pipelines/get-started-with-deployment-pipelines?tabs=from-fabric%2Cnew-ui) to get started.

1. After creating a pipeline, you can assign workspaces to each stage, i.e., the Development/Test/Production stages of the deployment pipeline. [Learn more about assigning workspaces](https://learn.microsoft.com/en-us/fabric/cicd/deployment-pipelines/assign-pipeline).

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FCKXnRDjY6JGQt8F8aIum%2Fimage.png?alt=media&#x26;token=7d7c55c0-f72b-4157-a304-039f9a528b02" alt=""><figcaption><p>Assign workspaces</p></figcaption></figure>

2. Let us assume you have a Power BI report with an EDITABLE visual that you want to deploy in stages. Publish it to the workspace mapped to the first stage (development) of the pipeline.

For this demonstration, we have created a report named 'EmployeeDetails' and uploaded it under the **Inforiver - Pipeline - Dev** workspace.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FLtP9WGZZL86PWFKEIIDa%2Fimage.png?alt=media&#x26;token=3b94597b-f89a-45a0-9fba-5df17a9579a0" alt=""><figcaption><p>Publish to the Development stage</p></figcaption></figure>

### 1.1. Deploy report to the next stage

1. Go to the **Deployment Pipelines** tab and select the required pipeline that you created in step 1.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FsbQJwVEF4UO8HhpaXpI5%2Fimage.png?alt=media&#x26;token=50919a30-bfb4-4f42-8a8c-554df6fb39fe" alt=""><figcaption><p>Deployment pipeline</p></figcaption></figure>

2. From the first stage, select the report and its corresponding semantic model to be deployed to the test environment and click **Deploy**. [Learn more about deploying reports.](https://learn.microsoft.com/en-us/fabric/cicd/deployment-pipelines/deploy-content)

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2Fj38Rbys8ZUHUciEcYzLy%2Fimage.png?alt=media&#x26;token=ef2dd59d-a4af-4713-b1e7-53693b46f89d" alt=""><figcaption><p>Select items for deployment</p></figcaption></figure>

3. Review the items that are being deployed and click on the **Deploy** button.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2Fx2HA7p26q839e4nF1yzu%2Fimage.png?alt=media&#x26;token=f8488545-0e52-4f16-ba49-28c4d0df0b92" alt=""><figcaption><p>Start deployment</p></figcaption></figure>

4. After the deployment is complete, you will be able to see the report and the semantic model in the next stage. In this case, it is the **Inforiver - Pipeline - Test** workspace.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2F2kDn6vpTu0vtZ3zHK8eT%2Fimage.png?alt=media&#x26;token=1959439e-e860-4c55-8228-732635fa8c68" alt=""><figcaption><p>Deployed to 'Test' workspace</p></figcaption></figure>

5. Similarly, after the testing stage, you can deploy the report and its semantic model to the production environment by repeating the above steps.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FHkfmOhnuuBkhwhJiXObz%2Fimage.png?alt=media&#x26;token=0f218a0d-4510-450d-8f1f-be05b2e1cc88" alt=""><figcaption><p>Deploy to next stage</p></figcaption></figure>

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2Fz1O9YZduSJc8MTZT8Z91%2Fimage.png?alt=media&#x26;token=1a05fae3-3ed4-42ac-a714-62c8cd68806b" alt=""><figcaption><p>Deployed to production</p></figcaption></figure>

{% hint style="info" %}
When deploying reports, please ensure to deploy their corresponding semantic models.
{% endhint %}

## 2. Set up EDITable deployment Pipeline

1. In the EDITable workspace, go to **Utility > Pipeline.** Click on **Add Pipeline.**

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FDYIPwVIdDU19cGeYBrOL%2Fimage.png?alt=media&#x26;token=f146f1a0-faa1-48f6-8e60-820b07b3316c" alt=""><figcaption><p>Add Pipeline</p></figcaption></figure>

2. Click on **Add Stage** and you can start adding the required stages — **Dev, Test** and **Prod**.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2F7VxSz8bofPVSlWQCe4zr%2Fimage.png?alt=media&#x26;token=fa2ca90e-645c-4894-a2c8-9243a6e9815a" alt=""><figcaption><p>Add stages</p></figcaption></figure>

### 2.1. Add report to pipeline

1. Click on **Add Report.**

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FrIoHf5UjNZmlctg6sjBU%2Fimage.png?alt=media&#x26;token=6907fd11-822f-463c-9682-19e7785c600c" alt=""><figcaption><p>Add Report</p></figcaption></figure>

2. A pop-up appears as shown below, based on the number of stages created.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2F3EezWuNJtCdWs0AYTOti%2Fimage.png?alt=media&#x26;token=febdc2ae-9291-4cf8-b4da-2276015de56e" alt="" width="563"><figcaption><p>Add report IDs</p></figcaption></figure>

3. The report IDs can be copied from the address bar of the respective workspaces. The image below illustrates how the report ID can be obtained from the report in the 'Dev' workspace.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FtWxzuucAFnVfCQWUCcyk%2Fimage.png?alt=media&#x26;token=a167a60f-33f8-406c-a3d3-e6fd31a60559" alt=""><figcaption><p>Dev Report ID </p></figcaption></figure>

4. Similarly, enter the report IDs for each workspace report. Click **Next.**

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2F8dCrJo31rF3S9hiRW3T6%2Fimage.png?alt=media&#x26;token=4bcedb74-7de4-4102-a130-61330db7f133" alt=""><figcaption><p>Enter report IDs for all the 3 workspaces</p></figcaption></figure>

5. A pop-up window appears, displaying a list of all EDITABLE visuals (tables) included in the selected report.

Our report contains only one visual/table, 'EmployeeDetails'. Click **Add** to add this report and create an EDITable pipeline.&#x20;

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2F1uMWmsijc3EIFBAYxInn%2Fimage.png?alt=media&#x26;token=612d1eee-f89c-4a49-b1ac-a3c5159bef47" alt=""><figcaption><p>Add report to the EDITable pipeline stages</p></figcaption></figure>

**Note:** In this example, we have deployed the reports to the same destination (Azure SQL) for simplicity. The [next section](https://docs.inforiver.com/editable/admin-portal-and-editable-console/utility/pipeline/deployment-in-different-destinations) will explain how to configure different deployment destinations.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FS0SiUgbDuHB4eVuUZcyB%2Fimage.png?alt=media&#x26;token=097ce8ef-f72a-424f-b6ff-0718cefde9ec" alt=""><figcaption><p>EDITable pipeline for a report</p></figcaption></figure>

A report may also contain multiple tables/visuals, one on each page, that can be added to or removed from a pipeline during deployment. You can refer to the image below, where the report has multiple EDITable visuals.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FzQZNx1HmQEdCDRuJaSqO%2Fimage.png?alt=media&#x26;token=a6f9f021-d11e-4263-b59c-b1a0ddc870f1" alt=""><figcaption><p>Report with multiple tables/visuals</p></figcaption></figure>

### 2.2. Deploy report to the next stage

1. To deploy a report from one stage to another, such as 'Dev' to 'Test' or 'Test' to 'Prod', click the **Deploy** button next to the report you want to deploy.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FhAX1I6qsTbWPN6flqJqr%2Fimage.png?alt=media&#x26;token=b27f0feb-914f-4ecf-bd0a-1ce9fb556595" alt=""><figcaption><p>Deploy a report</p></figcaption></figure>

2. Select the next stage for deploying the visual from the dropdown menu.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2F7z4tPSwlUnQ3ZHTXRqWM%2Fimage.png?alt=media&#x26;token=39325cfc-4a2a-4beb-b90f-7e8db4c40087" alt=""><figcaption><p>Choose stage to deploy</p></figcaption></figure>

3. Click **Deploy.**

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FWm4eXa2XMoqj6fT23BN7%2Fimage.png?alt=media&#x26;token=8ddfc5ef-259b-46bf-8aa3-e86ba42b03d6" alt=""><figcaption><p>Deploy</p></figcaption></figure>

4. The report is now deployed from 'Dev' to 'Test' stage. Similarly, after testing, you can deploy the report from the 'Test' to the 'Prod' stage by repeating the above steps.

In the next section, we will look at the steps to deploy the report in stages that use different destinations.
