Error Retrieving contact for KeyVault

executing terraform plan.
Using Azure KeyVault.
Using azurerm 3.94.0

Error: retrieving contact for KeyVault: keyvault.BaseClient#GetCertificateContacts: Failure sending request: StatusCode=0 -- Original Error: context deadline exceeded

I had the same issue and at the end the problem is that the agent/runner that I was using didn’t have access to the vnet of the key vault. After I did a peering between my runner vnet and the vnet of the key vault it worked.