Author Posts

August 26, 2014 at 2:55 am

I´m trying to use DSC to deplo web with net.pipe protocol but get errror:

xWebAdministration\MSFT_xWebBindingInformation : 'net.pipe' is not a valid value for property 'Protocol' on class 'MSFT_xWebBindingInformation'. Please change the value
to one of the following strings: http, https.

Are there any secret way to add net.pipe as valid binging protocol for websites?

Best regards
Vífill

August 26, 2014 at 3:52 am

The resource does not currently support net.pipe bindings. There's a community modification of that resource on the PowerShell.org DSC GitHub repository: https://github.com/PowerShellOrg/DSC/tree/master/Resources/cWebAdministration/DSCResources/PSHOrg_cWebsite . If you know how to get net.pipe bindings working, you could submit a modification for the cWebsite resource.

August 26, 2014 at 6:31 am

Is it as easy as change this file:
PSHOrg_cWebsite.schema.mof

line 5 would be
[Write,ValueMap{"http", "https", "net.pipe"},Values{"http", "https", "net.pipe"}] string Protocol;
instead of
[Write,ValueMap{"http", "https"},Values{"http", "https"}] string Protocol;

?
and of course enabling net.pipe protocol on the OS.

August 26, 2014 at 6:36 am

All that would do is allow you to pass a value of "net.pipe" as a parameter to the resource. That's the easy part.

There would also need to be new code inside the resource's module to actually do something when the configuration passes in a value of "net.pipe". I haven't personally used this type of binding in IIS before, but based on a quick web search on the topic, there are several prerequisites for this. (Windows features that need to be installed, services that need to be running, an IIS server configuration option, and then finally creating the binding.)

August 26, 2014 at 7:33 am

This works fine, if its done after installation of the site:
C:\Windows\System32\inetsrv\appcmd.exe set config -section:system.applicationHost/sites /+"[name='SiteName'].bindings.[protocol='net.pipe',bindingInformation='*']" /commit:apphost
But I would rather use native dsc functions then appcmd command line tool if net.pipe where supported.
Thanks any way