I have been working on writing a new recipe that makes use of powershell_script resource. I had some syntax error in the script code but it was not pointed out by chef-client run. Rather, the chef-client run would say that the resource ran successfully. Though I was able to find out the syntax error later but I was wondering if there is a better way to troubleshoot syntax errors in powershell_script resource. I tried running chef-client with -l debug switch but that gave not much information either.
I have seen similar behavior with the use of quotation marks and I had to escape those with “” to make it work.
This email and any accompanying documents may contain privileged or otherwise confidential information of, and/or is the property of Education Management Solutions, Inc. If you are not the intended recipient, please immediately advise the sender by reply email & delete the message & any attachments without using, copying or disclosing the contents. Thank you.