Skip to content

Governance Scripts

PowerShell scripts for workshop automation. These are located in the scripts/ directory at the repository root.


ScriptPurposeWhen to Use
Score-Team.ps1Record team scoresDuring workshop
Get-Leaderboard.ps1Display team rankingsDuring workshop
Cleanup-Resources.ps1Delete all workshop resourcesAfter workshop

Score-Team.ps1
.\scripts\Score-Team.ps1 -TeamName "team1" -Challenge "C1" -Score 20

Parameters:

ParameterRequiredDescription
-TeamNameYesTeam identifier
-ChallengeYesChallenge code (C0–C7 or Bonus)
-ScoreYesPoints awarded (0–30)
-NotesNoOptional scoring notes
-ScoreFileNoPath to JSON score file (defaults to scores.json)

Scores are capped at the maximum for each challenge.

Get-Leaderboard.ps1
.\scripts\Get-Leaderboard.ps1

Shows real-time rankings with medals for top 3 teams. Use -Detailed for breakdown by challenge.


Cleanup-Resources.ps1
.\scripts\Cleanup-Resources.ps1

Deletes ArcBox and Azure Migrate resource groups for all teams. Supports -WhatIf to preview deletions before committing.

Always run with -WhatIf first to preview what will be deleted.


IssueSolution
command not found: pwshPowerShell not installed — install PowerShell 7+
az: command not foundAzure CLI not installed — install via brew install azure-cli or equivalent
Permission errorsEnsure Owner or Contributor role on the subscription