prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  CKV_AZURE_23 - Reports incorrect fail when using azurerm_mssql_server_extended_auditing_policy
  Check: CKV_AZURE_23: "Ensure that 'Auditing' is set to 'On' for SQL servers"
          FAILED for resource: azurerm_mssql_server.server
          File: /sql_server.tf:19-37
          Guide: https://docs.bridgecrew.io/docs/bc_azr_logging_2
  
                  19 | resource "azurerm_mssql_server" "server" {
                  20 |   name                          = "${var.org_short}-${var.env_short}-${var.loc_short}-${var.service}-mssql"
                  21 |   location                      = var.location
                  22 |   resource_group_name           = azurerm_resource_group.server.name
                  23 |   version                       = var.sql_server_server_version
                  24 |   administrator_login           = "${var.org_short}-${var.env_short}-${var.loc_short}-${var.service}-mssql-admin"
                  25 |   administrator_login_password  = random_password.server.result
                  26 |   minimum_tls_version           = var.min_tls_version
                  27 |   public_network_access_enabled = false
                  28 |   azuread_administrator {
                  29 |     login_username = "AzureAD Admin"
                  30 |     object_id      = data.azuread_group.sqldba.object_id
                  31 |     tenant_id      = data.azurerm_client_config.current.tenant_id
                  32 |   }
                  33 |   identity {
                  34 |     type = "SystemAssigned"
                  35 |   }
                  36 |   tags = local.default_tags
                  37 | }
  
  When using Checkov v1.0.861
  
  However
  The auditing policy is set by the separate resource azurerm_mssql_server_extended_auditing_policy
  
  ```
  resource "azurerm_mssql_server_extended_auditing_policy" "server" {
    server_id                                                     = azurerm_mssql_server.server.id
    log_monitoring_enabled                            = true
    storage_endpoint                                       = azurerm_storage_account.server.primary_blob_endpoint
    storage_account_access_key                       = azurerm_storage_account.server.primary_access_key
    storage_account_access_key_is_secondary = true
    retention_in_days                                        = var.log_rention_policy_days
  }
  ```
  
  
  
  
  
  </issue>
  <code>
  [start of checkov/terraform/checks/resource/azure/SQLServerAuditingEnabled.py]
  1 from checkov.common.models.enums import CheckCategories
  2 from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
  3 from checkov.common.models.consts import ANY_VALUE
  4 
  5 
  6 class SQLServerAuditingEnabled(BaseResourceValueCheck):
  7     def __init__(self):
  8         name = "Ensure that 'Auditing' is set to 'On' for SQL servers"
  9         id = "CKV_AZURE_23"
  10         supported_resources = ['azurerm_sql_server', 'azurerm_mssql_server']
  11         categories = [CheckCategories.LOGGING]
  12         super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)
  13 
  14     def get_inspected_key(self):
  15         return 'extended_auditing_policy'
  16 
  17     def get_expected_value(self):
  18         return ANY_VALUE
  19 
  20 
  21 check = SQLServerAuditingEnabled()
  22
  [end of checkov/terraform/checks/resource/azure/SQLServerAuditingEnabled.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/SQLServerAuditingEnabled.py b/checkov/terraform/checks/resource/azure/SQLServerAuditingEnabled.py
  deleted file mode 100644
  --- a/checkov/terraform/checks/resource/azure/SQLServerAuditingEnabled.py
  +++ /dev/null
  @@ -1,21 +0,0 @@
  -from checkov.common.models.enums import CheckCategories
  -from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
  -from checkov.common.models.consts import ANY_VALUE
  -
  -
  -class SQLServerAuditingEnabled(BaseResourceValueCheck):
  -    def __init__(self):
  -        name = "Ensure that 'Auditing' is set to 'On' for SQL servers"
  -        id = "CKV_AZURE_23"
  -        supported_resources = ['azurerm_sql_server', 'azurerm_mssql_server']
  -        categories = [CheckCategories.LOGGING]
  -        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)
  -
  -    def get_inspected_key(self):
  -        return 'extended_auditing_policy'
  -
  -    def get_expected_value(self):
  -        return ANY_VALUE
  -
  -
  -check = SQLServerAuditingEnabled()
  
