Start-Here Checklist

[!TIP] New to the vocabulary β€” repo, fork, secret, OIDC? Skim Understanding IaC and GitHub Essentials first. Ten minutes that make everything below make sense.

🏫 Classroom (pre-staged) β€” start here

If you are in the instructor-led workshop, there is nothing to install. Four steps and you are deploying:

  1. Sign in to GitHub as your workshop account (the one on your instructor’s roster, e.g. student01).
  2. Open your fork in the browser: github.com/<your-account>/Demo-IaC_Demo_with_VSCode.
  3. Open the Actions tab and click the green β€œI understand my workflows, go ahead and enable them” button (forks disable workflows by default).
  4. Go to L1.1 β€” Core Deployment and run your first deploy. Done.

Everything else is already done for you:

Already staged Details
Your fork Pre-created at github.com/<your-account>/Demo-IaC_Demo_with_VSCode
Your resource group Pre-created, named exactly like your GitHub account (e.g. student01) β€” the workflows target it automatically
Deploy identity Your own workshop identity, federated to your fork’s main branch and allowed to touch only your resource group. Your instructor either set its values (AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_SUBSCRIPTION_ID, plus your AZURE_PREFIX) on your fork, or sends them to you to add as repository variables (Settings β†’ Secrets and variables β†’ Actions β†’ Variables) β€” no cloud password is stored anywhere
VM / SQL passwords Generated fresh for each run and masked, unless you set your own VM_ADMIN_PASSWORD / SQL_ADMIN_PASSWORD secret (do that before L1.1 if you want to sign in to the VM through Bastion)

Your own Azure role is Reader β€” you verify what got built in the portal, while the deployments run through GitHub Actions under your workshop deploy identity (which holds Contributor on your group, and nothing else). That also means local az deployment ... commands will fail for you β€” deploy through the Actions tab.

The main curriculum path runs east: L1.1 β†’ L2.1 β†’ L3.1 β†’ L4.1 β€” one foundation chapter per level. The full grid of all 22 chapters is on the Curriculum Map.

[!NOTE] Want the full VS Code + Copilot + CLI experience on top of the browser-only path β€” or are you running the workshop at home on your own subscription? Continue below. Otherwise you can stop reading this page now.


πŸ› οΈ Self-hosted / at-home setup (Sections A–D)

Work top to bottom. Each item is one small, checkable thing. These tool installs are needed for the Copilot/CLI experience (classroom included, if you want it) and for self-hosted deploys from your own subscription.

[!IMPORTANT] You need Windows 11. Section C installs the toolchain with winget, which is Windows-only, and the settings helper writes to the Windows user environment store. macOS and Linux are not supported today β€” see Getting Comfortable with the Tools for exactly which two dependencies block them.

Which are you?



Classroom participant
Fork, resource group and deploy identity already staged β€” install tools only if you want the Copilot/CLI experience


I'm on my own
Own subscription β€” create the group, run the OIDC setup yourself

πŸ‘€ A. Accounts you need

  • GitHub account β€” https://github.com/join
  • GitHub Copilot access β€” Free tier works for individuals. In a classroom org, your instructor will assign you a Copilot Business or Enterprise seat.
  • Azure access β€” one of:
    • Classroom participant: Nothing to set up. Your resource group is pre-created and named after your GitHub account (e.g. student01), and you hold Reader on it β€” your workshop deploy identity holds Contributor and does the deploying for you.
    • Self-hosted: An Azure subscription where you have at least Contributor and can create app registrations β€” that is the self-hosted requirement, not the classroom one. Free trial: https://azure.microsoft.com/free β€” you create the resource group yourself, once, when you run the OIDC setup (Part 2, self-hosted section).

[!NOTE] Self-hosted only β€” don’t type <your-rg> literally. Every lab deploys into one group that must already exist in your subscription. After az login in Section D, list what you actually have and use that exact string everywhere below:

az group list --query "[].name" -o tsv

(Classroom accounts can skip this β€” the group name is your GitHub account name.)


🧱 B. Bootstrap the installer script first

