I used terraform import to retrieve the statefile contents of some azure resources by writing
resource configuration block for the resource. After importing I appended the state file in azure storage and also added the resource configuration to our CI/CD pipeline.
Ideally after ‘terraform plan’ should show no change in infrastructure. But the CI/CD pipelines shows changes. But when i run terraform plan on my local machine it shows no changes to infra. Both CI/CD pipeline and my local point to the same backend file in azure storage.
below is the screenshot of both the plans.
Somehow the CI/CD pipeline is not able to recongnize the statefile or I’m missing out on some small detail. It will be helpful if someone can suggest something