I have several thousand resources to import from azure into remote state. Using powershell to get the resource parameters, I'm using the following line in a script to import the resource:
terraform import azurerm_resource_group.$($ResourceGroupName) "$($ResourceGroup.ResourceID)"
The output says "Import successful. The resources there were imported are shown above."
However, no resources are listed 'above', and 'terraform state list' turns up nothing.
I've used similar powershell sub-expressions in terraform without having issues, until now. Does anyone know why it's doing that for the import command? Thanks.