Manage VMs in Cloud Code for VS Code  |  Google Cloud (2024)

Stay organized with collections Save and categorize content based on your preferences.

With Cloud Code's Compute Engine integration, you canview the Compute Engine VMs running your applications, establishconnections to your VMs using SSH, view application logs, and upload files to aVM.

This document shows you how to access Compute Engine withCloud Code in your IDE and manage your VM instances.

View VMs

To view VMs in your Google Cloud project and the VM instance details inthe Google Cloud console, follow these steps:

  1. In your IDE, sign into Cloud Code if you haven't already, andselect your Google Cloud project.

  2. To view VM instances in your Google Cloud project, in the activity barof your IDE, click Manage VMs in Cloud Code for VS Code | Google Cloud (1) Cloud Code and then expand theCompute Engine explorer.

  3. To view the VM instance details in the Google Cloud console, right-click theVM instance and select Open in Cloud Console.

Connect to a VM

To connect to the VM instance in your IDE with Cloud Code using thebuilt-in IDE terminal and SSH, follow these steps:

  1. To connect to a VM instance, in the Compute Engine explorer, hold thepointer over the VM instance and clickterminal Open SSH or right-clickthe VM instance and select Open SSH.

    A terminal appears, displaying information about the remote instance.

  2. If the connection to the VM instance fails:

    • For Windows and Linux users, seeTroubleshooting SSH errorsfor common errors that you might run into when connecting to a VM using SSH,ways to resolve errors, and methods for diagnosing failed SSH connections.

    • For macOS users, after pressing any key to clear the error message in theterminal, an error message dialog appears. To viewinformation in the terminal about the issue and potential resolutions,click Troubleshoot. Or, to view theTroubleshooting SSH errorsdocumentation, click Learn more.

View application logs on a VM

To view the application logs of a VM instance, follow these steps:

  1. To view the application logs of a VM instance in Cloud Code,right-click the VM instance and select View Logs.

    The Logs Viewer window appears in your IDE, allowing you to filter by logtype, time, severity, and instance.

  2. To view logs in real time, turn on the Streaming toggle.

  3. To view the logging page for a particular VM instance in the Google Cloud console,click open_in_newOpen in browser.

Upload a file to a VM

To copy application files from your local IDE to your remote VM instance, followthese steps:

  1. To upload a file to a VM, in the Cloud Code Compute Engineexplorer, hold the pointer over the VM instance and clickcloud_uploadUpload File via SCP, or right-click the VM instance and select UploadFile via SCP.

  2. Navigate to the file that you want to upload and click Upload.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-09-10 UTC.

Manage VMs in Cloud Code for VS Code  |  Google Cloud (2024)
Top Articles
Print: Wallet, Matte | Walmart Photo Prints
Dot.: how can i remove security question
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Pearson Correlation Coefficient
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
Latest Posts
Article information

Author: Virgilio Hermann JD

Last Updated:

Views: 6217

Rating: 4 / 5 (41 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Virgilio Hermann JD

Birthday: 1997-12-21

Address: 6946 Schoen Cove, Sipesshire, MO 55944

Phone: +3763365785260

Job: Accounting Engineer

Hobby: Web surfing, Rafting, Dowsing, Stand-up comedy, Ghost hunting, Swimming, Amateur radio

Introduction: My name is Virgilio Hermann JD, I am a fine, gifted, beautiful, encouraging, kind, talented, zealous person who loves writing and wants to share my knowledge and understanding with you.