Cloud Computing
Module 1
Cloud Computing
Cloud Computing
Unit - 1
Introduction to Cloud
Computing
Cloud Computing
Disclaimer
The content is curated from online/offline resources and is used for educational purpose only
Cloud Computing
Learning Objectives
You will learn in this lesson:
• Participants will be able to learn the fundamentals of Cloud
Computing
• Understanding concepts of Cloud Computing with Microsoft
Azure
• Participants will be able to identify different resources on
Azure Portal
• Participants will be able to learn creation of Virtual Machine
on Azure Portal.
Cloud Computing
What is Cloud Computing?
• Cloud computing is the on-demand delivery of
computing resources including servers, storage,
databases, networking, software, analytics,
intelligence over the internet on pay as per use
basis.
• It eliminates the need for the enterprise to procure,
configure and manage the resources and they can
focus on business goals.
Click here
Reference link
Cloud Computing
Why Cloud Computing?
Scenario: There is a small software development firm, and they want to expand the business due to rapid
increase in their users.
But, Buying and understanding the entire set up would be :
• Time Consuming and Costly
• Requires Physical Space with sufficient power and cooling
• Maintain and manage them requires experts
• Acquire maximum computing resources than needed.
• Ending up with less utilization.
• Focusing more on troubleshooting at the infrastructure level than the end business goal.
Cloud Computing
Solution is Cloud Computing
• No need to buy new resource.
• Global accessibility of resources.
• Ready to use set up.
• Availability
• Pay as you go
• Fault Tolerance
Cloud Computing
Migration to Cloud
Click here
Reference link
Cloud Computing
Basics of Cloud Computing
Benefits
Scalability
Cost-Efficiency
Accessibility
Reliability and Redundancy
Cloud Computing
Basics of Cloud Computing
Virtualization
Virtualization is technology that allows you to create
multiple simulated environments or dedicated
resources from a single, physical hardware system.
Cloud Computing
Basics of Cloud Computing
Traditional System vs Virtualization
Traditional System Virtual System
Cloud Computing
Basics of Cloud Computing
Hypervisor
Virtualization can be achieved using a software called Hypervisor.
Cloud Computing
Basics of Cloud Computing
Types of Virtualization
Server Virtualization
Data Virtualization
Hardware Virtualization
Storage Virtualization
Network Virtualization
Cloud Computing
Types of Cloud Computing Services
Function as a Service (FaaS) or
Serverless Computing
Database as a Service (DBaaS)
Container as a Service (CaaS)
Machine Learning as a Service
(MLaaS)
Internet of Things (IoT) Cloud Services
Cloud Computing
Cloud Architecture
Click here
Basics Cloud Computing Architecture Reference link
Cloud Computing
Cloud Computing
Cloud Computing Applications
• With Cloud Computing comes cloud antivirus software which is
Antivirus Application stored in the cloud from where they monitor viruses and malware
in the organization’s system and fixes them.
• E-learning, online distance learning programs, and student
Cloud Computing in
information portals are some of the key changes brought about by
Education
applications of cloud computing in the education sector.
Cloud Computing
Cloud Computing Applications
• Cloud service providers offer safe storage and backup facility for
data and resources on the cloud. In a traditional computing
Backup & Recovery
system, data backup is a complex problem, and often, in case of a
disaster, data can be permanently lost.
E-commerce • Ecommerce applications in the cloud enable users and e-
Application businesses to respond quickly to emerging opportunities.
Cloud Computing
Unit - 2
Cloud Fundamentals
Cloud Computing
Cloud Terminologies
• As a service (-aas)
Multitenancy
Content Delivery Network
Serverless
Cloud Services
Scalability
Virtualization
Cloud Computing
Characteristics of Cloud Computing
a 1. Broad
network
b 1.
Measured
c 1.
Resource
access service pooling
2. On-
2. Rapid 2. Pay-per
demand
elasticity use
self service
Cloud Computing
On-Premises Vs. Cloud Advantages
Click here
Reference link
Cloud Computing
Unit - 3
Cloud Deployment and
Service Delivery Models
Cloud Computing
Different Types of Cloud Computing Deployment models
Cloud computing deployment models refer to the different ways in which cloud computing resources and
services are provisioned, managed, and made available to users. There are four main cloud computing
deployment models –
Private Community
Cloud Cloud
Public Hybrid
Cloud Cloud
Cloud Computing
Private Cloud
• The cloud services are offered on a private infrastructure
• Most of the times private cloud is for internal developers
• Not a widespread model
• Misses most if not all the benefits of the cloud.
• Like on-premise data center.
Cloud Computing
Community Cloud
• Specific community of consumers band together to build a cloud
• Like a private club cloud.
• More commonly talked about a decade ago. Not a go to concept as of today.
Cloud Computing
Public Cloud
• The common model that we all know.
• Virtually all cloud computing today is deployed according to this model.
• Accessible through the public Internet.
Cloud Computing
Hybrid Cloud
• The hybrid cloud combines and unifies public cloud, private and on-premises infrastructure to create a
single, flexible and cost optimal IT infrastructure.
• With hybrid cloud business objective can be achieved more effectively and efficiently than public or
private cloud.
Cloud Computing
Cloud Service Delivery Models
Cloud service delivery models refer to the different types of cloud services that cloud providers offer to
users. These models define the level of control, management, and responsibility that the cloud provider
assumes versus what the user or customer takes on.
Infrastructure Platform as a Software as
as a Service Service a Service
Cloud Computing
Infrastructure as a Service (IaaS)
• The most basic form
• Basic computing resources are provided
• The consumer installs and manages the needed software.
• High Control but high engagement.
Cloud Computing
Platform as a Service (PaaS)
• Can be used to develop applications by the consumer
• Possible to write code and configure the service
• Cloud Vendor manages the underlying infrastructure
Cloud Computing
Software as a Service (PaaS)
• Everything is managed by the cloud vendor
• You only configure and use it through a web browser.
• Common examples are Google’s services like Docs, Calendar, and Sheets or Microsoft’s Office 365.
Cloud Computing
Difference between IAAS, PAAS, SAAS
Click here
Reference link
Cloud Computing
Market Trends
Click here
Reference link
Cloud Computing
Market Trends
Click here
Reference link
Cloud Computing
Job Trends
Click here
Reference link
Cloud Computing
Unit - 4
Introduction to Azure
Platform
Cloud Computing
What is Microsoft Azure ?
• Azure is a continually expanding set of cloud services that help an organization meet their current and
future business challenges.
• Azure gives the freedom to build, manage, and deploy applications on a massive global network using
your favorite tools and frameworks.
Cloud Computing
Why Microsoft Azure
High Geo- Disaster Fault
Scalability Elasticity Agility
Availability Distribution Recovery Tolerance
Cloud Computing
What is Azure Portal
• The Azure portal is a web-based, unified console.
• You can manage your Azure subscription by using a graphical user interface.
• Build, manage, and monitor everything from simple web apps to complex cloud deployments.
• Create custom dashboards for an organized view of resources.
• Configure accessibility options for an optimal experience.
Cloud Computing
What is Azure Marketplace
• Azure Marketplace helps connect users with
Microsoft partners, independent software
vendors, and start-ups that are offering their
solutions and services, which are optimized to
run on Azure.
• All solutions and services are certified to run
on Azure.
Click here
Reference link
Cloud Computing
Azure Command Line Tools
Azure Cloud Shell
• Azure Power shell
• Azure CLI
Cloud Computing
Hands – on : Azure Portal
Activity: This activity is to enable learners to create their first Microsoft Azure Cloud account on the Azure
portal and login to the dashboard environment on Azure to check and confirm login and get familiar with
the Azure cloud dashboard elements.
Cloud Computing
Azure Portal
Sign into [Link]
Blurred to hide account details
Cloud Computing
Azure Resource Manager
• Azure Resource Manager is the deployment
and management service for Azure.
• It provides a management layer that enables
you to create, update, and delete resources in
your Azure account.
Click here
Reference link
Cloud Computing
Azure Cloud Global Infrastructure
Azure Storage Services
• The Azure Storage platform is Microsoft's cloud storage solution for modern data storage scenarios.
• Core storage services offer a massively scalable object store for data objects, disk storage for Azure
virtual machines (VMs), a file system service for the cloud, a messaging store for reliable messaging,
and a NoSQL store.
Cloud Computing
Core Storage Services
The Azure Storage platform includes the following data services:
Azure Blobs
Azure Files
Azure Queues
Azure Tables
Azure Disks
Cloud Computing
Creating Storage Service Instances for Archival & Backup
Activity: This activity focuses on creating a storage account in Azure cloud and use it to store the
important files. The storage services available are of variety of types. Choosing the right service
depends on type of storage requirements.
Cloud Computing
Create a Storage Account
• To create a general-purpose v2 storage account in the Azure portal, follow these steps:
• On the Azure portal menu, select all services. In the list of resources, type Storage Accounts. As you
begin typing, the list filters based on your input. Select Storage Accounts.
Cloud Computing
Create a Storage Account
• On the Storage Accounts window that appears,
choose Add.
• The following image shows the settings on
the Basics tab for a new storage account:
Cloud Computing
Hands On: How to recover a deleted account from Azure portal
To recover a storage account, the following conditions must be true:
• The storage account was deleted within the past 14 days.
• The storage account was created with the Azure Resource Manager deployment model.
• A new storage account with the same name has not been created since the original account was deleted.
• The user who is recovering the storage account must be assigned an Azure RBAC role that provides the
[Link]/storageAccounts/write permission.
Cloud Computing
Hands On: How to recover a deleted account from Azure portal
Cloud Computing
Unit - 5
Virtual Machines
Cloud Computing
Introduction to Virtual Machines
Microsoft Azure Core Services
• Azure Core services are Cloud computing services for building, testing, deploying, and managing
applications and services through data centres.
• Below are the core services that are building blocks of all the services that you will find in the Azure:
1 Compute
2 Networking
3 Storage
4 Database
Cloud Computing
Azure Compute Services
• Compute is basically the on-demand computing service for running cloud-based applications.
• Azure provides computing resources like disks, processors, memory, networking, and operating
systems on demand basis.
• Azure offers compute services for IaaS & PaaS models and Serverless.
Cloud Computing
Types of Azure Compute Services
It offers computing operations like app hosting, development, and deployment in the Azure Platform.
Some of the popular compute services are:
Azure
Azure
Azure Virtual Azure App Functions
Container
Machines Service (or serverless
Instances
computing)
Cloud Computing
Azure Virtual Machines
• Virtual machines are software version of physical computers.
• VMs include a virtual processor, memory, storage, and networking resources.
• VMs host an operating system, and you can install and run software just like a physical computer.
• Virtual Machines provides infrastructure as a service (IaaS) and can be used in
different ways, customize all the software running on the VM.
Cloud Computing
Virtual Machine Scale Sets
• Virtual Machines scale sets are an Azure compute resource that gives the flexibility to deploy and
manage a set of identical Virtual Machines.
• Configuration of all the VMs is same.
• This service supports auto scaling feature of cloud.
• There is no requirement of pre-provisioning of VMs.
• Virtual Machines can be added or removed based on demand.
• Scaling process can be manual, automated or combination of both.
Cloud Computing
What is Virtual Machine ?
• Virtual machine is generally called as VM.
• A virtual machine is a virtual representation of a physical computer. It has virtual processor, memory,
storage like any physical computer.
• VMs are referred to as guest while physical servers on which they run referred to as host.
• Virtualization makes it possible to create multiple virtual machines on a single physical machine.
• With hypervisor, VM coordinates with physical hardware.
Cloud Computing
How virtualization works ?
Click here
Reference link
Cloud Computing
Advantages and Disadvantages of Virtual Machines
Resource
Scaling Portability Flexibility Security
Utilization
Cloud Computing
Use cases for VMs
Test a new
Cloud computing Support DevOps
Operating System
Investigate Run incompatible
malware Software
Cloud Computing
Remote Access RDP & SSH
Remote Access of VM using RDP
Remote Desktop Protocol (RDP) is a proprietary
protocol developed by Microsoft which provides a
user with a graphical interface to connect to
another remote computer.
Click here
Reference link
Cloud Computing
Availability Options for Azure Virtual Machine
• Availability Set: Logical grouping of VMs to provide high availability and redundancy to application.
• Availability Zone: An availability zone is a physical separate zone within an Azure region. VMs can
be replicated in these zones to protect application in case of datacenter failure.
• Azure Virtual Machine Scale Set: It helps to create and manage group of load VMs.
Cloud Computing
Creating Windows VM in Azure Cloud
Activity: Create your first Windows Virtual Machine in the Azure Cloud.
Cloud Computing
Azure Virtual Machines Checklist
Before creating Azure VMs, compile a checklist for creating an Azure Virtual Machine.
1. Start with the network
2. Name the VM
3. Decide the location for the VM
4. Determine the size of the VM
5. Understanding the pricing model
6. Storage for the VM
7. Select an operating system
Cloud Computing
Step1. Start with the network
• Virtual networks (VNets) are used in Azure to provide private connectivity between Azure Virtual
Machines and other Azure services. VMs and services that are part of the same virtual network can
access one another.
• By default, services outside the virtual network cannot connect to services within the virtual network. You
can, however, configure the network to allow access to the external service, including your on-premises
servers.
• Spend some time thinking about your network configuration.
• When you set up a virtual network, you specify the available address spaces, subnets, and security.
• After deciding the virtual network address space(s), you can create one or more subnets for your virtual
network.
Cloud Computing
Step1. Start with the network
Plan each VM Deployment
Once you have mapped out your communication and network requirements, you can start thinking about
the VMs you want to create.
A good plan is to select a server and take an inventory:
• What does the server communicate with?
• Which ports are open?
• Which OS is used?
• How much disk space is in use?
• What kind of data does this use? Are there restrictions (legal or otherwise) with not having it on-
premises?
• What sort of CPU, memory, and disk I/O load does the server have? Is there burst traffic to account for?e
Cloud Computing
Step2. Name the VM
• The VM name is used as the computer name, which is configured as part of the operating system.
• You can specify a name of up to 15 characters on a Windows VM and 64 characters on a Linux VM.
• This name also defines a manageable Azure resource.
Cloud Computing
What is an Azure resource?
• An Azure resource is a manageable item in Azure. Just like a physical computer in your datacenter, VMs
have several elements that are needed to do their job:
• The VM itself
• Storage account for the disks
• Virtual network (shared with other VMs and services)
• Network interface to communicate on the network
• Network Security Group(s) to secure the network traffic
• Public Internet address (optional)
Azure will create all these resources if necessary, or you can supply existing ones as part of the
deployment process. Each resource needs a name that will be used to identify it. If Azure creates the
resource, it will use the VM name to generate a resource name
Cloud Computing
Step3. Decide the location for the VM
• Azure has datacenters all over the world filled with servers and disks.
• When you create and deploy a virtual machine, you must select a region where you want the resources
(CPU, storage, etc.) to be allocated.
Cloud Computing
Step4. Determine the size of the VM
• Once you have the name and location set, you
need to decide on the size of your VM.
• Azure provides a wide range of VM size options
allowing you to select the appropriate mix of
compute, memory, and storage for what you want
to do.
• The best way to determine the appropriate VM size
is to consider the type of workload your VM needs
to run.
• Based on the workload, you're able to choose from
a subset of available VM sizes.
Cloud Computing
Determine the size of the VM
Option Description
General purpose General-purpose VMs are designed to have a balanced CPU-to-memory ratio. Ideal for testing and
development, small to medium databases, and low to medium traffic web servers.
Compute optimized Compute optimized VMs are designed to have a high CPU-to-memory ratio. Suitable for medium traffic
web servers, network appliances, batch processes, and application servers.
Memory optimized Memory optimized VMs are designed to have a high memory-to-CPU ratio. Great for relational database
servers, medium to large caches, and in-memory analytics.
Storage optimized Storage optimized VMs are designed to have high disk throughput and IO. Ideal for VMs running
databases.
GPU GPU VMs are specialized virtual machines targeted for heavy graphics rendering and video editing.
These VMs are ideal options for model training and inferencing with deep learning.
High performance computes High performance compute is the fastest and most powerful CPU virtual machines with optional high-
throughput network interfaces.
Cloud Computing
Step5. Determine the size of the VM
• Azure allows you to change the VM size when the existing size no longer meets your needs. You can
upgrade or downgrade the VM - if your current hardware configuration is allowed in the new size. This
provides a fully agile and elastic approach to VM management.
• The VM size can be changed while the VM is running, if the new size is available in the current
hardware cluster the VM is running on. The Azure portal makes this obvious by only showing you
available size choices.
Cloud Computing
Step6. Understanding the pricing model
There are two separate costs the subscription will be charged for every VM: compute and storage.
Compute costs - Compute expenses are priced on a per-hour basis but billed on a per-minute basis.
Storage costs - You are charged separately for the storage the VM uses. The status of the VM has no
relation to the storage charges that will be incurred; even if the VM is stopped/deallocated and you aren’t
billed for the running VM, you will be charged for the storage used by the disks.
Cloud Computing
Step7. Storage for VM
• Best practice is that all Azure virtual machines will have at least two virtual hard disks (VHDs). The first
disk stores the operating system, and the second is used as temporary storage.
• You can add additional disks to store application data; the maximum number is determined by the VM
size selection (typically two per CPU). It's common to create one or more data disks, particularly since
the OS disk tends to be quite small. Also, separating out the data to different VHDs allows you to
manage the security, reliability, and performance of the disk independently.
• The data for each VHD is held in Azure Storage as page blobs, which allows Azure to allocate space
only for the storage you use. It's also how your storage cost is measured; you pay for the storage you
are consuming.
Cloud Computing
Step8. Storage for VM : What is Azure Storage?
• Azure Storage is Microsoft's cloud-based data storage solution. It supports almost any type of data and
provides security, redundancy, and scalable access to the stored data. A storage account provides
access to objects in Azure Storage for a specific subscription. VMs always have one or more storage
accounts to hold each attached virtual disk.
• Virtual disks can be backed by either Standard or Premium Storage accounts.
Cloud Computing
[Link] an operating system
• Azure provides a variety of OS images that you can install into the VM, including several versions of
Windows and flavors of Linux.
• The choice of OS will influence your hourly compute pricing as Azure bundles the cost of the OS
license into the price.
• If you are looking for more than just base OS images, you can search the Azure Marketplace for more
sophisticated install images that include the OS and popular software tools installed for specific
scenarios.
Cloud Computing
Step10. Generating the SSH public key
• One can use a public-private key pair to secure
SSH access to your cloud server. A public key is
placed on the server, and the private key is placed
on your local workstation.
• This makes it impossible for someone to log in
using just a password, as long as you set up SSH
to deny password-based authentication.
Cloud Computing
Step11. Generating the SSH public key
• Steps to Create VM are as follows:
• Create free Azure Account.
• Sign into the Azure Portal.
• Search for Virtual Machine in the search bar
• Select Create and then Select Virtual Machine.
• Under Project Details, Select Subscription and Select or create the new resource group.
• Under Instance details, type myVM for the Virtual machine name, choose East US for your Region, and
choose Ubuntu 18.04 LTS for your Image. Leave the other defaults.
Cloud Computing
Step12. Generating the SSH public key
• Under Administrator account, select SSH public key.
• In Username type azure user.
• For SSH public key source, leave the default of Generate new key pair, and then type myKey for
the Key pair name.
Cloud Computing
Step13: Set inbound port rules
• Under Inbound port rules > Public inbound ports, choose Allow selected ports and then select SSH
(22) and HTTP (80) from the drop-down.
• Leave the remaining defaults and then select the Review + create button at the bottom of the page.
Cloud Computing
Step14: Create an Azure VM with the Azure portal
• Leave the remaining defaults and then select the
Review + create button at the bottom of the page.
• On the Create a virtual machine page, you can see
the details about the VM you are about to create.
When you are ready, select Create.
• When the Generate new key pair window opens,
select Download private key and create resource.
Your key file will be download as [Link]. Make
sure you know where the .pem file was downloaded,
you will need the path to it in the next step.
• When the deployment is finished, select Go to
resource.
• On the page for your new VM, select the public IP
address, as shown in image next slide and copy it to
your clipboard.
Cloud Computing
Connect to Virtual Machines
Create an SSH connection with the VM.
• If you are on a Mac or Linux machine, open a Bash prompt. If you are on a Windows machine, open a
PowerShell prompt.
• At your prompt, open an SSH connection to your virtual machine. Replace the IP address with the one
from your VM, and replace the path to the .pem with the path to where the key file was downloaded.
Console
ssh -i .\Downloads\[Link] azureuser@[Link]
Tip
• The SSH key you created can be used the next time you create a VM in Azure. Just select the Use a key
stored in Azure for SSH public key source the next time you create a VM. You already have the private
key on your computer, so you won't need to download anything
Cloud Computing
Step15: Work with the VM with the Azure portal
Install web server in VM
sudo apt-get -y update
sudo apt-get -y install nginx
When done, type exit to leave the SSH session.
View the web server in action
Use a web browser of your choice to view the default NGINX welcome page. Type the public IP address of
the VM as the web address. The public IP address can be found on the VM overview page or as part of the
SSH connection string you used earlier.
Clean up resources
When no longer needed, you can delete the resource group, virtual machine, and all related resources. To
do so, select the resource group for the virtual machine, select Delete, then confirm the name of the
resource group to delete.
Cloud Computing
Quiz 1
What are the different cloud deployment models ?
a) Private Cloud
b) Public Cloud
c) Hybrid Cloud
d) Community Cloud
e) 1, 2, 3
f) All of the above
Answer: f) All of the above
Cloud Computing
Quiz 2
What are the different types of services offered by cloud ?
a) PAAS
b) IAAS
c) SAAS
d) All of the above
Answer: d) All of the above
Cloud Computing
Quiz 3
What are roles in Microsoft Azure?
a) Web Role
b) Worker Role
c) VM Role
d) All of the above
Answer: d) All of the above
Cloud Computing
Reference
1. [Link]
2. [Link]
3. [Link]
Cloud Computing
Thank you!