Error on Terraform Import


I have an error when I use terraform import azurerm_resource_group.MyResourceGroup/ subscriptions/MySubscriptionNumber/resourceGroups/MyResourceGroup command saying that: parsing Resource ID “C:/Program Files/Git/subscriptions/xxx/resourceGroups/xxx” didn’t parse as either an Object ID (‘{keyVaultId}/objectId/{objId}’) or an Application ID (‘{keyVaultId}/objectId/{objId}/applicationId/{appId}’)

What could be the reason for that and how can I solve the issue?

I had the same error, it was related to the fact that I was using Git Bash as terminal. Didn’t manage to solve it in Git Bash but the same command in a cmd.exe terminal worked fine. Hope this helps anyone.