checkov icon indicating copy to clipboard operation
checkov copied to clipboard

feat(arm): add CKV_AZURE_177 to ensure that Windows VM enables automatic updates

Open tehila86127 opened this issue 1 year ago • 1 comments

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

tehila86127 avatar Jun 24 '24 08:06 tehila86127

Hi @tehila86127, thanks for your contribution, You need to check only if the value is false because the default is true

matansha avatar Jun 26 '24 08:06 matansha

Hi @tehila86127 , please check the tests

AdamDev avatar Jul 03 '24 13:07 AdamDev