AZURERM - Error with KEYVAULT Creation while creating ML Workspace

I am getting below error, while creating Keyvault for the Machine Learning Workspace with Terraform.

Error: retrieving contact for KeyVault: keyvault.BaseClient#GetCertificateContacts: Failure responding to request: StatusCode=401 – Original Error: autorest/azure: Service returned an error. Status=401 Code=“Unauthorized” Message=“AKV10032: Invalid issuer. Expected one of,,, found

│ with azurerm_key_vault.pi_kv,
│ on line 13, in resource “azurerm_key_vault” “pi_kv”:
│ 13: resource “azurerm_key_vault” “pi_kv” {

referring below MS Article to create public ML Workspace -

My service principal have Owner permission on the subscription.