I have an existing resource group on Azure with a VM running on it and have been playing around with Terraform to try and import the resource to my state file.
I ha
When I copy your CLI, I get the same result with you.
Between azurerm_resource_group.MyResourceGroup and /subscriptions/MySubscriptionNumber/resourceGroups/MyResourceGroup, it needs a space.
The correct format is below:
terraform import azurerm_resource_group.MyResourceGroup /subscriptions/MySubscriptionNumber/resourceGroups/MyResourceGroup
More information about this please refer to this link.