prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Check CKV_AZURE_50 fails incorrectly for resource 'azurerm_virtual_machine'
  CKV_AZURE_50 always fails for the resource "azurerm_virtual_machine" due to an incorrect check of the existence of the attribute "allow_extension_operations":
  
  https://github.com/bridgecrewio/checkov/blob/25388a34231e09ac17b266ad9db0b4c0e806e956/checkov/terraform/checks/resource/azure/AzureInstanceExtensions.py#L15
  
  The Terraform resource "azurerm_virtual_machine" does not have an attribute named "allow_extension_operations" (see [Terraform Resouce Docu](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_machine).
  
  
  
  </issue>
  <code>
  [start of checkov/terraform/checks/resource/azure/AzureInstanceExtensions.py]
  1 from checkov.common.models.enums import CheckCategories, CheckResult
  2 from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
  3 
  4 
  5 class AzureInstanceExtensions(BaseResourceValueCheck):
  6     def __init__(self):
  7         name = "Ensure Virtual Machine Extensions are not Installed"
  8         id = "CKV_AZURE_50"
  9         supported_resources = ['azurerm_virtual_machine', 'azurerm_linux_virtual_machine']
  10         categories = [CheckCategories.GENERAL_SECURITY]
  11         super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources,
  12                          missing_block_result=CheckResult.PASSED)
  13 
  14     def get_inspected_key(self):
  15         return 'allow_extension_operations'
  16 
  17     def get_expected_value(self):
  18         return False
  19 
  20 
  21 check = AzureInstanceExtensions()
  22
  [end of checkov/terraform/checks/resource/azure/AzureInstanceExtensions.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/checkov/terraform/checks/resource/azure/AzureInstanceExtensions.py b/checkov/terraform/checks/resource/azure/AzureInstanceExtensions.py
  --- a/checkov/terraform/checks/resource/azure/AzureInstanceExtensions.py
  +++ b/checkov/terraform/checks/resource/azure/AzureInstanceExtensions.py
  @@ -1,20 +1,21 @@
  -from checkov.common.models.enums import CheckCategories, CheckResult
  +from typing import Any
  +
  +from checkov.common.models.enums import CheckCategories
   from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
   
   
   class AzureInstanceExtensions(BaseResourceValueCheck):
  -    def __init__(self):
  +    def __init__(self) -> None:
           name = "Ensure Virtual Machine Extensions are not Installed"
           id = "CKV_AZURE_50"
  -        supported_resources = ['azurerm_virtual_machine', 'azurerm_linux_virtual_machine']
  +        supported_resources = ["azurerm_linux_virtual_machine", "azurerm_windows_virtual_machine"]
           categories = [CheckCategories.GENERAL_SECURITY]
  -        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources,
  -                         missing_block_result=CheckResult.PASSED)
  +        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)
   
  -    def get_inspected_key(self):
  -        return 'allow_extension_operations'
  +    def get_inspected_key(self) -> str:
  +        return "allow_extension_operations"
   
  -    def get_expected_value(self):
  +    def get_expected_value(self) -> Any:
           return False
  
verification_info: {"golden_diff": "diff --git a/checkov/terraform/checks/resource/azure/AzureInstanceExtensions.py b/checkov/terraform/checks/resource/azure/AzureInstanceExtensions.py\n--- a/checkov/terraform/checks/resource/azure/AzureInstanceExtensions.py\n+++ b/checkov/terraform/checks/resource/azure/AzureInstanceExtensions.py\n@@ -1,20 +1,21 @@\n-from checkov.common.models.enums import CheckCategories, CheckResult\n+from typing import Any\n+\n+from checkov.common.models.enums import CheckCategories\n from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\n \n \n class AzureInstanceExtensions(BaseResourceValueCheck):\n-    def __init__(self):\n+    def __init__(self) -> None:\n         name = \"Ensure Virtual Machine Extensions are not Installed\"\n         id = \"CKV_AZURE_50\"\n-        supported_resources = ['azurerm_virtual_machine', 'azurerm_linux_virtual_machine']\n+        supported_resources = [\"azurerm_linux_virtual_machine\", \"azurerm_windows_virtual_machine\"]\n         categories = [CheckCategories.GENERAL_SECURITY]\n-        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources,\n-                         missing_block_result=CheckResult.PASSED)\n+        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)\n \n-    def get_inspected_key(self):\n-        return 'allow_extension_operations'\n+    def get_inspected_key(self) -> str:\n+        return \"allow_extension_operations\"\n \n-    def get_expected_value(self):\n+    def get_expected_value(self) -> Any:\n         return False\n", "issue": "Check CKV_AZURE_50 fails incorrectly for resource 'azurerm_virtual_machine'\nCKV_AZURE_50 always fails for the resource \"azurerm_virtual_machine\" due to an incorrect check of the existence of the attribute \"allow_extension_operations\":\r\n\r\nhttps://github.com/bridgecrewio/checkov/blob/25388a34231e09ac17b266ad9db0b4c0e806e956/checkov/terraform/checks/resource/azure/AzureInstanceExtensions.py#L15\r\n\r\nThe Terraform resource \"azurerm_virtual_machine\" does not have an attribute named \"allow_extension_operations\" (see [Terraform Resouce Docu](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_machine).\r\n\r\n\n", "before_files": [{"content": "from checkov.common.models.enums import CheckCategories, CheckResult\nfrom checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\n\n\nclass AzureInstanceExtensions(BaseResourceValueCheck):\n    def __init__(self):\n        name = \"Ensure Virtual Machine Extensions are not Installed\"\n        id = \"CKV_AZURE_50\"\n        supported_resources = ['azurerm_virtual_machine', 'azurerm_linux_virtual_machine']\n        categories = [CheckCategories.GENERAL_SECURITY]\n        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources,\n                         missing_block_result=CheckResult.PASSED)\n\n    def get_inspected_key(self):\n        return 'allow_extension_operations'\n\n    def get_expected_value(self):\n        return False\n\n\ncheck = AzureInstanceExtensions()\n", "path": "checkov/terraform/checks/resource/azure/AzureInstanceExtensions.py"}]}