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,130 points
87 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
• 94,990 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
• 94,990 points
161 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
• 94,990 points
44 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
• 94,990 points
101 views
0 votes
1 answer
+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 22, 2020 in GCP by MD
• 94,990 points
69 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 22, 2020 in GCP by MD
• 94,990 points
89 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 22, 2020 in GCP by MD
• 94,990 points
109 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
• 94,990 points
121 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
• 94,990 points
126 views