Terraform on AzureDevops gives error: Endpoint auth data not present

I have a simple Azure DevOps pipeline setup using Terraform 0.14.7 that uses a Service Connection with a Certificate based SPN to connect to Azure. The Service Connection is verified and works in other pipelines.

I get the following error on the Terraform Plan when I run the pipeline.

Endpoint auth data not present: 6c9ef48d-2592-49cd-ace3-553f4e51e57c

More details: https://stackoverflow.com/questions/66631453/terraform-on-azuredevops-gives-error-endpoint-auth-data-not-present?noredirect=1#comment117818011_66631453