From 2af72b72433795f88da7d17a8618a94cb23a2e55 Mon Sep 17 00:00:00 2001 From: Oliver Hahn Date: Wed, 11 Nov 2026 12:07:19 +0100 Subject: [PATCH] FY27-SQLMOD-Updates-2026-11-11 --- .../scripts/bootstrap-legacy.ps1 | 12 ++--- .../scripts/install-team-tools.ps1 | 50 ++++++++----------- 2 files changed, 26 insertions(+), 36 deletions(-) diff --git a/03-Azure/01-02 Data/02-SQL_Modernization/labautomation/scripts/bootstrap-legacy.ps1 b/03-Azure/01-02 Data/02-SQL_Modernization/labautomation/scripts/bootstrap-legacy.ps1 index e600bf62b..e6f32c9c9 100644 --- a/03-Azure/01-02 Data/02-SQL_Modernization/labautomation/scripts/bootstrap-legacy.ps1 +++ b/03-Azure/01-02 Data/02-SQL_Modernization/labautomation/scripts/bootstrap-legacy.ps1 @@ -42,12 +42,12 @@ Write-Host "Configuring SQLMI..." Write-Host "Configuring SQL MI Link (certificates and endpoints)..." -try { - & .\Configure-SQLMI-Link.ps1 -ManagedInstanceServer $ManagedInstanceServer -sqlusername $sqlMiAdminUsername -sqlpassword $sqlMiAdminPassword -} -catch { - Write-Warning "Configuring SQL MI Link failed: $($_.Exception.Message)" -} +# try { +# & .\Configure-SQLMI-Link.ps1 -ManagedInstanceServer $ManagedInstanceServer -sqlusername $sqlMiAdminUsername -sqlpassword $sqlMiAdminPassword +# } +# catch { +# Write-Warning "Configuring SQL MI Link failed: $($_.Exception.Message)" +# } Write-Host "Bootstrap completed." diff --git a/03-Azure/01-02 Data/02-SQL_Modernization/labautomation/scripts/install-team-tools.ps1 b/03-Azure/01-02 Data/02-SQL_Modernization/labautomation/scripts/install-team-tools.ps1 index d3bf9035c..6d0acfeec 100644 --- a/03-Azure/01-02 Data/02-SQL_Modernization/labautomation/scripts/install-team-tools.ps1 +++ b/03-Azure/01-02 Data/02-SQL_Modernization/labautomation/scripts/install-team-tools.ps1 @@ -39,41 +39,31 @@ try { throw "SSMS installation failed with exit code $($ssmsProcess.ExitCode)." } - Write-Host 'Resolving latest Azure Storage Explorer release.' + # Storage Explorer is optional: a failure must not fail the whole script. + try { + $storageExplorerInstaller = Join-Path $installDirectory 'StorageExplorer-windows-x64.exe' - # $release = Invoke-RestMethod ` - # -Uri 'https://api.github.com/repos/microsoft/AzureStorageExplorer/releases/latest' ` - # -UseBasicParsing + Write-Host 'Downloading Azure Storage Explorer.' - # $asset = $release.assets | - # Where-Object { - # $_.name -eq 'StorageExplorer-windows-x64.exe' - # } | - # Select-Object -First 1 + Invoke-WebRequest ` + -Uri 'https://go.microsoft.com/fwlink/?LinkId=708343&clcid=0x409' ` + -OutFile $storageExplorerInstaller ` + -UseBasicParsing - # if (-not $asset) { - # throw 'The Azure Storage Explorer x64 installer could not be found.' - # } + Write-Host 'Installing Azure Storage Explorer.' - $storageExplorerInstaller = Join-Path $installDirectory 'StorageExplorer-windows-x64.exe' + $storageExplorerProcess = Start-Process ` + -FilePath $storageExplorerInstaller ` + -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /ALLUSERS' ` + -Wait ` + -PassThru - Write-Host 'Downloading Azure Storage Explorer.' - - Invoke-WebRequest ` - -Uri 'https://go.microsoft.com/fwlink/?LinkId=708343&clcid=0x409' ` - -OutFile $storageExplorerInstaller ` - -UseBasicParsing - - Write-Host 'Installing Azure Storage Explorer.' - - $storageExplorerProcess = Start-Process ` - -FilePath $storageExplorerInstaller ` - -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /ALLUSERS' ` - -Wait ` - -PassThru - - if ($storageExplorerProcess.ExitCode -notin 0, 3010) { - throw "Storage Explorer installation failed with exit code $($storageExplorerProcess.ExitCode)." + if ($storageExplorerProcess.ExitCode -notin 0, 3010) { + throw "Storage Explorer installation failed with exit code $($storageExplorerProcess.ExitCode)." + } + } + catch { + Write-Warning "Azure Storage Explorer could not be installed and is skipped: $($_.Exception.Message)" } New-Item `