Create a Virtual Machine Instance in Google Cloud

1. Enable Google Compute Engine API

Ensure that the Compute Engine API is enabled for your Google Cloud project.

2. Navigate to VM Instances

In the Google Cloud Console, go to Compute Engine > VM Instances.

3. Start VM Creation

Click Create Instance to set up a new virtual machine.

4. Configure Instance Details

Name: Set the VM instance name, e.g., sample-vm.
Labels: Add labels if desired, e.g., environment: test.
Region: Choose a region, such as us-central1.
Zone: Select a zone within the region, e.g., us-central1-a.

5. Machine Configuration

Series: Choose the machine series, such as E2.
Machine Type: Select the type, e.g., e2-micro for a basic setup.

6. Availability Policies

VM Provisioning Model: Use Standard unless a different provisioning model is needed.
Display Device: Check this box if a display device is required.
Confidential VM Service: Leave unchecked for the default setup.
Container: Leave this option unchecked unless deploying containerized applications.

7. Boot Disk

Keep the boot disk at default settings unless specific configurations are required.

8. Identity and API Access

Service Account: Use the Compute Engine default Service Account.

9. Firewall

Allow HTTP Traffic: Enable this option if HTTP access is needed.

10. Advanced Options

Leave advanced options as default. These settings can be explored further if needed for specific use cases.

11. Create the VM

Click Create to launch your VM instance with the selected configurations.

Connect to Linux VM Instance using SSH