Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in GCP by (29.3k points)

I was trying to deploy a vm-instance inside the GCP, and need to execute some commands inside it. Kindly let us know if there is any possibility to add as a script in GCP.

1 Answer

0 votes
by (50.2k points)
edited by

There are two ways to run these pre-configured scripts:

Using with Boot disc

Create a VM normally and capture the image after adding all configurations, Then you can use the image for launching multiple instances. Which will be loaded with your script.

Using Startup file uploaded in Google Drive

Here, you need to upload the startup file and access that file and read the content of it. For implementation information, click here.

For additional information, refer to this GCP training.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Nov 21, 2020 in GCP by chandra (29.3k points)
0 votes
1 answer
asked Nov 21, 2020 in GCP by chandra (29.3k points)
0 votes
1 answer
asked Nov 21, 2020 in GCP by chandra (29.3k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...