From the course: Deploying ASP.NET Applications

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Automate IIS install with PowerShell DSC

Automate IIS install with PowerShell DSC

From the course: Deploying ASP.NET Applications

Start my 1-month free trial

Automate IIS install with PowerShell DSC

- [Tutor] As mentioned earlier, another option for automation would be PowerShell Desired State Configuration, or DSC for short. DSC was introduced in Windows Server 2012 R2. And it is a way to automate the installation or the configuration of a Windows Server. So let's see what we can do in our machine. We have a file, a PowerShell file called IIS DSC. So let's see it how it looks like. It has a configuration. The name of the configuration is called Deploy Web App. And it specify some nodes, and some features that we wanted to install. So have a node local host, meaning that I want to install those on my current machine. This can be actually installed on several machines, if you have a local server that will deploy those Desired State Configuration. And that's it nothing more than that. In order to make sure that everything works correctly, PowerShell would recommend that we use the import DSC resource minus module name PS Desired State Configuration. If we wouldn't introduce that…

Contents