Implement deployment pipelines in Microsoft Fabric

Create Workspace

To set up three workspaces with Fabric trial enabled:

  1. Go to Microsoft Fabric and sign in.
  2. From the left menu, select Workspaces.
  3. Create a new workspace named Development, ensuring it has Fabric capacity (Trial, Premium, or Fabric).
  4. Repeat the process to create Test and Production workspaces.
  5. Confirm all three workspaces exist by checking the Workspaces menu.

Create a deployment pipeline

To set up a deployment pipeline:

  1. Go to Workspaces from the left menu.
  2. Select Deployment Pipelines, then click New pipeline.
  3. In the Add a new deployment pipeline window, enter a unique name.
  4. Accept the default settings in the Customize your stages window.
  5. Click Create.

Assign workspaces to stages of a deployment pipeline

  1. Open the pipeline from the left menu.
  2. Click Select under each stage and choose the corresponding workspace.
  3. Assign a workspace for each deployment stage.

Create Content

To create a lakehouse in the Development workspace:

  1. Go to Workspaces from the left menu.
  2. Open the Development workspace and select New Item.
  3. Choose Lakehouse, name it LabLakehouse, and click Create.
  4. In Lakehouse Explorer, select Start with sample data to populate it.

To verify deployment:

  1. Open the pipeline from the left menu.
  2. In the Development stage, navigate to Lakehouses. The new lakehouse appears.
  3. An orange X between Development and Test indicates they are not synchronized.
  4. Click the downward arrow below the X, then select Compare to confirm LabLakehouse exists only in Development.

Deploy content between stages

To move the lakehouse from Development to Test and Production:

  1. In the Development stage, click Deploy to copy the lakehouse to the Test stage.
  2. In the Deploy to next stage window, select Deploy.
  3. In the Test stage, click Deploy again to move the lakehouse to Production.
  4. Confirm deployment by checking the Workspaces:
    • Open the Test workspace to verify the lakehouse was copied.
    • Open the Production workspace to ensure it was copied there as well.

A green check mark indicates all stages are in sync.

Leave a Reply

Your email address will not be published. Required fields are marked *

More Articles & Posts