I am trying to use appcmd.exe to add a website to IIS.
I have almost everything working except one small bug.
The line of code I am using is
add site /name:WEBSITENAME /bindings:https://HOSTNAME:10.100.213.121:443 /physicalpath:C:\inetpub\WEBSITENAME
When I do this and look at the bindings on IIS it has everything correct except my ip address is shown to be "*:10.100.213.121" (excluding the quotes)
somewhere it is adding the *: to the beginning of it.
This is creating an invalid binding.
I want to keep this to only one command
I know I can use a second command to edit site bindings, but if i can keep this all the the creation of the site that would be ideal