-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathconfigScriptAppNode.ps1
More file actions
39 lines (30 loc) · 1.22 KB
/
configScriptAppNode.ps1
File metadata and controls
39 lines (30 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
param (
[string]$SqlInstanceName,
[string]$adminUsername,
[string]$adminPassword
)
$SqlInstanceName = $SqlInstanceName + ".database.windows.net"
Write-Host "Configuring SQL Managed Instance: $SqlInstanceName"
Write-Host "Setting up VM: $VMName"
# Define variables
$downloadUrl = "http://download.composableanalytics.com/binaries/CompAnalyticsSetup.exe"
$localFilePath = "C:\Temp\CompAnalyticsSetup.exe"
# Ensure the directory exists
New-Item -ItemType Directory -Path (Split-Path -Path $localFilePath) -Force | Out-Null
# Download the file
Write-Host "Downloading installer from $downloadUrl to $localFilePath..."
Invoke-WebRequest -Uri $downloadUrl -OutFile $localFilePath
# Unblock the file to allow execution
Write-Host "Unblocking the installer file..."
Unblock-File -Path $localFilePath
# Install Composable
Write-Host "Installing Composable..."
& $localFilePath `
/quiet /install `
DB_SERVER=$SqlInstanceName `
DB_NAME="CompAnalytics" `
ADMIN_USERNAME=$adminUsername `
ADMIN_EMAIL="admin@composableanalytics.com" `
ADMIN_PASSWORD=$adminPassword `
FEATURES="ManagerFeature,WebApplicationFeature,InteropServiceFeature"
Write-Host "Composable Configuration complete!"