I needed to convert this code to 12 first. Then I got permissions errors using my service principle account so I added Application Read and Write all applications, Read and write all users’ full profile. Now I am down to two errors:
azurerm_key_vault_certificate.client: Creating…
azurerm_key_vault_certificate.cluster: Creating…
Error: keyvault.BaseClient#CreateCertificate: 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=APRIVATENUMBER;oid=919444dd-4e81-4a64-baee-c1f918155614;numgroups=0;iss=https://sts.windows.net/7556c224-7d5d-4ed3-aa32-1e7bf7db3a65/\r\nVault: tfq-demo-tfquick-sbx-kv;location=westus2” InnerError={“code”:“AccessDenied”}
on keyvault.tf line 62, in resource “azurerm_key_vault_certificate” “cluster”:
62: resource “azurerm_key_vault_certificate” “cluster” {
Error: keyvault.BaseClient#CreateCertificate: 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= APRIVATENUMBER;oid=919444dd-4e81-4a64-baee-c1f918155614;numgroups=0;iss=https://sts.windows.net/7556c224-7d5d-4ed3-aa32-1e7bf7db3a65/\r\nVault: tfq-demo-tfquick-sbx-kv;location=westus2" InnerError={“code”:“AccessDenied”}
on keyvault.tf line 120, in resource “azurerm_key_vault_certificate” “client”:
120: resource “azurerm_key_vault_certificate” “client” {