Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DSC to Configure an IIS App Pool

We've been researching desired state configuration, and I was asked to set up a prototype using powershell DSC to configure an IIS app pool. I know all the steps to creating a configuration, I just am unsure of what I might have in my configuration. I plan to use the xWebAdministration resource because it has things like xWebAppPool and xWedbAdministration. Are there any suggestions on what else I might use to set this up?

like image 400
user2938241 Avatar asked Jan 29 '26 12:01

user2938241


2 Answers

If you have many sites that you are trying to bring under configuration control, you could use my DSC generator to produce the DSC for IIS Features, Web sites, app pools, and virtual directories.

I then use Octopus Deploy to deliver the DSC to the server and apply the DSC.

https://github.com/kevinsea/dsc-generator

like image 76
KevinC Avatar answered Feb 01 '26 10:02

KevinC


You would probably use the WindowsFeature resource to install the Roles and Features needed (Web-Server, etc.), you'd probably use the File resource to create the directory and maybe copy the site's files, you might use the Registry resource to enable the Web Management Service so that you can manage IIS remotely, then use the Service resource to start that service.

like image 22
briantist Avatar answered Feb 01 '26 12:02

briantist



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!