jmlp1 / JMA-AZURE

0 stars 0 forks source link

Stuck in Apply #4

Closed jmlp1 closed 1 month ago

jmlp1 commented 1 month ago

│ with data.azurerm_key_vault_secret.ssh_private_key, │ on data.tf line 6, in data "azurerm_key_vault_secret" "ssh_private_key": │ 6: data "azurerm_key_vault_secret" "ssh_private_key" {

│ Error: making Read request on Azure KeyVault Secret ssh-public-key: keyvault.BaseClient#GetSecret: Failure responding to request: StatusCode=403

|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

jmlp1 commented 1 month ago

Issue: Admin is getting "Azure Keyvault: The operation is not allowed by RBAC" while trying to add secret to KeyVault, even though you are subscription owner.

Solution: Admin must have Key Vault administrator role while using RBAC. Once assigned you were able to add secret in KeyVault.