Skip to main content
Version: Deploy 24.1

Deploy Microsoft IIS configuration elements and attributes

This topic provides information about Deploy Microsoft IIS configuration elements and attributes.

After you have installed Deploy and the Microsoft IIS plugin, log in to Deploy and follow these instructions to:

  1. Create, modify and remove Collection Config Elements
  2. Create, modify and remove Attributes

Create Config Collection Element

The ConfigurationElementCollection represents a collection of elements within a configuration file. In the below example, files is a collection containing elements under it.

    <system.webServer>
<defaultDocument enabled="true">
<files>
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="index.html" />
</files>
</defaultDocument>
</system.webServer>
  1. To create a new Config Collection element in an applicaiton package, Select ConfigCollectionElementSpec from IIS.
  2. Enter value for fields like the path, filter, index and attributes. Path and index are optional values. Path defaults to MACHINE/WEBROOT/APPHOST.
  3. Click Save and deploy the application.
  4. The new collection element will be added to the config file and will be picked up by IIS.

Sample deployment

Sample deployment

Create Attribute Element

Attribute is a configuration on a configuration section or a configuration element. In the below example, enabled is an attribute on configuration elements caching.

    <system.webServer>
<caching enabled="true" enableKernelCache="true">
</caching>
</system.webServer>
  1. To create an attribute or a set of attributes, Select AttributeSpec from IIS.
  2. Enter value for fields like the path, filter and attributes.
  3. Click Save and deploy the application.
  4. The new attribute(s) will be added to the element in the config file and will be picked up by IIS.

Sample deployment

Sample deployment