If gh is not installed yet, use this bootstrap path first.

  • Create the installer bootstrap folder on the Desktop:

Copy/paste these lines one at a time:

mkdir "$env:PUBLIC\Demo-IaC-Bootstrap" -Force | Out-Null
cd "$env:PUBLIC\Demo-IaC-Bootstrap"
  • Download only the installer script over HTTPS:
Invoke-WebRequest "https://raw.githubusercontent.com/HybridCloudWorks/Demo-IaC_Demo_with_VSCode/main/scripts/Install-LabTools.ps1" -OutFile .\Install-LabTools.ps1

[!TIP] Certificate or TLS error on the download? It is per-machine state, not your account (OneDrive-synced profiles do not roam certificate stores). Fix in this order:

  1. Check the clock – Get-Date. A wrong date invalidates every certificate: w32tm /resync /force
  2. Force TLS 1.2 for this session, then retry the download: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
  3. Open https://github.com once in Edge – Windows fetches missing root certificates on first use – then retry.
  • If your machine blocks script download in terminal, download the same file in a browser and save it as:
    • C:\Users\Public\Demo-IaC-Bootstrap\Install-LabTools.ps1 (the same folder the previous step created – Public is shared, so it works no matter which account is signed in)

πŸ› οΈ C. Install the software

From PowerShell 7 or PowerShell 5 (Run as Administrator), run the following:

cd "$env:PUBLIC\Demo-IaC-Bootstrap"
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force
./Install-LabTools.ps1

[!TIP] Certificate error 0x8a15005e (β€œserver certificate did not match”) from winget? That machine has a stale preinstalled App Installer whose msstore certificates are outdated – per-machine, not your profile. The script pins every install to the winget source, which sidesteps msstore entirely. If it still appears, install PowerShell 7 directly and re-run the script:

winget install --id Microsoft.PowerShell --exact --source winget --accept-package-agreements --accept-source-agreements
./Install-LabTools.ps1

For other certificate/TLS errors: check the clock (Get-Date, fix with w32tm /resync /force), then winget source reset --force and re-run.

[!NOTE] On a brand-new machine this script runs in two stages. Stage 1 installs PowerShell 7 and asks you to close the window β€” that is expected, not an error. Open a new PowerShell window (Run as Administrator), run this same block again, and the script detects PowerShell 7, switches to it, and installs everything else (stage 2). If PowerShell 7 was already present, there is only one stage.

If PowerShell shows an execution-policy error, the second line fixes only the current shell session. This one-shot path installs tools, configures Git, and prepares sign-in. Skip to Section D if you use this script.

When the script reaches Configuring Git, enter values like these when prompted:

  • Full name: Student000001
  • Email: Student000001@<tenant>.onmicrosoft.com

Tool Why winget Download
Visual Studio Code Editor + Copilot agent mode winget install Microsoft.VisualStudioCode code.visualstudio.com
Git Version control winget install Git.Git git-scm.com
GitHub Desktop Easy clone/commit/push UI winget install GitHub.GitHubDesktop desktop.github.com
GitHub CLI (gh) Repo secrets, workflow runs from the terminal winget install GitHub.cli cli.github.com
Azure CLI (az) Deployments, what-if, testing winget install Microsoft.AzureCLI learn.microsoft.com
PowerShell 7 Required for the setup and cleanup scripts winget install Microsoft.PowerShell github.com/PowerShell
Windows Terminal Better shell experience with tabs and PS7 support winget install Microsoft.WindowsTerminal microsoft.com
Bicep CLI Compiles and lints templates az bicep install (after Azure CLI) β€”

VS Code extensions

Open this repo in VS Code and accept the recommended extensions prompt β€” or install manually. The repository is set up to recommend the right VS Code extensions automatically when you first open the folder:

  • Bicep β€” code --install-extension ms-azuretools.vscode-bicep
  • GitHub Copilot β€” code --install-extension GitHub.copilot
  • GitHub Copilot Chat β€” code --install-extension GitHub.copilot-chat
  • Azure CLI Tools β€” code --install-extension ms-vscode.azurecli
  • GitHub Actions β€” code --install-extension github.vscode-github-actions

