Azure Data Studio and Microsoft Fabric

As organisations increasingly adopt Microsoft Fabric for their data warehousing and analytics needs, finding the right tools to speed up development is crucial. Connecting Azure Data Studio to Microsoft Fabric can streamline your workflow, enabling you to navigate environments, pinpoint variances, release code, and assign memorable names to connections instead of relying on lengthy connection strings.

Step 1: Download Azure Data Studio

To get started with connecting Azure Data Studio to Microsoft Fabric, download and install Azure Data Studio, a cross-platform data management tool that supports multiple databases, including those in Microsoft Fabric. Azure Data Studio offers a modern editor experience with IntelliSense, code snippets, and source control integration.

You can download Azure Data Studio from the official Microsoft website. Be sure to select the appropriate version for your operating system.

Step 2: Connect Azure Data Studio to Microsoft Fabric Data Warehouse

Once you have Azure Data Studio installed, you can connect it to your Microsoft Fabric Data Warehouse by following these steps:

  1. Open Azure Data Studio: Launch the application on your machine.
  2. Create a New Connection:
    • Click on the “New Connection” button in the top left corner.
    • In the “Connection Type” dropdown, select Microsoft SQL Server.
  3. Enter Connection Details:
    • Server Name: Enter the details of your Microsoft Fabric Data Warehouse. This can be found in Fabric under the Warehouse settings as ‘SQL Connection String.’
    • Authentication Type: Choose the appropriate authentication method.
    • Database Name: Specify the database you want to connect to, or leave it as default.
    • Name (Optional): This handy feature lets you rename the connection, making it easier to navigate different Warehouses (e.g., Prod/UAT) without memorizing connection strings.
  4. Connect: Once connected, Azure Data Studio will display the database structure, including schemas, tables, views, and stored procedures.
Connection String in Fabric

SQL Connection String

Step 3: Compare Schemas and Tables Across Workspaces with Azure Data Studio

After connecting Azure Data Studio to Microsoft Fabric, you can start comparing schemas, views, or tables between different environments (e.g., UAT and Production). Azure Data Studio provides extensions and third-party tools that integrate seamlessly, allowing you to:

  • Install Schema Compare: Go to Extensions and install SQL Server Schema Compare.
  • Generate Schema Comparisons: Use extensions like SQL Server Schema Compare to highlight differences between schemas in different databases.
  • Review Data Differences: Compare the data stored within tables across environments.
  • Script Out Differences: Generate SQL scripts to sync the changes between environments or apply changes in a controlled manner.

Azure Data Studio

Step 4: Review and Deploy Changes Using Azure Data Studio

With your comparisons complete, you can review the identified differences. This step is crucial in environments like UAT, where changes must be thoroughly validated before being deployed to Production. Connecting Azure Data Studio to Microsoft Fabric allows you to script out changes or apply them directly, depending on your workflow.

Conclusion

Connecting Azure Data Studio to Microsoft Fabric offers a powerful way to manage and compare your data environments. By following the steps outlined in this blog, you’ll be able to quickly identify and address variances between schemas, views, or tables across your UAT and Production environments, helping ensure a smooth and reliable data pipeline.

For more detailed information and advanced configurations, refer to the official Microsoft documentation on Azure Data Studio and Microsoft Fabric.

Tags: , , , , ,