Hi,
I’m currently using New-OctopusAzureWebAppTarget
PowerShell cmdlet to create a WebApp Target dynamically inside a deployment. Thing is, if the WebApp Target already exists, the whole step fails.
Would there be a way to check if the target already exists or use some cmdlet like Get-OctopusAzureWebAppTarget
(which doesn’t exist as of v2018.10.0 LTS)? I tried using a Try-Catch in my script to catch the error but it hasn’t even got in the catch statement.
What would you recommend using in this case?
Thanks and regards,
Etienne Huckle-Marchand