Monday, October 5, 2015

Power shell DSC Configuration Keyword

PowerShell Desired State Configuration (DSC) uses Configuration Keyword to express the desired state of one or more target nodes.

Below configuration indicates that the server should have IIS enabled during provisioning :

Configuration EnableIIS
{
  Node WebServer
  {
     WindowsFeature IIS {
                     Ensure = "Present"
                     Name= "Web-Server"
                         }
  }
}

No comments:

Post a Comment