I am working on a powershell script that adds a binding in IIS using New-IISSiteBinding.
After the first run, I keep getting...
New-IISSiteBinding : Web site binding '*:443:mydomain.co.uk' already exists.
At line:7 char:1
+ New-IISSiteBinding -Name "MYSITE" -BindingInformation ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [New-IISSiteBinding], ArgumentException
+ FullyQualifiedErrorId : InvalidArgument,Microsoft.IIS.Powershell.Commands.NewIISSiteBindingCommand
When I call Get-IISSiteBinding, I can see the binding is there.
When I go to ISS, the binding isn't showing against the site.
When I go to applicationHost.config, the binding isn't in the file.
What is happening, please?