I have used Terraform extension in Azure devops pipeline and using the destroy command.
I have stored the tfstate in backend azure storage and pointed the same tfstate for apply and destroy. The destroy command executed and successfuly. but the message is 0 destroyed and the resource and not removed.
what could be reason and what am i missing
1 Like
Iām also facing the same issue
I had to specify backend to make this work, not sure if there is another way as well.
terraform {
backend "azurerm" {
resource_group_name = "rg-name"
storage_account_name = "strgacct"
container_name = "tstate"
key = "xxx=="
}