Emil
(Emil)
1
I need to automate the creation of a deployment target via the Octopus API / Octopus Client.
I wonder if I am missing something, because I found nothing in the code samples here 
Any pointers please? I thought starting to inspecting the traffic from the UI how it gets created is my last resource
…
Thanks in advance!
Emil
Hi @Emil
We do have a couple of scripts on our OctopusDeploy-API repo that you can use for this -
For registering a machine running a tentacle, you can look at https://github.com/OctopusDeploy/OctopusDeploy-Api/blob/master/REST/PowerShell/Targets/RegisterTentacle.ps1
For registering a machine as a SSH target, you can look at https://github.com/OctopusDeploy/OctopusDeploy-Api/blob/master/REST/PowerShell/Targets/RegisterSSHEndpoint.ps1
I hope these help, please don’t hesitate to let us know if you have any further questions!
Emil
(Emil)
4
Hi @Justin_Walsh,
I’ve just realised I haven’t given you enough information.
Tentacle setup is not applicable in my case as I am refering to Azure Web App Deployment Targets!
I should rephrase my question:
How to automate the creation of Azure Web App Deployment target?
Emil
(Emil)
5
system
(system)
Closed
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.