I built a custom DCS resource for use in configuring IIS 7.5 using two cmdlets in the WebAdministration module - Get-WebConfigurationProperty and Set-WebConfigurationProperty. Have it working just fine.
But as part of my “one and only one” configuration definition for a server, I also intend to use the built-in “WindowsFeature” resource to install IIS as part of the “Web Server” role. The problem is that until this “WindowsFeature” is configured, the WebAdministration module doesn’t exist, so trying to apply the “one and only one configuration” that configures the “Web Server” role “WindowsFeature”, and then configures aspects of this installed feature fails.
Any idea on how to accomplish what I am trying to do?