Creating DSC configuration
The next step is to write a DSC configuration using any PowerShell editor to reflect the intent of the configuration. For this sample, a single configuration, ConfigureSiteOnIIS, is created. It imports the base DSC module, PSDesiredStateConfiguration, which consists of resources used within the configuration. It also declares a node web server. When this configuration is uploaded and compiled, it will generate a DSCConfigurationNodes named ConfigureSiteOnIISwebserver. This configuration can then be applied to nodes.
The configuration consists of a few resources. These resources configure the target node. The resources install a web server, ASP.NET, and framework, and create an index.htm file within the inetpub\wwwroot ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access