How to Create your first Virtual Machine in Google cloud platform (GCP)

How to Create your first Virtual Machine in Google cloud platform (GCP)

I'll show you how to create a basic virtual machine on the Google Cloud Platform (GCP) in this article. I will begin with a brief review of Google Cloud Platform, and then I'll teach you how to use Google Cloud Platform to build virtual machine instances. Let's get going.

Read this blog post or watch the video below to learn how to create a Virtual Machine in Google Cloud Platform.

Down Arrow

Overview of Google Cloud Platform

The Google Cloud Platform is a collection of physical and virtual assets, including computers, hard drives, and CPUs, that are housed in Google Cloud data centres. Each data centre is located in a worldwide region, which is comprised of zones. Within the same territory, each zone is segregated from the others.
This distribution gives us several benefits, such as data redundancy in the event of a zone failure, lower latency by placing resources closer to the client, and more control over resources and how they may be used to improve service and lower costs.

Because this is a cloud platform, you won't have to bother about purchasing and building hardware or data centres. You may use all of Google's hardware and software as services. These services in Google Cloud Platform give you access to the underlying hardware. When you begin working, you will find that your product is simply a mix of Google services and your code.

What is Virtual Machine and Google Compute Engine (GCE) ?

When you deploy your app, you need servers. In the cloud environment, you need virtual servers to deploy and run your app. Google Compute Engine (GCE) will provision and maintain the virtual machines.

Virtual machines on Google Computing Engine deliver on-demand, high-scale performance and value, allowing you to quickly deploy massive compute clusters on Google's infrastructure using Windows Server or Red Hat Enterprise Linux or any Operating system of your choice.

Google Compute Engine

Features of Google Compute Engine (GCE)

Steps to create Virtual Machine in Google Cloud Platform (GCP)

Step 1

Inside the Google Cloud console, search for virtual machine by typing "vm" and then choose VM Instances. In the next page, click on the "Create Instance" button.

Step 2

Now, we need to configure our virtual machine. Below are the basic configuration to start with

    • Name: Place to put a name to our virtual machine
    • Labels: It's a key/value pair to indicate different environments, services, teams and so on. Few examples -
      • environment: dev
      • app: service
      • bu: bank
    • Regions: This is the place to choose the region and zones where you want to deploy your application. To understand the concept of Regions and Zones, please read my previous blog post here
    • Machine configuration: This time we need to select the type of machine we need. GCP provides three different types of machine configuration based on the need. Pricing and discount will also change based on the machine type you choose.
      • General Purpose: This is mainly used for common workloads, optimized for cost and flexibility.
      • Compute Optimised: These are high-performance machine types used for compute-intensive workloads.
      • Memory Optimised: These are large-memory machine types used for memory-intensive workloads.
    • Boot disk: Here we will select the type of operating select we want for our virtual machine. Google Cloud provides different types of public images to select. For example: Debian, Red Hat, CentOS, Ubuntu, Windows Server etc.
    • Identity and API access: This time we will select the service account and level of API access. Any applications which will run on VM uses the service account to call Google Cloud APIs. For simplicity, let's select below two
      • Allow HTTP traffic
      • Allow HTTPS traffic
    • Networking: Under this, we can select the network, subnetwork, primary internal IP, external IP etc.
    • Disks: Here we can add additional disk/storage in our virtual machine with additional cost.

There are a couple of more configurations we can set on this page, but for simplicity, I just select the basic one to start with. 

Finally, we need to click on "Create" button

Finally

Our first Virtual Machine is up and running in Google Cloud Platform.

Start, Stop, Delete Virtual Machine in Google Cloud Platform (GCP)

Once we have our Virtual Machine ready, we can go to the console to view it. For each virtual machine, there are three vertical dots(as shown in the picture below) clicking on that we will get the option to start, stop or delete our virtual machine.

Note - As we are using the free credit from Google Cloud Platform, it is highly recommended to stop & delete the virtual machine when not in use. This is needed to keep our credit available to explore more areas from the Google Cloud Platform.

Login into Virtual Machine in Google Cloud Platform (GCP)

There are a couple of ways to login into the Virtual Machine. I will focus on below two ways.

Open in browser window

We can log in to our virtual machine by clicking on the option "Open in browser window" from the SSH dropdown. It will open the virtual machine console in a new browser as shown below.

View gcloud command

We can log in to our virtual machine through gcloud command. For that, we need to click on the option "view gcloud command" from the SSH dropdown. And then click on "Run in Cloud Shell". It will open the virtual machine in the gcloud console. You might need to approve the authorization.

 

In my next blog, I will share how you can run your first program in Google Cloud Virtual Machine. Till then, stay safe.

Comments

Understand Regions and Zones in Google Cloud

Understand Regions and Zones in Google Cloud

Welcome to my third post regarding Google Cloud Digital Leader certification. In today's post, I will help you to understand Regions and Zones concept from Google Cloud. 

In this post, I will go through a use case to identify the problems faced by enterprise customers. That will lead us to Regions and Zones from Google Cloud and help us to understand why we need them and how they help us to solve enterprise problems. So without any further ado, let's get started.

Note - Please bookmark this below page to access all posts regarding Google Cloud Digital Leader certification.

Google Cloud Digital Leader Certification Notes

Read this blog post or watch the video below to learn more about how you can start with Google Cloud.

Down Arrow

A typical use case

A fictitious company named, Hello Cloud, selling environment-friendly products wants to create their online presence. They are planning to publish their website along with their internal applications from where their customers can search products, buy, return, provide feedback etc.

Few things to know -

  • Hello Cloud's head office is in Toronto, Canada.
  • Current data center is in Toronto, Canada.
  • Hello Cloud have customers from the entire globe.
Scenario 1

With Hello Cloud's single data center from Toronto, below are the list of problems they are facing.

    • High Latency - Customers which are geographically away from Toronto, for example - New Zealand, India etc. are facing slowness accessing the application.
    • Availability - When their current data center goes down, customers are not able to access their application.

Scenario 2

Now to solve the problems mentioned above, Hello Cloud set up one more data center in the same location i.e. Toronto, Canada. Is this going to solve their problem? Let's revisit the problem 

  • High Latency - It's the same problem for customers who are geographically away from Toronto. They will keep on facing slowness.
  • Availability - It is partially solved because if one data center is down, the application will still be served from the other data center. But what will happen if both the data center is down? Application will become unavailable again.

Two Data Centers

Scenario 3

Now to solve the problems mentioned above, Hello Cloud set up one more data center in a different location i.e.Zurich, Switzerland. Is this going to solve their problem? Let's revisit the problem

  • High Latency - It is partially solved because customers closer to any of their data centers will be able to access the application faster, but for others who are geographically away from Toronto or Zurich, it's the same problem for customers who are geographically away from Toronto. They will keep on facing slowness.
  • Availability - It is solved now because even if one data center (say Toronto) is down, the application will still be served from the other data center i.e. Zurich.

Many Data Centers

So what is the solution?

What do you think is the solution to solve these problems? Should Hello Cloud go ahead and set up data center in every region and maintain that? Yes, they can do that. But that solution is not a cost-effective solution at all.

Entire Globe

Google Cloud is the solution

Based on 29 regions and 88 availability zones, Google Cloud provides a strong and highly available architecture. Between availability zones and real clusters of servers in Google data centres, Google Compute Engine creates an abstraction layer. Each physical machine cluster has its own software, power, cooling, networking, and security architecture, as well as compute and storage resources. One or more clusters can make up a zone.

Regions and Zones from Google Cloud 

In Google Cloud Region is a geographical region made up of zones where you can host your GCP resources. Google Cloud Zone is a GCP resource deployment area (virtual machine, database..). Within the region, this is regarded as a single failure domain. If you want to achieve high availability and fault tolerance in the same location, you can employ a multi-zone deployment technique.

There are at least three zones in each region. The main benefit of zones is that they increase availability and fault tolerance within a single region. There are one or more distinctive clusters in each zone (distinct physical infrastructure that is housed in a data centre). One or more data centres can be found in a single zone. Low latency links connect each of the zones in the same region. As a result, we can install a web application in one zone and a database in another without compromising performance.

Currently, Google Cloud provides 29 Regions, 88 Zones available in 200+ countries and they are adding more regions every year.  You can find up-to-date information on GCP cloud location page.

Summary

There are three main advantages of GCP regions and zones.

    • GCP has a number of locations around the world. It also contributes to the application's excellent availability.
    • Assists in achieving low latency and serving users from the closest available site.
    • Follow the rules set forth by the government. Data policies varies from country to country.

In the next post, I will be discussing how you will create your first virtual server in Google Cloud. Till then stay safe and please provide your feedback. Thank you.

Comments

How To Start With Google Cloud

How To Start With Google Cloud

Welcome to my new post regarding Google Cloud Digital Leader certification. In this post, I will share how you can start with your Google Cloud journey. 

You need to register with Google Cloud, so that you can get the free environment to explore the different products. This environment is very important because without doing hands-on, sometimes it is very difficult to understand different products provided by Google Cloud.

Note - Please bookmark this below page to access all posts regarding Google Cloud Digital Leader certification.

Google Cloud Digital Leader Certification Notes

Read this blog post or watch the video below to learn more about how you can start with Google Cloud.

Down Arrow

Below are the steps to register into Google Cloud

Step 1

Go to https://cloud.google.com/ and click on "Get Started for Free" button at the top right corner of the page. 

Step 2

Enter your existing google username and password or create a new google account to start with. Once provided, provide information like your country and organization need. Finally click on Terms of Services and hit the Continue button.

Step 3

In this step, add your mobile number and continue.

Step 4

This time, select the account type as either Individual or Business. After that provide basic information like name, address.

The important thing is that at this step, you need to include your credit card details. Don't worry. By entering Credit Card, Google is just going to verify that you are a genuine person and not a bot or something. Google will never charge anything on your credit card without your approval. So you are very much safe entering your credit card details at this page.

Once you complete all the above 4 steps, you will receive your first Google Cloud environment. Google Cloud not only provide you the environment to explore their products, you will receive free 300 credits which you can use for next 90 days. Credits is something you need to explore different Google Products. For example, to create and run a virtual machine in Google Cloud platform, you need credits. Since this 300 are free credits, it is very much important to use them wisely. When not needed, it is highly recommended that you delete the resource so that you will not unnecessarily loose your credits. 

Below is what your Google Cloud dashboard will look like. At the very top of your Google Cloud dashboard, it will display how much credit you have left and how many days.

In the next post, I will be discussing about Regions and Zones from Google Cloud. Till then stay safe and please provide your feedback. Thank you.

Comments

Introduction to Google Cloud Digital Leader Certification

Introduction to Google Cloud Digital Leader Certification

In the realm of Google Cloud, there's some big news in the form of what appears to be a minor certification. The Google Cloud Digital Leader certification is a new Google certification with an updated syllabus.

Azure has the AZ-900 Microsoft Azure Fundamentals, AWS has the Certified Cloud Practitioner (CCP), and now Google Cloud has the Google Cloud Digital Leader.

This is the first foundational-level certification for GCP. There are no prerequisites for taking the exam, which can be taken completed remotely, and it is "job-role neutral." It requires no hands-on expertise with Google Cloud.

The Google Cloud Digital Leader certification has replaced the Associate Cloud Engineer certification. It suggested that you have at least six months of Google Cloud development experience.

Note - Please bookmark this below page to access all posts regarding Google Cloud Digital Leader certification.

Google Cloud Digital Leader Certification Notes

Read this blog post or watch the video below to learn more about the Google Cloud Digital Leader certification.

Down Arrow

What is Google Cloud Digital Leader Certification?

Google says a Cloud Digital Leader can “articulate the capabilities of Google Cloud core products and services and how they benefit organizations. The Cloud Digital Leader can also describe common business use cases and how cloud solutions support an enterprise.”

Google states in the Cloud Digital Leader exam guide that the candidate must grasp several essential choices, such as "costs vs responsibilities" and "degree of management versus freedom." The exam also covers Google's and users' shared responsibilities for Google Cloud security and other parts of the systems they've constructed.

Format of Google Cloud Digital Leader Certification

  • Length: 90 mins
  • Price: US $99
  • Language: English & Japanese
  • Format: Multiple Choice & Multiple Select
  • Exam Delivery Method: Either online or onsite-proctored.
  • Prerequisite: None

Overview of Google Cloud Digital Leader Certification

Google Cloud is changing the syllabus of this certification. Anyone planning to give this certification on or after January 26th, 2022 should follow the new syllabus.

Current Exam Guide (applicable till January 25th, 2022)

Below concepts are being covered

Section 1. General cloud knowledge

Section 2. General Google Cloud knowledge

Section 3. Google Cloud products and services

To know the detail of each section, please go through the official Google Cloud Digital Leader Certification guide here.

Updated Exam Guide (applicable from January 26th, 2022)

I like the updated exam guide because of many reasons like this new guide is more structured with properly mentioned weightage on each section (I like this approach because now I know which section I need to put more focus on as I will get most of the questions from that section). Finally, the learning path which Google Cloud suggests for this certification is perfectly mapped with each section. So once you complete the learning path, you will be in a better state to understand the different products that come with Google Cloud, their capabilities, and different use cases where they should be used. Below are the different sectioned mentioned in the updated exam guide.

Section 1: Introduction to Digital Transformation with Google Cloud (approximately 10% of the exam)

Section 2: Innovating with Data and Google Cloud (approximately 30% of the exam)

Section 3: Infrastructure and Application Modernization with Google Cloud (approximately 30% of the exam)

Section 4: Understanding Google Cloud Security and Operations (approximately 30% of the exam)

To know the detail of each section, please go through the official Google Cloud Digital Leader Certification guide here.

 

Learning Path of Google Cloud Digital Leader Certification

Google Cloud recommends the below learning path which is perfectly aligned with the updated exam guide. So highly recommend this new learning path.

Click here to access the learning path.

At the same time, I will suggest you make some hands-on and understand the concepts. I know that no hands-on experience is needed for this certification, but if you see the bigger picture, this certification should be the foundational certification for your Google Cloud journey. So understanding concept along with hands-on is the best way to learn things.

In the next couple of weeks, I will be publishing many blog posts and youtube videos in my channel covering different products, their use cases, and how you can make your hands dirty with those products. So stay tuned. 

And please do not forget to subscribe to my blog here and my youtube channel here.

 

Comments