{"id":6549,"date":"2021-03-11T07:09:22","date_gmt":"2021-03-11T07:09:22","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=6549"},"modified":"2024-03-20T10:32:10","modified_gmt":"2024-03-20T10:32:10","slug":"creating-an-instance-using-gcloud","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/","title":{"rendered":"Creating an Instance using cloud shell"},"content":{"rendered":"\r\n<h2>Creating an Instance using cloud shell<\/h2>\r\n<p>Creating an instance using Cloud Shell in Google Cloud Platform (GCP) provides a convenient and efficient way to deploy virtual machines (VMs) directly from the command line interface within the GCP environment. Cloud Shell offers a browser-based shell experience with access to various tools and resources, eliminating the need for local installations or configurations.<\/p>\r\n<p>To create an instance using Cloud Shell, users can use the gcloud command-line tool, which is pre-installed and authenticated within the Cloud Shell environment. By running the appropriate gcloud commands, users can specify the instance configuration parameters, such as machine type, boot disk, network settings, and metadata.<\/p>\r\n<p><strong>Prerequisites<\/strong><\/p>\r\n\r\n\r\n\r\n<p>Hardware : <a href=\"https:\/\/www.prwatech.com\/course\/gcptraining\" target=\"_blank\" rel=\"noreferrer noopener\" data-type=\"URL\" data-id=\"https:\/\/www.prwatech.com\/course\/gcptraining\">GCP<\/a><\/p>\r\n\r\n\r\n\r\n<p>Google Account<\/p>\r\n\r\n\r\n\r\n<p>Another method to create <a href=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/creating-an-instance-using-developers-console\/\" target=\"_blank\" rel=\"noreferrer noopener\" data-type=\"URL\" data-id=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/creating-an-instance-using-developers-console\/\">Instance<\/a> is by using the GCP cloud shell.<\/p>\r\n\r\n\r\n\r\n<p>Open Cloud Console.<\/p>\r\n\r\n\r\n\r\n<p>Click on Activate Cloud Shell.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6550\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/7-3.jpg\" alt=\"\" width=\"454\" height=\"263\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/7-3.jpg 631w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/7-3-300x174.jpg 300w\" sizes=\"auto, (max-width: 454px) 100vw, 454px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>Click on Continue.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6551\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/8-1.jpg\" alt=\"\" width=\"612\" height=\"227\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/8-1.jpg 882w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/8-1-300x111.jpg 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/8-1-768x285.jpg 768w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>Copy the below code into the cloud shell.<\/p>\r\n\r\n\r\n\r\n<p>$ gcloud compute instances create &lt;machine_name&gt; &#8211;boot-disk-size=&lt;disk_size_in_GB&gt; &#8211;machine-type=&lt;machine_type&gt;<\/p>\r\n\r\n\r\n\r\n<p>Specify the \u201cMachine name\u201d, \u201dsize\u201d, \u201ctype\u201d . Zone will be selected automatically. Press \u201cy\u201d if you are okay with the selected zone. If not press \u201cn\u201d and choose the zone accordingly.<\/p>\r\n\r\n\r\n\r\n<p>NB: Machine name should not contain any capital letters or any symbols except hyphen.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6552\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/21-1024x129.jpg\" alt=\"\" width=\"1200\" height=\"151\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/21-1024x129.jpg 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/21-300x38.jpg 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/21-768x96.jpg 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/21-1200x151.jpg 1200w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/21.jpg 1401w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>After creation press refresh button. It will show the <a href=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/creating-an-instance-using-developers-console\/\" target=\"_blank\" rel=\"noreferrer noopener\" data-type=\"URL\" data-id=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/creating-an-instance-using-developers-console\/\">Instance<\/a> that we created.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6553\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/22-1024x320.jpg\" alt=\"\" width=\"797\" height=\"249\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/22-1024x320.jpg 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/22-300x94.jpg 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/22-768x240.jpg 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/22.jpg 1189w\" sizes=\"auto, (max-width: 797px) 100vw, 797px\" \/><\/figure>\r\n<\/div>\r\n<p>Creating an Instance using cloud shell<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Creating an Instance using cloud shell Creating an instance using Cloud Shell in Google Cloud Platform (GCP) provides a convenient and efficient way to deploy virtual machines (VMs) directly from the command line interface within the GCP environment. Cloud Shell offers a browser-based shell experience with access to various tools and resources, eliminating the need [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,1629],"tags":[614,615,605,699,700,711,683,684,685,611,693],"class_list":["post-6549","post","type-post","status-publish","format-standard","hentry","category-google-cloud-platform","category-instance","tag-cloud-shell","tag-creation-of-instance","tag-gcp","tag-gcp-certification","tag-gcp-cloud-console","tag-gcp-instance","tag-google-cloud-certification","tag-google-cloud-console","tag-google-cloud-courses","tag-google-cloud-platform","tag-google-cloud-shell"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Creating an Instance using cloud shell - Prwatech<\/title>\n<meta name=\"description\" content=\"Master Creating an Instance Using Cloud Shell - Dive deep with our expert instructors and comprehensive curriculum.\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating an Instance using cloud shell - Prwatech\" \/>\n<meta property=\"og:description\" content=\"Master Creating an Instance Using Cloud Shell - Dive deep with our expert instructors and comprehensive curriculum.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/\" \/>\n<meta property=\"og:site_name\" content=\"Prwatech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prwatech.in\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-11T07:09:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-20T10:32:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/7-3.jpg\" \/>\n<meta name=\"author\" content=\"Prwatech\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:site\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prwatech\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/\",\"url\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/\",\"name\":\"Creating an Instance using cloud shell - Prwatech\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/7-3.jpg\",\"datePublished\":\"2021-03-11T07:09:22+00:00\",\"dateModified\":\"2024-03-20T10:32:10+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"Master Creating an Instance Using Cloud Shell - Dive deep with our expert instructors and comprehensive curriculum.\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/7-3.jpg\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/7-3.jpg\",\"width\":631,\"height\":366},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating an Instance using cloud shell\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/prwatech.in\/blog\/#website\",\"url\":\"https:\/\/prwatech.in\/blog\/\",\"name\":\"Prwatech\",\"description\":\"Share Ideas, Start Something Good.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/prwatech.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\",\"name\":\"Prwatech\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"caption\":\"Prwatech\"},\"url\":\"https:\/\/prwatech.in\/blog\/author\/prwatech123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating an Instance using cloud shell - Prwatech","description":"Master Creating an Instance Using Cloud Shell - Dive deep with our expert instructors and comprehensive curriculum.","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Creating an Instance using cloud shell - Prwatech","og_description":"Master Creating an Instance Using Cloud Shell - Dive deep with our expert instructors and comprehensive curriculum.","og_url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2021-03-11T07:09:22+00:00","article_modified_time":"2024-03-20T10:32:10+00:00","og_image":[{"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/7-3.jpg","type":"","width":"","height":""}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/","url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/","name":"Creating an Instance using cloud shell - Prwatech","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/7-3.jpg","datePublished":"2021-03-11T07:09:22+00:00","dateModified":"2024-03-20T10:32:10+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"Master Creating an Instance Using Cloud Shell - Dive deep with our expert instructors and comprehensive curriculum.","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/7-3.jpg","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/7-3.jpg","width":631,"height":366},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/creating-an-instance-using-gcloud\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Creating an Instance using cloud shell"}]},{"@type":"WebSite","@id":"https:\/\/prwatech.in\/blog\/#website","url":"https:\/\/prwatech.in\/blog\/","name":"Prwatech","description":"Share Ideas, Start Something Good.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/prwatech.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3","name":"Prwatech","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","caption":"Prwatech"},"url":"https:\/\/prwatech.in\/blog\/author\/prwatech123\/"}]}},"_links":{"self":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/6549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/comments?post=6549"}],"version-history":[{"count":12,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/6549\/revisions"}],"predecessor-version":[{"id":11037,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/6549\/revisions\/11037"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=6549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=6549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=6549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}