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
Augusta Precious Metals Gold IRA Review
FIFO vs LIFO: A Guide to Inventory Cost Flow  | Pallite Group
Mickey Moniak Walk Up Song
Fort Morgan Hometown Takeover Map
Team 1 Elite Club Invite
Mohawkind Docagent
Erskine Plus Portal
Washington Poe en Tilly Bradshaw 1 - Brandoffer, M.W. Craven | 9789024594917 | Boeken | bol
Premier Reward Token Rs3
Erskine Plus Portal
Sivir Urf Runes
Truth Of God Schedule 2023
Driving Directions To Bed Bath & Beyond
Satisfactory: How to Make Efficient Factories (Tips, Tricks, & Strategies)
Vegito Clothes Xenoverse 2
Pearson Correlation Coefficient
Atlases, Cartography, Asia (Collection Dr. Dupuis), Arch…
6 Most Trusted Pheromone perfumes of 2024 for Winning Over Women
Fleet Farm Brainerd Mn Hours
Roanoke Skipthegames Com
Usa Massage Reviews
Pokemon Inflamed Red Cheats
4.231 Rounded To The Nearest Hundred
Bend Missed Connections
Mawal Gameroom Download
Ezstub Cross Country
Chadrad Swap Shop
Unm Hsc Zoom
Bozjan Platinum Coins
Song That Goes Yeah Yeah Yeah Yeah Sounds Like Mgmt
A Man Called Otto Showtimes Near Carolina Mall Cinema
Chilangos Hillsborough Nj
1v1.LOL Game [Unblocked] | Play Online
Craigslist Ludington Michigan
Columbia Ms Buy Sell Trade
Easy Pigs in a Blanket Recipe - Emmandi's Kitchen
Dogs Craiglist
Weather Underground Corvallis
Mugshots Journal Star
No Boundaries Pants For Men
5A Division 1 Playoff Bracket
Honkai Star Rail Aha Stuffed Toy
Interminable Rooms
My Gsu Portal
Blippi Park Carlsbad
Grace Family Church Land O Lakes
Smoke From Street Outlaws Net Worth
ats: MODIFIED PETERBILT 389 [1.31.X] v update auf 1.48 Trucks Mod für American Truck Simulator
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.