Ensure that the Compute Engine API is enabled for your Google Cloud project.
In the Google Cloud Console, go to Compute Engine > VM Instances.
Click Create Instance to set up a new virtual machine.
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
.
Series: Choose the machine series, such as E2
.
Machine Type: Select the type, e.g., e2-micro
for a basic setup.
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.
Keep the boot disk at default settings unless specific configurations are required.
Service Account: Use the Compute Engine default Service Account
.
Allow HTTP Traffic: Enable this option if HTTP access is needed.
Leave advanced options as default. These settings can be explored further if needed for specific use cases.
Click Create to launch your VM instance with the selected configurations.