I am expecting destroy option should not show

I have resource group ( NextOpsRGT02 ) as below highlighted one in the Azure.


and it is there in state file also, Please see below screenshot.

and then why it is showing destroy option when I ran terraform plan option. Please suggest why it is happening and how to avoid destroy option. Thank you

Hi @sk8228402,

The message under the line you highlighted says that you don’t have a resource "azurerm_resource_group" "rg2" in your configuration, and so Terraform thinks you intend to destroy that existing object.

Did you remove that block from your configuration?