I have 2 terraform scripts to provision different resources in the same resource group in azure (using latest provider version 1.35, but got the same behavior with 1.28).
lets say first.tf creates resource a in resource group rg
and second.tf creates resource b in same resource group rg
resource a and b are different types.
resource a is not defined in second.tf and for whatever reason I cant define it.
I apply first.tf then I apply second.tf
when applying second.tf, it removes the resource a that first.tf created !!!
I want terraform to append to the resource group and not delete existing resources.
I have tried importing the resource group but this has the same result.
Is this expected behavior? How do I make terraform not delete existing resources?