Skip to content

Instantly share code, notes, and snippets.

@weeyin83
Last active June 20, 2022 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weeyin83/3b5ce2857c399f1860bc7d407b0440c3 to your computer and use it in GitHub Desktop.
Save weeyin83/3b5ce2857c399f1860bc7d407b0440c3 to your computer and use it in GitHub Desktop.
$OctopusServer = $Args[0]
$OctopusAPI = $Args[1]
$workerPool = $Args[2]
$Space = $Args[3]
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco install git azure-cli powershell-core awstools.powershell awssamcli awscli octopusdeploy.tentacle -y
tentacle register-worker --server="$OctopusServer" --apiKey="$OctopusAPI" --workerpool="$workerPool --space="$Space" --comms-style="TentacleActive"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment