Google Cloud Tutorial for Beginners

Google Cloud Tutorial for Beginners

Introduction

Google Cloud Platform — GCP — is the third of the big three clouds, after AWS and Microsoft Azure, and the one most beginners skip. That is a mistake: GCP has the cleanest free tier of the three, the simplest console for a first project, and a growing share of the jobs our Cloud Engineer Career Guide 2026 tracks. If you already know AWS, this tutorial is the fastest way to add a second cloud; if you know neither, it is a gentler first cloud than AWS.

In the next hour you will set up a free GCP account, launch a virtual machine, store a file in Cloud Storage, and deploy a small application on Cloud Run — the four building blocks almost every GCP workload is made of. Everything here fits inside the free trial and the Always Free tier, so it costs nothing if you follow the clean-up step.

Cost note (28 Nov 2026): the Google Cloud free trial gives new customers $300 of credit for 90 days. The Always Free tier is separate and has no end date. Both are described in detail below — read the limits before you create anything, because the free VM is only free in three specific regions.

Setting Up Your Free Account

Go to console.cloud.google.com and sign in with a Google account. Click through to the free trial: Google asks for a card for identity verification — it places a temporary hold of $0–$1, which is not a charge — and the trial is only for new customers who have never been a paying Google Cloud, Maps or Firebase user and have never taken the trial before.

Signing up auto-creates a project called “My First Project” and a billing account called “My Billing Account”. A project is GCP’s container for everything: resources, permissions and billing are all scoped to it, and deleting the project at the end of this tutorial deletes everything inside it. That is the single most useful safety habit in GCP — one project per experiment, deleted when you are done.

The trial ends when you spend the $300 or when 90 days pass, whichever comes first. After that there is a 30-day grace period before resources are permanently deleted. One new restriction to know: if you sign up for the free trial on or after 16 November 2026, the $300 credit cannot be used for Gemini platform services (formerly Vertex AI) or the Gemini API in AI Studio. The services in this tutorial are unaffected.

What the Always Free Tier Actually Includes

The free trial is a time limit; the Always Free tier is a monthly allowance that never expires, as long as you stay inside its limits. The limits do not roll over month to month, and Google can change them with 30 days’ notice. The four that matter for this tutorial:

ServiceAlways Free allowance (per month)
Compute Engine1 e2-micro VM in us-west1, us-central1 or us-east1; 30 GB-months standard disk; 1 GB egress from North America
Cloud Storage5 GB-months regional storage (US regions); 5,000 Class A operations; 50,000 Class B operations; 100 GB egress from North America
Cloud Run2 million requests; 360,000 GB-seconds of memory; 180,000 vCPU-seconds; 1 GB egress from North America
Cloud Run functions2 million invocations; 400,000 GB-seconds; 200,000 GHz-seconds; 5 GB egress

Two things catch beginners out. First, the free VM is one e2-micro per month, only in us-west1 (Oregon), us-central1 (Iowa) or us-east1 (South Carolina) — launch it anywhere else and it is billed. The older f1-micro is no longer the free machine type; do not use it. Second, a billing account is required even for Always Free usage. Set a $0 budget alert in the console’s Budgets page on day one — it costs nothing and is the difference between a free experiment and a surprise bill.

Cloud Shell — Your Free Terminal in the Browser

Before creating anything, open Cloud Shell: the terminal icon in the top-right of the console. Cloud Shell is a free, browser-based terminal with the Google Cloud CLI (gcloud) pre-installed and authenticated, plus 5 GB of persistent disk mounted as your home directory. It is the fastest way to run the commands in this tutorial — no local installation, no credential files to manage.

Know its limits: the default weekly quota is 50 hours, sessions are capped at 12 hours, non-interactive sessions end after 40 minutes, and your home directory is deleted after 120 days of inactivity. Do not treat Cloud Shell as a permanent server — for anything that must keep running, use a Compute Engine VM, which is the next step.

Launch Your First Virtual Machine

Compute Engine is GCP’s virtual machine service — the equivalent of AWS EC2, which our AWS Tutorial for Beginners covers on the other cloud. Create a VM from Cloud Shell:

gcloud compute instances create my-first-vm \
  --zone=us-central1-a \
  --machine-type=e2-micro \
  --image-family=debian-12 \
  --image-project=debian-cloud

The zone matters: us-central1-a is in Iowa, one of the three regions where the e2-micro is free. The command takes a minute or two. Then connect to it:

gcloud compute ssh my-first-vm --zone=us-central1-a

You are now logged into a Debian Linux server in Google’s cloud. Install a web server on it:

sudo apt update && sudo apt install -y nginx
curl localhost

curl localhost should return nginx’s welcome page HTML. To see it in a browser you need a firewall rule allowing HTTP traffic — run gcloud compute firewall-rules create allow-http –allow=tcp:80 –target-tags=http-server, add the tag to the VM, and open its external IP. That step is the most common “it works locally but not in the browser” moment in GCP: traffic is blocked by default, and you open exactly the ports you need.

Store a File in Cloud Storage

Cloud Storage is GCP’s object storage — the equivalent of AWS S3. Buckets have globally unique names, so pick something with your name or a random suffix in it:

gcloud storage buckets create gs://my-first-bucket-yourname-2026 \
  --location=us-central1

Upload a file and list the bucket:

