Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform failed durring init/plan #1

Open
bamb00 opened this issue Mar 2, 2020 · 1 comment
Open

Terraform failed durring init/plan #1

bamb00 opened this issue Mar 2, 2020 · 1 comment

Comments

@bamb00
Copy link

bamb00 commented Mar 2, 2020

Followed the guidance from the article, https://medium.com/@nicolas.yuen/deploying-aks-with-terraform-on-azure-devops-65c7ef95d737

I'm using azurerm provider to 1.44.0.

##[error]Terraform command 'plan' failed with exit code '1'.: Error making Read request on Azure KeyVault Secret LinuxSSHPubKey: keyvault.BaseClient#GetSecret: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="Forbidden" Message="Access denied. Caller was not found on any access policy.\r\nCaller: appid=;oid=be9ab407-1ab1-4282-bb69-0182174b9912;numgroups=0;iss=https://sts.windows.net/***/\r\nVault: sandboxitycckeyvault;location=westeurope" InnerError={"code":"AccessDenied"} | Error making Read request on Azure KeyVault Secret spn-id: keyvault.BaseClient#GetSecret: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="Forbidden" Message="Access denied. Caller was not found on any access policy.\r\nCaller: appid=;oid=be9ab407-1ab1-4282-bb69-0182174b9912;numgroups=0;iss=

Any ideas?

@bamb00 bamb00 changed the title Terraform failed durring init Terraform failed durring init/plan Mar 3, 2020
@sbugalski
Copy link

@bamb00 looks like KeyVault Access Policy for service principal or your user is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants