In powershell scripting we have the following method call…
New-OctopusAzureWebAppTarget
found in https://github.com/OctopusDeploy/Calamari/blob/master/source/Calamari.Shared/Integration/Scripting/WindowsPowerShell/Bootstrap.ps1
Does this exist for Scriptcs?
Looking at the similar source in https://github.com/OctopusDeploy/Calamari/blob/master/source/Calamari.Shared/Integration/Scripting/ScriptCS/Bootstrap.csx it appears no.
Thanks for reaching out. You are correct, at the moment these commands only exist in Powershell.
If you’d like to see them available in ScriptCS, your best bet will be to submit a request in https://octopusdeploy.uservoice.com. If enough users get behind the idea, I can’t see why we couldn’t add them to ScriptCS.