diff --git a/azure_jumpstart_arcbox/artifacts/ArcServersLogonScript.ps1 b/azure_jumpstart_arcbox/artifacts/ArcServersLogonScript.ps1 index ab21239648..36d877915c 100644 --- a/azure_jumpstart_arcbox/artifacts/ArcServersLogonScript.ps1 +++ b/azure_jumpstart_arcbox/artifacts/ArcServersLogonScript.ps1 @@ -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' diff --git a/azure_jumpstart_arcbox/artifacts/dsc/itpro.dsc.yml b/azure_jumpstart_arcbox/artifacts/dsc/itpro.dsc.yml index 616c6d817e..be7ea09e12 100644 --- a/azure_jumpstart_arcbox/artifacts/dsc/itpro.dsc.yml +++ b/azure_jumpstart_arcbox/artifacts/dsc/itpro.dsc.yml @@ -40,4 +40,11 @@ properties: IPAddress: '10.10.1.1/24' AddressFamily: IPv4 KeepExistingAddress: false + - resource: Microsoft.WinGet.DSC/WinGetPackage + id: powerbi + directives: + description: Install Microsoft PowerBI + settings: + id: Microsoft.PowerBI + source: winget configurationVersion: 0.2.0 \ No newline at end of file