How to Sync Terraform State with Existing Azure Infrastructure Using the Terraform Import Command

A detailed guide with two real-life examples.

David Olivas
CodeX
Published in
4 min readApr 15, 2021

--

Photo by Shawn Ang on Unsplash

If you are reading this post, you probably are in a situation where you have to use Terraform to manage your cloud infrastructure. But there are existing resources, not created using Terraform, that need to be managed by it.

--

--

David Olivas
CodeX
Writer for

DevOps Engineer in Berlin. Cloud Enthusiast. Certified on AWS and Azure… Taking a break, will post again at the end of 2023.