Posts

Showing posts from September, 2019

Terraform Import with Storage account example

Image
In this blog, I will deal about Terraform Import and as an example, we will import configuration of  a storage account which is already provisioned in Azure portal. Import Terraform is able to import existing infrastructure.This allows you take resources you've created by some other means and bring it under Terraform management. This is a great way to slowly transition infrastructure to Terraform, or to be able to be confident that you can use Terraform in the future if it potentially doesn't support every feature you need today. Okay, lets assume you have storage account in azure portal and you want to write a terraform code file for this resource. Lets create a folder and copy latest terraform.exe  in the your local computer (F:\Terraformmain) and create a backend.tf.  Put below code in backend.tf  and save the file in F:\Terraformmain. terraform   {   backend  "azurerm"  {     resource_group_name...