Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -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."

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 `
Expand Down
Loading