checkov
checkov copied to clipboard
feat(arm): add CKV_AZURE_177 to ensure that Windows VM enables automatic updates
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description
added a new arm policy to ensure that Windows VM enables automatic updates
Fixes # (issue)
New/Edited policies (Delete if not relevant)
Description
Include a description of what makes it a violation and any relevant external links.
Fix
How does someone fix the issue in code and/or in runtime?
Checklist:
- [X] My code follows the style guidelines of this project
- [X] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [X] I have added tests that prove my feature, policy, or fix is effective and works
- [X] New and existing tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules
Hi @tehila86127, thanks for your contribution, You need to check only if the value is false because the default is true
Hi @tehila86127 , please check the tests