Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions azure_jumpstart_arcbox/artifacts/ArcServersLogonScript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,33 @@ $Shortcut.TargetPath = $LogsPath
$shortcut.WindowStyle = 3
$shortcut.Save()

# Create desktop shortcut for Power BI Dashboard (ITPro flavor only)
if ($Env:flavor -eq "ITPro") {

# Create Power Bi Report and Directory
if (-not (Test-Path $ArcBoxPBIDir)) {
New-Item -Path $ArcBoxPBIDir -ItemType Directory -Force
Write-Host "Created directory for Power BI Dashboard at $ArcBoxPBIDir"
} else {
Write-Host "Power BI Dashboard directory already exists at $ArcBoxPBIDir"
}

#Download Power BI dashboard from drops
Invoke-WebRequest ("https://github.com/Azure/arc_jumpstart_drops/raw/refs/heads/main/ui_dashboard_workbook/arc_pbi_dashboard/arc_insights_dashboard_jumpstart.pbit") -OutFile $ArcBoxPBIDir\ArcBoxDashboard.pbit

#Create shortcute for Power BI Dashboard
$PBIDashboardPath = "$ArcBoxPBIDir\ArcBoxDashboard.pbit"
if (Test-Path $PBIDashboardPath) {
$PBIShortcut = $WshShell.CreateShortcut("$Env:USERPROFILE\Desktop\ArcBox Power BI Dashboard.lnk")
$PBIShortcut.TargetPath = $PBIDashboardPath
$PBIShortcut.WindowStyle = 1
$PBIShortcut.Save()
Write-Host "Created desktop shortcut for Power BI Dashboard"
} else {
Write-Host "Power BI Dashboard file not found at $PBIDashboardPath"
}
}

# Configure Windows Terminal as the default terminal application
$registryPath = 'HKCU:\Console\%%Startup'

Expand Down
6 changes: 5 additions & 1 deletion azure_jumpstart_arcbox/artifacts/WinGet.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ winget configure --file C:\ArcBox\DSC\common.dsc.yml --accept-configuration-agre
switch ($env:flavor) {
'DevOps' { winget configure --file C:\ArcBox\DSC\devops.dsc.yml --accept-configuration-agreements --disable-interactivity }
'DataOps' { winget configure --file C:\ArcBox\DSC\dataops.dsc.yml --accept-configuration-agreements --disable-interactivity }
'ITPro' { winget configure --file C:\ArcBox\DSC\itpro.dsc.yml --accept-configuration-agreements --disable-interactivity }
'ITPro' {
winget configure --file C:\ArcBox\DSC\itpro.dsc.yml --accept-configuration-agreements --disable-interactivity
# install Power BI (does not support winget congigure) on ITPro flavor
winget install --id=Microsoft.PowerBI --silent --accept-package-agreements --accept-source-agreements
}
}

# Start remaining logon scripts
Expand Down