WebConfigProperties is used to ensure the value of an identified property in the web.config file.
Source |
|
DSC Resource |
|
Documentation |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Mandatory |
Hashtable[] |
set of web config properties |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
WebsitePath |
Key |
String |
Path to website location (IIS or WebAdministration format). |
|
Filter |
Key |
String |
Filter used to locate property to update. |
|
PropertyName |
Key |
String |
Name of the property to update. |
|
Value |
String |
Value of the property to update. |
||
Ensure |
String |
Indicates if the property and value should be present or absent. |
|
Example
WebConfigProperties:
Items:
- WebsitePath: IIS:\Sites\Default Web Site\CertEnroll
Filter: system.webServer/directoryBrowse
PropertyName: enabled
Value: true
- WebsitePath: IIS:\Sites\Default Web Site\CertEnroll
Filter: system.webServer/security/requestFiltering
PropertyName: allowDoubleEscaping
Value: true