When I try to import a vmdk
file to GCP with gcloud compute images import
command, I get
"googleapi: Error 400: Invalid value for field 'resource.networkInterfaces[0]': ''.
Subnetwork should be specified for custom subnetmode network".
The subnet mode in default network is set to "CUSTOM". that's why I am getting that msg.
Is there a way to specify network when I import the image? or specify the subnet information?
Suggestion:
This workaround worked for me, you can do it while this issue is still not solved:
Note: Deleting the temp project will delete the imported image, but not the created instance.