Exercise 0: Prepare your environment
Complete this exercise before class. Every later exercise depends on it. Nothing here is graded and none of it is agent design: one script gets your tenant, capacity and computer ready so class time goes to Exercises 1 to 4.
Time: about 15 minutes, of which about 2 minutes are yours (two sign-ins and two answers). The rest is waiting while the log scrolls. The script can run again at any time: it reuses everything it already created.
What you need
- A Windows 11 Pro or Enterprise computer where you're a local administrator.
- The admin account of your assigned, isolated lab tenant. It must be a Fabric administrator and must be able to create Microsoft 365 groups.
- An Azure subscription in that tenant where you can create resources. The script creates a Fabric capacity F2 there, which costs about USD 0.36 per hour while it runs and nothing while it's paused.
- A Power Platform environment in that tenant with Dataverse (the default environment of a lab tenant is fine).
Note: Use the same account for every sign-in. If you see a Pick an account page, choose the tenant admin account, not your corporate one.
Step 1: Get the lab files
- Download the ZIP for the tested revision your coach assigns. Record the repository, branch, and commit supplied with the ZIP. If you use a Git checkout instead, follow Get the correct revision and keep your learner changes in a local working branch.
- Right-click the ZIP, select Extract All, and extract it to your Desktop. You get a folder that contains
Start-CaldovaSetup.cmd.
Step 2: Run the setup
-
In the extracted folder, double-click Start-CaldovaSetup.cmd.
If Windows shows Windows protected your PC, select More info, then Run anyway. If Windows asks whether the app can make changes to your device, select Yes (it installs Git, Python or Visual Studio Code if they're missing).
-
A PowerShell window opens and works through nine steps. Keep it open until the Summary appears. Each step writes OK, NOTE or FAIL to the window and to
setup-caldova-lab.login the same folder. -
First sign-in (step 2 of 9). A browser window opens. Sign in with the tenant admin account within a minute. If you have more than one Azure subscription, the window asks you to type the number of the one to use.
-
Capacity (step 4 of 9). If you don't have a Caldova capacity yet, the script asks before creating the F2 capacity. Type
Yand press Enter. If you already have capacities, it lists them: type the number of one to reuse it, orNto create a new F2. -
Second sign-in (step 7 of 9). A second browser window opens for Microsoft 365. Sign in with the same account. If you're asked to accept permissions for Microsoft Graph Command Line Tools, select Accept.
-
Wait for the Summary. A successful run looks like this:
[9/9] Summary OK Tools Python 3.12, Git, VS Code OK Fabric tenant settings Ontology, Copilot, Eventstream OK Fabric capacity caldoval400f2 OK Fabric workspace ws-caldova-l400 OK Python and validation .venv, validate_repository.py OK SharePoint lists and group https://<your tenant>.sharepoint.com/sites/CaldovaLaunchTeam OK Flow solution file CaldovaFollowUp_1_0_0_2.zipAny line that shows MANUAL or FAIL names the part of this exercise to do by hand (see Manual steps below). Fix it, then run
Start-CaldovaSetup.cmdagain.
Step 3: Import the flow (3 minutes)
The script builds the flow solution file but doesn't import it, because the import creates a SharePoint connection that has to sign in as you.
- Open https://make.powerapps.com and check the environment at the top right.
- Select Solutions > Import solution > Browse and pick
CaldovaFollowUp_1_0_0_2.zipfrom the lab folder. Select Next. - Select Next again. The Caldova SharePoint connection signs in with your account and shows a green check. Select Import.
After about a minute, Caldova Follow-up (lab asset) appears in Solutions.
Step 4: Pause the capacity until class
At the end of the setup, and at the end of each lab day, pause your lab capacity. In the lab folder, open PowerShell and run the following command. Replace caldoval400f2 with the capacity name shown in your setup summary if it differs.
powershell -ExecutionPolicy Bypass -File .\setup\Set-CaldovaCapacity.ps1 -Pause -CapacityName caldoval400f2
On the day of class, resume it with -Resume in place of -Pause, or run Start-CaldovaSetup.cmd again (it resumes a paused capacity).
Step 5: Self-check (at least an hour later)
The Ontology tenant setting can take up to an hour to apply after the script turns it on.
- Open https://app.fabric.microsoft.com, open the workspace ws-caldova-l400, select + New item and type
Ontologyin Filter by keyword. Ontology (preview) must appear. - If it doesn't, wait 15 minutes and try again. If it still doesn't appear, tell your coach. Don't change other tenant settings.
You're ready for Exercise 1.
Manual steps
Do a part below only if the Summary shows MANUAL or FAIL for it, then run Start-CaldovaSetup.cmd again.
| Summary line | Part to do by hand |
|---|---|
| Fabric tenant settings | Part A |
| Fabric capacity | Part B |
| Fabric workspace | Part C |
| Tools, or Python and validation | Part D |
| SharePoint lists and group, or Flow solution file | Part E |
Part A: Turn on the Fabric tenant settings
Fabric tenant settings can take up to an hour to apply, so start here.
-
Open https://app.fabric.microsoft.com and sign in with your tenant admin account.

-
In the top-right corner, select the Settings (gear) icon, then under Governance and administration select Admin portal.

-
Tenant settings opens. The first section is Microsoft Fabric.

-
Select Users can create Ontology (preview) items to expand it. In a new tenant it shows Disabled for the entire organization.

-
Switch the toggle to Enabled. Leave Apply to on The entire organization, then select Apply.

-
A message says the change applies within the next 15 minutes. Write down the time. In practice, creating an ontology can keep failing for 15 to 20 minutes after this, and Microsoft documents up to an hour. You need it in Exercise 1, Task 3.

-
Check the other settings the lab needs. Type each name in Filter by keyword (top right) and confirm it shows Enabled for the entire organization. In a Microsoft demo tenant they are already on; if one is not, expand it, enable it and select Apply.
Type in the filter Setting Needed for Azure OpenAIUsers can use Copilot, AI Agents and other AI experiences powered by Azure OpenAI Fabric data agent, Exercise 1 Copilot capacitiesCapacities can be designated as Fabric Copilot capacities Data agent on your capacity EventstreamAllow non-Entra ID auth in Eventstream Event replay, Exercise 1 Task 2 


Leave the two Data sent to Azure OpenAI can be processed / stored outside your capacity's geographic region settings Disabled. You don't need them if your capacity is in a US or EU region (Part B).
Check: Users can create Ontology (preview) items shows Enabled for the entire organization.
Part B: Create a Fabric capacity
Fabric items run on a capacity. A Fabric trial is often not available in Microsoft demo tenants, so you create a small paid capacity (F2) in your own Azure subscription. It costs about USD 0.36 per hour while it runs and nothing while it is paused. Pause it at the end of each day (step 13).
-
Open https://portal.azure.com. In the search box at the top, type
Microsoft Fabricand select Microsoft Fabric under Services.
-
The list is empty in a new subscription. Select + Create.

-
On Basics, check that Subscription shows your lab subscription. Under Resource group, select Create new.

-
Enter
rg-caldova-l400and select OK.
-
Under Capacity details, enter a Capacity name using only lowercase letters and numbers, for example
caldoval400f2. If the name is taken, add your initials. -
For Region, keep (US) Central US or pick another US or EU region. A region outside the US and EU stops the Fabric data agent from working in Exercise 1.
-
Size shows F64 by default, which costs about USD 8,400 per month. Select Change size.

-
Select F2, then Select at the bottom of the panel.

-
Overage protection is On by default, which lets the capacity bill above its size. Switch it Off.

-
Fabric capacity administrator is filled in with your account. Leave it, then select Review + create.

-
Wait for Validation succeeded, check that the estimate shows $262.80 per month (F2), then select Create. By selecting Create you accept the Marketplace terms for the capacity on this subscription.

-
Deployment takes about a minute. When Your deployment is complete appears, select Go to resource.
Caution: The deployment page has a Delete button in its toolbar. It only deletes the deployment record, but don't select it.

-
Check that Status is Active and SKU is F2. This is also where you select Pause at the end of each day and Resume before class.

-
At the end of each day, come back here, select Pause, then Yes. Status changes to Pausing, then Paused. Before class, select Resume and wait for Active; items in your workspace are unavailable while the capacity is paused.


Check: the capacity shows Status: Active, SKU: F2, Location: Central US (or the US/EU region you chose).
Part C: Create your Fabric workspace
-
Open https://app.fabric.microsoft.com. On Home, select New workspace.

-
In Name, enter
ws-caldova-l400. If the name is taken in your tenant, add your initials, for examplews-caldova-l400-ab. Leave Description and Domain empty.
-
Scroll down to Workspace type. Select Fabric (it is usually selected already). Fabric Trial is greyed out in most Microsoft demo tenants; that is expected. Under Details, select your capacity, for example caldoval400f2 - Central US.

-
Select Apply. The empty workspace opens. You create the Lakehouse and the other items in Exercise 1; don't create anything here yet.

Check: the workspace name has a diamond icon next to it, which means it runs on a capacity.
Part D: Prepare your computer
Exercises 1, 3 and 4 run scripts from the lab repository. You need Git, Python 3.12, Visual Studio Code and PowerShell (built into Windows).
-
Install the tools if they are missing. Open PowerShell (Start menu, type
PowerShell) and run:winget install --id Git.Git -e winget install --id Python.Python.3.12 -e winget install --id Microsoft.VisualStudioCode -eClose and reopen PowerShell afterwards so the new commands are found.
-
Check the versions. Each command must print a version number:
git --version python --version code --versionpython --versionmust show 3.12. If it shows another version, usepy -3.12in place ofpythonin the next step. -
Open PowerShell in the lab folder you extracted in Step 1 (in File Explorer, open the folder, type
powershellin the address bar and press Enter). Then install the Python packages, one line at a time:python -m venv .venv .\.venv\Scripts\python.exe -m pip install -r requirements.lock.txt .\.venv\Scripts\python.exe scripts/validate_repository.pyThe last command ends with a summary. Two qualification-regression failures are expected: you fix them in Exercise 4.
-
Open the folder in Visual Studio Code:
code .If Visual Studio Code asks whether you trust the authors of the files, select Yes, I trust the authors.
Check: validate_repository.py finishes and reports only the two expected qualification-regression failures.
Part E: Prepare the procurement assets for Exercise 2
Exercise 2 uses a SharePoint site with three lists, a ready-made RecordFollowUp flow and a security group for the agent's audience. They take about 10 minutes and use the files in lifecycle/ex2 of the repository. Your coach confirms before class whether your cohort does Exercise 2.
-
Create the SharePoint site, the three lists and their sample rows: follow Step 1 in
lifecycle/ex2/README.md. It runs in your browser's developer console (F12 > Console), signed in as the tenant admin. When it finishes, the site Caldova Launch Team exists.
-
Check the lists. RFP Tracker has RFP-01 and RFP-02 (Open) and RFP-03 (Closed). Supplier Directory has CMO-01 to CMO-03. FollowUpRequests is empty.



-
Build the flow solution with the IDs of your two lists (Step 2 in the README; you find each list ID in List settings, in the browser address bar after
List=):.\.venv\Scripts\python.exe .\lifecycle\ex2\build_recordfollowup_solution.py --site https://<tenant>.sharepoint.com/sites/CaldovaLaunchTeam --rfp-list <RFP Tracker list ID> --fur-list <FollowUpRequests list ID> --out CaldovaFollowUp_1_0_0_2.zip -
Open https://make.powerapps.com, check the environment at the top right, select Solutions > Import solution > Browse, pick
CaldovaFollowUp_1_0_0_2.zipand select Next.


-
Select Next. The Caldova SharePoint connection signs in with your account and shows a green check. Select Import. After about a minute, Caldova Follow-up (lab asset) appears in the list.


-
Create the audience group. Open https://entra.microsoft.com > Groups > All groups > New group. Keep Group type: Security, name it
Caldova Procurement Users, add your own account under Members and select Create. The Teams share dialog only lists security groups, so the Microsoft 365 group of the site can't be used.


-
Open https://admin.powerplatform.microsoft.com > Manage > Environments, select your environment, then Users > See all. Select ... next to your account, then Manage security roles. Make sure Basic User is selected; if it isn't, select it and Save.



Check: the site Caldova Launch Team shows the three lists, Caldova Follow-up (lab asset) is in Solutions, and Caldova Procurement Users is in Entra.