Tuesday, July 1, 2025

MS Fabric Demo Sandbox : Contoso Energy


Contoso Energy and Microsoft Fabric Demo Sandbox Options

No "Contoso Energy" dataset exists for Microsoft Fabric, but the Contoso retail dataset is widely used for training. Below are options for demo data and sandboxes for personal learning, formatted for Blogger with relevant Microsoft links.

Contoso Demo Data

Overview: The Contoso dataset, focused on retail, supports Fabric’s lakehouse and BI workloads with SQL, CSV, or Delta formats.  

Access: Download from the Microsoft Download Center or use the Contoso Data Generator for custom datasets.

Energy Data: No energy-specific dataset; source public energy data (e.g., Kaggle) for custom scenarios.

Fabric Sandbox for Personal Use

Trial Capacity: 60-day free trial (64 capacity units) at app.fabric.microsoft.com. Ideal for testing Contoso or custom datasets.

Sandbox: Trial acts as a sandbox for building lakehouses and reports. Convert to a Power Platform sandbox via Power Platform Admin Center for advanced needs.

Training: Free Fabric Analyst in a Day workshop on Microsoft Learn uses Contoso data for hands-on practice.

Energy-Specific Alternatives

Custom Datasets: Import energy data (CSV/Parquet) into Fabric trial for analytics practice.

Azure Sandbox: Use Azure’s free sandbox for data integration with Fabric at Azure Free Account, but monitor costs.

Community Samples: Check Microsoft Fabric Samples on GitHub for adaptable scenarios.

Recommendations

Start with Fabric’s trial for Contoso-based practice.  

Use Microsoft Learn’s Fabric modules.

Import energy datasets for relevant training.

Monitor costs if using Azure services!


New for June 2025!

 The [Digital Twin Builder (preview) tutorial introduction](https://learn.microsoft.com/en-us/fabric/real-time-intelligence/digital-twin-builder/tutorial-0-introduction) in Microsoft Fabric provides a hands-on guide to creating operational analytics scenarios using digital twins. It introduces a low-code/no-code tool that allows users to model and contextualize data from various sources—like sensors and control systems—within Microsoft Fabric’s unified analytics platform.


The tutorial centers on a fictional company, Contoso Energy, which uses the tool to improve efficiency, reduce energy consumption, and enhance product quality across its distillation sites. Users are guided through building a scenario ontology and visualizing insights with Power BI.


**Key prerequisites** include:

- A Microsoft Fabric-enabled workspace

- Digital Twin Builder (preview) enabled in the tenant settings

- Power BI Desktop installed (not just the web version)


This feature is currently in preview and is designed to help organizations drive operational improvements such as reducing waste, improving yield, and achieving sustainability goals. Let me know if you’d like a breakdown of the tutorial steps or help setting up a test scenario.

Add ‘Open Bash Here’ into Visual Studio

 With the rise of cross-platform development, the need for Linux tools like bash has become more prevalent, even in Windows environments. Developers often need to run bash scripts for tasks such as deploying services to Azure or managing containers. An integrated bash prompt in Visual Studio, opening directly at a file’s location, can significantly streamline this process. Here we create a script amd config.VS to run it


Why

In a mixed development environment where Windows and Linux tools are both essential, there’s a challenge: Windows uses a different file path structure compared to Linux. When developing on Windows with Visual Studio but needing to run Linux-based tools (like bash scripts), there’s a disconnect — the paths don’t translate automatically between systems. This is where a Linux script comes into play.


Creating the script

To bridge this gap, we created a Linux script that performs path translation. It takes a Windows file path as input, converts it into a Linux-friendly path, and then opens a bash shell at that location.


vi ~/.open-wsl-bash.sh


#!/bin/bash

win_path=$1

# Replace single backslashes with double backslashes

win_path=${win_path//\\//\\\\}

# Translate the Windows path to WSL path

wsl_path=$(wslpath -u "$win_path")

# Navigate to the directory and open bash

cd "$wsl_path" && exec bash

Script Breakdown

#!/bin/bash: Shebang line to indicate the script uses bash.

win_path=$1: Assigns the first argument passed to the script to win_path.

win_path=${win_path//\\//\\\\}: Doubles the backslashes to escape them properly for bash.

wsl_path=$(wslpath -u "$win_path"): Uses wslpath to convert the Windows path to a WSL path.

cd "$wsl_path" && exec bash: Changes to the directory and opens a new bash shell.

This script is an essential piece of the puzzle for a seamless development experience across Windows and WSL environments.


Adding the External Command in Visual Studio

Find the path to wt.exe.

Navigate to Tools > External Tools.

Click “Add” and configure:

Title: Open Bash Here

Command: Path to your wt.exe.

Arguments: --profile "Ubuntu-20.04" -- bash -c "bash ~/.open-wsl-bash.sh '$(ItemDir)'"

Initial directory: $(ItemDir)

Visual Studio: Adding external command

“Ubuntu-20.04” is the name of my Linux Windows Terminal profile. Change it to your Linux profile name.



Conclusion

With this setup, you’ll have a seamless “Open Bash Here” command in Visual Studio that improves the development workflow by providing quick access to a Linux bash environment at the location of your current file.