verification_info: {"golden_diff": "diff --git a/checkov/terraform/checks/resource/azure/SQLServerAuditingEnabled.py b/checkov/terraform/checks/resource/azure/SQLServerAuditingEnabled.py\ndeleted file mode 100644\n--- a/checkov/terraform/checks/resource/azure/SQLServerAuditingEnabled.py\n+++ /dev/null\n@@ -1,21 +0,0 @@\n-from checkov.common.models.enums import CheckCategories\n-from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\n-from checkov.common.models.consts import ANY_VALUE\n-\n-\n-class SQLServerAuditingEnabled(BaseResourceValueCheck):\n-    def __init__(self):\n-        name = \"Ensure that 'Auditing' is set to 'On' for SQL servers\"\n-        id = \"CKV_AZURE_23\"\n-        supported_resources = ['azurerm_sql_server', 'azurerm_mssql_server']\n-        categories = [CheckCategories.LOGGING]\n-        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)\n-\n-    def get_inspected_key(self):\n-        return 'extended_auditing_policy'\n-\n-    def get_expected_value(self):\n-        return ANY_VALUE\n-\n-\n-check = SQLServerAuditingEnabled()\n", "issue": "CKV_AZURE_23 - Reports incorrect fail when using azurerm_mssql_server_extended_auditing_policy\nCheck: CKV_AZURE_23: \"Ensure that 'Auditing' is set to 'On' for SQL servers\"\r\n        FAILED for resource: azurerm_mssql_server.server\r\n        File: /sql_server.tf:19-37\r\n        Guide: https://docs.bridgecrew.io/docs/bc_azr_logging_2\r\n\r\n                19 | resource \"azurerm_mssql_server\" \"server\" {\r\n                20 |   name                          = \"${var.org_short}-${var.env_short}-${var.loc_short}-${var.service}-mssql\"\r\n                21 |   location                      = var.location\r\n                22 |   resource_group_name           = azurerm_resource_group.server.name\r\n                23 |   version                       = var.sql_server_server_version\r\n                24 |   administrator_login           = \"${var.org_short}-${var.env_short}-${var.loc_short}-${var.service}-mssql-admin\"\r\n                25 |   administrator_login_password  = random_password.server.result\r\n                26 |   minimum_tls_version           = var.min_tls_version\r\n                27 |   public_network_access_enabled = false\r\n                28 |   azuread_administrator {\r\n                29 |     login_username = \"AzureAD Admin\"\r\n                30 |     object_id      = data.azuread_group.sqldba.object_id\r\n                31 |     tenant_id      = data.azurerm_client_config.current.tenant_id\r\n                32 |   }\r\n                33 |   identity {\r\n                34 |     type = \"SystemAssigned\"\r\n                35 |   }\r\n                36 |   tags = local.default_tags\r\n                37 | }\r\n\r\nWhen using Checkov v1.0.861\r\n\r\nHowever\r\nThe auditing policy is set by the separate resource azurerm_mssql_server_extended_auditing_policy\r\n\r\n```\r\nresource \"azurerm_mssql_server_extended_auditing_policy\" \"server\" {\r\n  server_id                                                     = azurerm_mssql_server.server.id\r\n  log_monitoring_enabled                            = true\r\n  storage_endpoint                                       = azurerm_storage_account.server.primary_blob_endpoint\r\n  storage_account_access_key                       = azurerm_storage_account.server.primary_access_key\r\n  storage_account_access_key_is_secondary = true\r\n  retention_in_days                                        = var.log_rention_policy_days\r\n}\r\n```\r\n\r\n\r\n\r\n\n", "before_files": [{"content": "from checkov.common.models.enums import CheckCategories\nfrom checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\nfrom checkov.common.models.consts import ANY_VALUE\n\n\nclass SQLServerAuditingEnabled(BaseResourceValueCheck):\n    def __init__(self):\n        name = \"Ensure that 'Auditing' is set to 'On' for SQL servers\"\n        id = \"CKV_AZURE_23\"\n        supported_resources = ['azurerm_sql_server', 'azurerm_mssql_server']\n        categories = [CheckCategories.LOGGING]\n        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)\n\n    def get_inspected_key(self):\n        return 'extended_auditing_policy'\n\n    def get_expected_value(self):\n        return ANY_VALUE\n\n\ncheck = SQLServerAuditingEnabled()\n", "path": "checkov/terraform/checks/resource/azure/SQLServerAuditingEnabled.py"}]}