Using complex resources
So far, we've kept our DSC fairly simple—install this role, write this file, remove this website. If only life were always that simple! Often, we need to have DSC do things that are far more complicated than that, so in this recipe, we're going to look at some of these more complex operations.
The first thing we're going to do is have DSC request a certificate from our internal certificate authority (CA), and then, we're going to use that certificate in our IIS website so that we can have a HyperText Transfer Protocol Secure (HTTPS) binding. This will show how we can order resources in DSC, as well as use some of the more complex resources.
Getting ready
You'll need your Windows Server 2019 server we've been using for all this chapter's recipes, and you'll also need a working Windows CA to request certificates from. If you need to build one of these, have a look at Chapter 4, Working with Certificates.
...