terraform import existing resources - not quite with 1.5.x with generated output
Terraform import can be quite interesting thing to do. So let's start with us trying to import a storage account. So we will start off using hcl import statement to import this. provider "azurerm" { features {} } resource "azurerm_storage_account" "imported_storage" { name = " saforimort " resource_group_name = " mytest-kv-rg " location = " australiaeast " account_tier = " Standard " account_replication_type = " LRS " } import { to = azurerm_storage_account . imported_storage id = " /subscriptions/your-subscription-id/resourceGroups/ mytest-kv-rg/providers/Microsoft.Storage/storageAccounts/saforimort " } As you can see here, we are trying to import to "azurerm_storage_account" "imported_storage" . and we just ne...