Verify everything is on PATH

Open a fresh PowerShell 7 window after installing and run:

git --version
gh --version
az --version
az bicep version
pwsh --version
code --version
  • All six print a version number (no β€œcommand not found”).

πŸ” D. Sign in

GitHub CLI

Run this command first:

gh auth login

Use this quick reference while answering prompts:

Prompt in terminal Choose / Do
Where do you use GitHub? GitHub.com
Preferred protocol for Git operations? HTTPS
Authenticate Git with your GitHub credentials? Yes
How would you like to authenticate GitHub CLI? Login with a web browser

Then complete the browser flow:

Step Action
1 Copy the one-time code shown in the terminal
2 Press Enter when prompted to open the browser
3 Paste the code in the browser and finish sign-in
4 Return to PowerShell and wait for the success message

Run this command last to confirm login:

gh auth status
  • gh auth status shows your GitHub username.

GitHub Copilot CLI command

gh copilot --version

gh copilot is a built-in stub in modern GitHub CLI (2.x+). The first time you run it, it will prompt:

GitHub Copilot CLI is not installed. Would you like to install it? (Y/n)

Type Y and press Enter. After that, gh copilot --version will return a version number with no prompt. Install-LabTools.ps1 handles this automatically β€” no manual step needed when using the script.

If this says gh: unknown command "copilot", update GitHub CLI (winget upgrade GitHub.cli) and reopen PowerShell.

  • gh copilot --version prints a version number (no install prompt).
  • gh copilot suggest "list all files in a folder" returns a suggested command.

VS Code β€” Copilot Chat & GitHub Desktop

Because gh auth login stored a GitHub token on this machine, VS Code and GitHub Desktop read that token automatically β€” neither app needs a separate sign-in from scratch.

GitHub Desktop first launch will show two quick screens:

Screen What you see What to do
Authorize GitHub Desktop Your GitHub username is already shown under β€œSigned in as” Click Continue
Configure Git Name and email are pre-filled from Install-LabTools.ps1 β€” the script ran git config --global user.name and git config --global user.email for you Select Use my GitHub account name and email address, then click Finish

VS Code β€” Copilot Chat:

  • Open VS Code β†’ press Ctrl+Alt+I to open Copilot Chat.
  • If prompted to sign in, confirm the GitHub account shown matches the one used above.
  • The Copilot icon appears in the sidebar and Chat responds to a test message.

Azure CLI

az login

A Windows sign-in dialog opens (not a browser tab). Complete these steps in order:

Step What you see What to do
1 Account type screen Choose Work or school account (classroom) or Microsoft account (personal/free trial)
2 Username field Enter the account your instructor provided (e.g. Student000001@<tenant>.onmicrosoft.com)
3 Password / temporary code field Enter the temporary code given by your instructor
4 β€œSign in to all apps and websites on this device?” Click No, this app only β€” this is a lab machine, not your personal device

Back in the terminal, you will see a Tenant and subscription selection table like this:

[Tenant and subscription selection]

No    Subscription name        Subscription ID                       Tenant
----- ------------------------ ------------------------------------ ----------
[1] * <subscription-name>        <subscription-id>                    <tenant-name>

The default is marked with an *; the default tenant is '<tenant-name>' and
subscription is '<subscription-name>' (<subscription-id>).

If only one subscription is listed it is already selected (marked *) β€” no action needed. Then confirm:

az account show --query "{subscription:name, tenant:tenantId}" -o table
  • az account show prints the correct subscription and tenant.

This completes Part 1 (A–D).

➑️ Continue with Start Here Checklist β€” Part 2



GitHub feature spotlight Β· Forks and the upstream remote

You just used it: your fork is a complete, independent copy of this repo β€” your own Actions runs, your own history. Nothing you do can affect anyone else’s. Find it: git remote -v in your clone. origin is your fork; upstream points at the original, which is how you pull in later changes without losing your work. Beyond the lab: this is how essentially all open-source contribution works: fork, branch, pull request. The workshop uses it so twenty people can deploy from twenty repos with no coordination. Docs β†’