I'm trying to import an existing resources into the terraform state. I used the following:
terraform import azurerm_resource_group.main_rg /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-cm-main
The resource group exist in the subscription with the name and ID.
but when I run the command, I get this error:
Error: Cannot import non-existent remote object
do I need to do anything special in my script before I ran this command?