How to launch one instance on GCP Cloud from command line

+2 votes

Hi Guys,

I have configured GCP Cloud SDK software in the Windows system. Now I want to launch one instance. How can I do that?

Aug 24, 2020 in GCP by akhtar
• 38,230 points
730 views

1 answer to this question.

0 votes

Hi@akhtar,

You can compute service in GCP to launch one instance from the command line. When you will launch one instance, you can provide the network name and other parameters. Otherwise, it will take the default service as shown below.

$ gcloud compute instances create instance-name 
Created [https://www.googleapis.com/compute/v1/projects/nadeem-gcp-123456/zones/australia-southeast1-b/instances/instance-name].
NAME           ZONE                    MACHINE_TYPE   PREEMPTIBLE  INTERNAL_IP  EXTERNAL_IP   STATUS
instance-name  australia-southeast1-b  n1-standard-1               10.152.0.3   35.201.6.115  RUNNING   
answered Aug 24, 2020 by MD
• 95,440 points

Related Questions In GCP

+2 votes
1 answer

Create a firewall rule on GCP Cloud from command line.

Hi@akhtar, You need to configure GCP Cloud SDK ...READ MORE

answered Aug 24, 2020 in GCP by MD
• 95,440 points
1,989 views
0 votes
1 answer

How to authenticate with the correct account in GCP from Command Line?

Hi@akhtar, You can check your accounts from the ...READ MORE

answered Sep 24, 2020 in GCP by MD
• 95,440 points
422 views
0 votes
1 answer

How to delete GCP project from command line?

Hi@akhtar, You can create a project from your ...READ MORE

answered Sep 24, 2020 in GCP by MD
• 95,440 points
1,262 views
0 votes
1 answer

Google Cloud Platform: Logging in to GCP from command line

You have a couple of options here ...READ MORE

answered Apr 6, 2022 in GCP by Korak
• 5,820 points
1,014 views
+2 votes
1 answer

How to create a project in GCP Cloud?

Hi@akhtar, To deploy your app on App Engine, ...READ MORE

answered Aug 23, 2020 in GCP by MD
• 95,440 points
533 views
+2 votes
1 answer

How to create a project from GCP Cloud Shell?

Hi@akhtar, GCP shell has a command named gcloud. ...READ MORE

answered Aug 23, 2020 in GCP by MD
• 95,440 points
1,694 views
+2 votes
1 answer

How to enable new services to a project in GCP Cloud?

Hi@akhtar, You can enable new services to your ...READ MORE

answered Aug 23, 2020 in GCP by MD
• 95,440 points
834 views
+2 votes
1 answer

How to do SSH in GCP instance from command line?

Hi@akhtar, You can do SSH to GCP instance ...READ MORE

answered Aug 24, 2020 in GCP by MD
• 95,440 points
860 views
+2 votes
1 answer

How to create a VPC on GCP from command line?

Hi@akhtar, To create a personal network, you need ...READ MORE

answered Aug 24, 2020 in GCP by MD
• 95,440 points
1,235 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP