Dynamic creation of Port Number in IIS Bindings

I am in a situation where I need to deploy each version of my web service as a new service in the same App Pool.

I wanted to know if it is possible to dynamically create a port number in the IIS Bindings so that if any release takes place a new web service will be deployed in the application pool of IIS.

Hi Sahil,

Thanks for getting in touch! There is nothing in Octopus itself that could help in this situation, however with PowerShell and variables you could create your own.
You could create a step ahead to ‘create a random Port number’ then assign it as an Octopus variable, then use that variable in the bindings settings.

Hope this helps!
Vanessa