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 https://sts.windows.net/7d059ad3-dc85-4d41-8ca8-228a7c8b11bb/, https://sts.windows.net/f8cdef31-a31e-4b4a-93e4-5f571e91255a/, https://sts.windows.net/e2d54eb5-3869-4f70-8578-dee5fc7331f4/, found https://sts.windows.net/19862f65-b5dd-4d58-9621-26f787deaea8/.”
│
│ with azurerm_key_vault.pi_kv,
│ on ml_workspace.tf 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.