When creating a key vault in Azure using terraform,  you may encounter this error
Error: retrieving `contact` for KeyVault: keyvault.BaseClient#GetCertificateContacts

data "azurerm_client_config" "current" {}

resource “azurerm_key_vault” “my_key_vault” {  name                        = “sample-keyvault-av”

  location                    = azurerm_resource_group.rg_des.location
resource_group_name         = azurerm_resource_group.rg_des.name
tenant_id                   = data.azurerm_client_config.current.tenant_id
sku_name                    = “standard”
#sku_name                    = “premium”
enabled_for_disk_encryption = true
#soft_delete_enabled         = true
purge_protection_enabled    = true

}

}

The issue has been fixed in version 3.3.0 of the azure provider

terraform {
  required_providers {
    azurerm = {
      source  = “hashicorp/azurerm”
      version = “=3.3.0”
    }
  }
}




Need an experienced Cloud Networking or a Cloud Data Protection Expert?  Anuj has successfully delivered over a dozen deployments on each of the public clouds (AWS/GCP/Azure) including several DevSecOps engagements. Set up a time with Anuj Varma.