echo "Hello from Google Cloud Storage" > hello.txt
gcloud storage cp hello.txt gs://my-first-bucket-yourname-2026
gcloud storage ls gs://my-first-bucket-yourname-2026

The 5 GB-months of Always Free regional storage covers this many times over. Two concepts to take away: objects are the files, buckets are the containers — there is no folder hierarchy, only object names that look like paths. Cloud Run, data pipelines and backups all build on this storage, so getting comfortable with gcloud storage now pays off later.

Deploy an Application on Cloud Run

Cloud Run is GCP’s fully managed container platform: you give it a container (or source code it can build into one), and it runs it, scales it to zero when idle, and gives you an HTTPS URL. It is the easiest way to put something real on the internet in GCP, and the Always Free allowance covers 2 million requests a month.

From Cloud Shell, create a tiny application and deploy it:

mkdir hello-run && cd hello-run
cat > main.py <<'EOF'
from flask import Flask
app = Flask(__name__)

@app.route("/")
def hello():
    return "Hello from Cloud Run!"
EOF
cat > requirements.txt <<'EOF'
Flask==3.1.0
gunicorn==23.0.0
EOF
gcloud run deploy hello \
  --source . \
  --region=us-central1 \
  --allow-unauthenticated

The first deploy takes a few minutes: GCP builds the container, pushes it, and returns a URL like https://hello-abc123-uc.a.run.app. Open it — you should see “Hello from Cloud Run!”. The –allow-unauthenticated flag makes it public; leave it off for anything private. When nobody visits, Cloud Run scales to zero and you pay nothing, which is why it is the default choice for side projects and small APIs.

Note the naming change that confuses everyone: what used to be called Cloud Functions is now Cloud Run functions (renamed in August 2024). Second-generation functions are Cloud Run functions; first-generation ones are Cloud Run functions (1st gen). If a tutorial or job description says “Cloud Functions”, it means Cloud Run functions — same product, new name.

Clean Up — Delete the Project

Free does not mean forget. When you are done, delete the whole project:

gcloud projects delete my-first-project-id

Deleting the project deletes the VM, the bucket, the Cloud Run service and the billing association in one step. It is the cleanest way to guarantee nothing keeps running. If you want to keep experimenting, delete the individual resources instead — the VM first, since a running VM is the only thing here that can quietly use up the free allowance.

What to Learn Next

You now have the four GCP primitives: a project, a VM, object storage and a managed container service. The natural next steps, in order:

  • Cloud IAM and service accounts. Everything in GCP is permissioned through IAM, and service accounts — not user accounts — are how applications authenticate.
  • Networking. VPCs, subnets, firewall rules and Cloud NAT. The firewall rule you created for nginx is the beginning of this.
  • BigQuery. The sandbox needs no credit card and gives you 10 GB of storage and 1 TB of queried data a month — the cheapest way to learn SQL on real data.
  • Certification. The Associate Cloud Engineer exam costs $125 and the Professional Cloud Architect exam costs $200 (two hours; renewal $100). Our AWS Certification Roadmap 2026 explains how the AWS and GCP paths compare — the same study habits apply: hands-on labs first, practice exams second.

FAQ

Is Google Cloud really free for beginners?

Yes, within limits: $300 of credit for 90 days, plus an Always Free tier with no end date — one e2-micro VM, 5 GB of storage, 2 million Cloud Run requests and more per month. Stay in the free regions, set a $0 budget alert, and delete your project when you are done.

Do I need a credit card for the free trial?

Yes, for identity verification. Google places a temporary $0–$1 hold, which is not a charge. You are not billed unless you upgrade to a paid account.

What is the difference between Compute Engine and Cloud Run?

Compute Engine gives you a virtual machine you manage yourself — operating system, patches, scaling. Cloud Run runs your container for you and scales to zero when idle. Use Compute Engine when you need full control; use Cloud Run when you want to deploy code and forget about servers.

Is Cloud Functions the same as Cloud Run functions?

Yes — Cloud Functions was renamed Cloud Run functions in August 2024. Second-generation functions are now Cloud Run functions, and first-generation ones are Cloud Run functions (1st gen).

Can I use GCP without the command line?

Yes. Everything in this tutorial can be done in the console at console.cloud.google.com. The command line is faster and worth learning, because it is also how automation and CI/CD pipelines talk to GCP — but it is not required to start.

Conclusion

Google Cloud rewards beginners more than any other major cloud: a $300 trial, a genuinely useful Always Free tier, and a console that stays out of your way. The four things you built — a project, a VM, a storage bucket and a Cloud Run service — are the foundation of almost everything else in GCP. Keep the project to keep experimenting, delete it if you are done, and set that $0 budget alert either way.

From here, the path splits by goal: IAM and networking if you want to build real systems, BigQuery if you want data skills, and the Associate Cloud Engineer exam ($125) if you want the credential. Whichever you pick, the habit is the same — build it yourself in the console, break it, fix it, and only then read the documentation to understand why.

Sources checked 28 Nov 2026: Google Cloud free-tier documentation (free trial $300/90 days; Always Free allowances for Compute Engine, Cloud Storage, Cloud Run, Cloud Run functions and BigQuery; Cloud Shell limits); Google Cloud console and resource-manager documentation (project creation); Cloud Run functions rename (Aug 2024); Google Cloud certification pages (Associate Cloud Engineer $125, Professional Cloud Architect $200). External references: Google Cloud Free Trial and Free Tier · Google Cloud documentation.

—

Scroll to Top