cloudeteer / terraform-azurerm-vm

☁️ Cloudeteer's Terraform AzureRM virtual machine module
https://www.cloudeteer.de
MIT License
6 stars 0 forks source link

Failed remote test becasue of existing resources #21

Closed rswrz closed 1 month ago

rswrz commented 1 month ago

This job failed because of an existing secret in the key fault. This should not happen.

tests/remote/main.tftest.hcl... in progress
  run "remote"... fail
╷
│ Error: A resource with the ID "https://kvtfmodtestprdeuw6nx.vault.azure.net/secrets/vm-tftest-dev-euw-01-azureadmin-password/04562c7cca8c440f98510c73e56965d1" already exists - to be managed via Terraform this resource needs to be imported into the State. Please see the resource documentation for "azurerm_key_vault_secret" for more information.
│ 
│   with module.tftest_01.azurerm_key_vault_secret.this["Password"],
│   on r-authentication.tf line 32, in resource "azurerm_key_vault_secret" "this":
│   32: resource "azurerm_key_vault_secret" "this" {
│ 
╵
╷
│ Error: A resource with the ID "https://kvtfmodtestprdeuw6nx.vault.azure.net/secrets/vm-tftest-dev-euw-02-azureadmin-ssh/8578b338a4f74a42b486f45ecdba06d2" already exists - to be managed via Terraform this resource needs to be imported into the State. Please see the resource documentation for "azurerm_key_vault_secret" for more information.
│ 
│   with module.tftest_02.azurerm_key_vault_secret.this["SSH"],
│   on r-authentication.tf line 32, in resource "azurerm_key_vault_secret" "this":
│   32: resource "azurerm_key_vault_secret" "this" {
│ 
╵
tests/remote/main.tftest.hcl... tearing down