This command will explain how to create virtual machines in google cloud using gcloud commands
gcloud auth login --no-launch-browser
gcloud compute instances create instance-1 --machine-type=e2-micro --zone=us-central1-b --preemptible --no-restart-on-failure --maintenance-policy=terminate --image-family=rhel-8 --image-project=rhel-cloud
gcloud compute instances list
https://cloud.google.com/ai-platform/deep-learning-vm/docs/quickstart-cli
gcloud compute instances describe instance-1
gcloud compute ssh instance-1
Stop Instance: -
gcloud compute instances stop instance-1
Start instance :-
gcloud compute instances start instance-1
Delete instance :-
gcloud compute instances delete instance-1