Connect a Google Cloud project
Manage the Compute Engine VM instances in a Google Cloud project here, next to your other servers: see them in one list, start, stop and reboot them, and create new ones. A service account key belongs to one project, so connect each project as its own cloud account.
1. Create a service account and its key
-
Sign in to the Google Cloud console and select the project.
-
Make sure the Compute Engine API is enabled: APIs & Services › Library › Compute Engine API › Enable.
-
Open IAM & Admin › Service Accounts and select Create service account. Name it, for example, "cloud-portal".
-
Give it these roles:
- Compute Instance Admin (v1), to list, start, stop, create and delete instances;
- Service Account User, so the instances it creates can run.
To only list instances, Compute Viewer is enough.
-
Open the new service account, then Keys › Add key › Create new key, choose JSON, and select Create. A
.jsonfile downloads. Google does not keep a copy, so store it safely.
2. Connect it here
- Go to Cloud accounts › Connect account and choose Google Cloud.
- Enter an Account name, for example "Google – production".
- Open the downloaded JSON file in a text editor, copy all of it, and paste it into Service account key (JSON).
- Select Test and connect.
The project's instances appear on the Instances page within a minute, and the list refreshes every few minutes. In the portal, each instance is shown with its zone, for example asia-south1-a (Mumbai).
What you can do
| Feature | Notes |
|---|---|
| Start, Shut down, Power off | Google has no separate hard power-off: both ask the operating system to shut down and turn the instance off if it hasn't within about 90 seconds. |
| Reboot | A reset, like pressing a server's reset button. Save your work first. |
| Details | Machine type, zone, creation date, and whether it is a Spot VM or protected from deletion. |
| Create | Create instances with E2 or N2 machine types, Ubuntu 24.04, Ubuntu 22.04 or Debian 12, a 20 GB (or 50 GB) balanced disk and an external IP address on the default network. Google shows no prices through its API, so none are shown here: see Google's pricing page. |
New instances get your SSH keys and root password on their first boot, which takes a minute or two after Running appears. Your project's default network must exist and allow SSH (port 22). It does unless someone has changed it.
Usage graphs, snapshots, the console and rescue mode are not available for Google Cloud yet: use the Google Cloud console.
If it fails
| Message | What to do |
|---|---|
| This is not a service account key | Paste the whole JSON file, from the first { to the last }. |
| Google refused the service account key | The key or service account was deleted or disabled. Create a new key. |
| Enable the Compute Engine API in project … | Enable it under APIs & Services › Library, wait a few minutes, and try again. |
| The service account may not do this | Give the service account the roles listed in step 1. |
| An instance with this name already exists in that zone | Choose another name. |
Instance names at Google may only use lowercase letters, digits and hyphens. Other characters in the name you choose are replaced with hyphens.
The key is encrypted when stored and never shown again. Actions are recorded in the audit log.