There doesn't appear to be an option to select a reserved & available Internal IP for VMs created from Marketplace images - is this intentional? The dialog option does not show up; I can select an External IP, but not an Internal one despite being in the correct Region:
I also can't add a Network Interface (as the limit is 1) to see if the option appears there.
TIA!
Hi @kibbles,
Welcome to Google Cloud Community!
Here’s how to reserve static internal IP addresses which allows you to guarantee a consistent IP address for your resources. This means that even if you delete and recreate a resource, it will retain its original IP. Please note that there is a limitation on reserving Internal IP address, for more information check here the documentation.
Most likely the workaround involves completing the VM creation with the available options in the GCP interface and then adjusting the network configuration afterwards:
Optional, modify existing instance using cli command:
gcloud compute instances network-interfaces create [INSTANCE_NAME] --network-interface "network=projects/[PROJECT_ID]/global/networks/[VPC_NAME],subnet=projects/[PROJECT_ID]/regions/[REGION]/subnetworks/[SUBNET_NAME],no-address=true" --zone=[ZONE_NAME] --stack-type=IPV4_ONLY --internal-ip=[RESERVED_IP_ADDRESS]
Additionally, to help you create a machine image for your product to run on Compute Engine this is a recommended guide.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.