Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeButters committed Dec 7, 2023
1 parent 9094d01 commit d3a7a71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testing/compatibility/azure/deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ $env:virtualMachineSku = '2022-datacenter-azure-edition'
$env:os = 'windows2022-48'
az deployment group create --name $group --resource-group $resourcegroup --template-file vm.bicep --parameters vm.bicepparam

echo "Net48 tentacles wont connect, restart all net48 VMs then re-run the script in c:\\TentacleInStallRun.ps1 OR after restart modify the install-tentacle.ps1 script (add an extra Write-Host) so bicep see's it as a differnt script and so will re-run the script on the VMs again."
echo "Net48 tentacles wont connect, restart all net48 VMs then re-run the script in c:\\TentacleInstallRun.ps1 OR after restart modify the install-tentacle.ps1 script (add an extra Write-Host) so bicep see's it as a differnt script and so will re-run the script on the VMs again."
7 changes: 6 additions & 1 deletion testing/compatibility/azure/install-tentacle.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ $os,
$tentacleUri,
$tentacleNamePostfix)


myargs = "$octopusServerThumbprint $octopusServerUrl $octopusServerApiKey $octopusServerRole $octopusServerEnvironment $os $tentacleUri $tentacleNamePostfix"
$altCmd = "$PSCommandPath $myargs"
$altCmd > c:\\TentacleInstallRun.ps1

[Enum]::GetNames([Net.SecurityProtocolType]) -contains 'Tls12'
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12

Expand All @@ -22,7 +27,7 @@ if ($installedVersion -lt $net48BuildNumber) {
$process = start-process "C:\Windows\Temp\ndp48-x86-x64-allos-enu.exe" -argumentlist @("/q", "/norestart", "/log", "C:\Windows\Temp\ndp48-x86-x64-allos-enu.log") -wait -PassThru
$process.WaitForExit()
Write-Host "Installed .NET 4.8"
refreshenv
# For net48 to work the machine must be rebooted and this scripted edited again.
} else {
Write-Host "Net framework 4.8 already installed"
}
Expand Down

0 comments on commit d3a7a71

Please sign in to comment.