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

  1. 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.
  2. 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

  1. 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).

  2. 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.log in the same folder.

  3. 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.

  4. Capacity (step 4 of 9). If you don't have a Caldova capacity yet, the script asks before creating the F2 capacity. Type Y and press Enter. If you already have capacities, it lists them: type the number of one to reuse it, or N to create a new F2.

  5. 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.

  6. 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.zip
    

    Any 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.cmd again.

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.

  1. Open https://make.powerapps.com and check the environment at the top right.
  2. Select Solutions > Import solution > Browse and pick CaldovaFollowUp_1_0_0_2.zip from the lab folder. Select Next.
  3. 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.

  1. Open https://app.fabric.microsoft.com, open the workspace ws-caldova-l400, select + New item and type Ontology in Filter by keyword. Ontology (preview) must appear.
  2. 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.

  1. Open https://app.fabric.microsoft.com and sign in with your tenant admin account.

    Fabric home page

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

    Settings panel with Admin portal

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

    Admin portal, Tenant settings

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

    Ontology setting disabled

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

    Ontology setting enabled, Apply button

  6. 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.

    Applying changes message

  7. 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 OpenAI Users can use Copilot, AI Agents and other AI experiences powered by Azure OpenAI Fabric data agent, Exercise 1
    Copilot capacities Capacities can be designated as Fabric Copilot capacities Data agent on your capacity
    Eventstream Allow non-Entra ID auth in Eventstream Event replay, Exercise 1 Task 2

    Azure OpenAI settings

    Copilot capacities setting

    Eventstream setting

    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).

  1. Open https://portal.azure.com. In the search box at the top, type Microsoft Fabric and select Microsoft Fabric under Services.

    Search for Microsoft Fabric

  2. The list is empty in a new subscription. Select + Create.

    Microsoft Fabric capacities, empty list

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

    Create Fabric capacity, Basics

  4. Enter rg-caldova-l400 and select OK.

    New resource group name

  5. Under Capacity details, enter a Capacity name using only lowercase letters and numbers, for example caldoval400f2. If the name is taken, add your initials.

  6. 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.

  7. Size shows F64 by default, which costs about USD 8,400 per month. Select Change size.

    Size list, F64 selected by default

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

    F2 selected

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

    Overage protection off

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

    Administrator filled in

  11. 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.

    Validation succeeded, Create

  12. 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.

    Deployment complete

  13. 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.

    Capacity active

  14. 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.

    Pause confirmation

    Capacity pausing

Check: the capacity shows Status: Active, SKU: F2, Location: Central US (or the US/EU region you chose).

Part C: Create your Fabric workspace

  1. Open https://app.fabric.microsoft.com. On Home, select New workspace.

    Fabric home, New workspace

  2. In Name, enter ws-caldova-l400. If the name is taken in your tenant, add your initials, for example ws-caldova-l400-ab. Leave Description and Domain empty.

    Create a workspace, name

  3. 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.

    Workspace type Fabric with the F2 capacity

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

    Workspace created

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).

  1. 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 -e
    

    Close and reopen PowerShell afterwards so the new commands are found.

  2. Check the versions. Each command must print a version number:

    git --version
    python --version
    code --version
    

    python --version must show 3.12. If it shows another version, use py -3.12 in place of python in the next step.

  3. Open PowerShell in the lab folder you extracted in Step 1 (in File Explorer, open the folder, type powershell in 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.py
    

    The last command ends with a summary. Two qualification-regression failures are expected: you fix them in Exercise 4.

  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.

  1. 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.

    Caldova Launch Team site

  2. 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.

    RFP Tracker

    Supplier Directory

    FollowUpRequests

  3. 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
    
  4. Open https://make.powerapps.com, check the environment at the top right, select Solutions > Import solution > Browse, pick CaldovaFollowUp_1_0_0_2.zip and select Next.

    Import a solution

    File selected

    Solution details

  5. 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.

    Connection ready

    Solution imported

  6. 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.

    New group

    Group ready to create

    Group created

  7. 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.

    Environment

    Environment users

    Basic User role

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.