Skip to content

Azure Cognitive Services account is not configured with managed identity

Description

Configuring Azure Cognitive Services accounts with a managed identity enhances security by eliminating the need to store credentials in code or configuration files. It also provides seamless integration with other Azure services and simplifies the management of credentials.

Code Example

go
resource "azurerm_cognitive_account" "example" {
  ...
  identity {
+    type = "SystemAssigned"
  }
}

Remediation

Terraform

  • Resource: azurerm_cognitive_account
  • Arguments: identity.type

To fix this issue, ensure that your Azure Cognitive Services account is configured with a managed identity in your Terraform configuration.

Rule Details

FieldValue
IDIAC-0745
SeverityINFO
IaC Typearm
FrameworksTerraform, TerraformPlan, ARM, Bicep
Checkov IDCKV_AZURE_238

References