-
-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to add new element to a Collection #433
Comments
Hey There If you're looking for more immediate troubleshooting help make sure to check out #general on the Chef Community Slack. There's plenty of folks there willing to lend a helping hand. Thanks for the first issue. We hope we can get back to you soon with a solution. |
I think the issue is while adding the verb property, I need to set two mandatory properties at same time. i.e In my first recipe, I have to add both verb & allowed property together. If I am correct, Is this possible? |
We actually came across this issue this week as well. We were trying to execute an Add-WebConfigurationProperty command similar to what is shown below and the iis_config_property resource did not support multiple properties for the value parameter:
I opened PR-435 in an attempt to resolve this issue, and looking for any feedback or suggestions. |
Cookbook version
7.1.0
Chef-client version
14.5.33
Platform Details
Windows Server 2012R2
Scenario:
Add an element to Collection under verbs in system.webServer/security/requestFiltering section
Equivalent PowerShell command:
Add-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST' -filter "system.webServer/security/requestFiltering/verbs" -name "." -value @{verb='TRACE';allowed='False'}
Steps to Reproduce:
Run this Recipe:
Expected Result:
Should add a new element (verb='TRACE',allowed='False' under verbs
Actual Result:
Error Log can be found here: errorlog
The text was updated successfully, but these errors were encountered: