CSM LAB MANUAL
CSM LAB MANUAL
AIM
To Create a Cloud Organization in AWS/Google Cloud/or any equivalent Open Source cloud
softwares like Openstack, Eucalyptus, OpenNebula with Role-based access control
PROCEDURE
Google Cloud Platform (GCP), offered by Google, is a suite of cloud computing services that runs on the
same infrastructure that Google uses internally for its end-user products, such as Google
Search, Gmail, Google Drive, and YouTube Alongside a set of management tools, it provides a series of
modular cloud services including computing, data storage, data analytics and machine learning. Registration
requires a credit card or bank account details.[4]
Google Cloud Platform provides infrastructure as a service, platform as a service, and serverless
computing environments.
In April 2008, Google announced App Engine, a platform for developing and hosting web applications in
Google-managed data centers, which was the first cloud computing service from the company. The service
became generally available in November 2011. Since the announcement of App Engine, Google added
multiple cloud services to the platform.
Google Cloud Platform is a partof Google Cloud, which includes the Google Cloud Platform public cloud
infrastructure, as well as Google Workspace (G Suite), enterprise versions of Android and ChromeOS,
and application programming interfaces (APIs) for machine learning and enterprise mapping services.
Creating your project
bookmark_border
To deploy your app on App Engine, you must create a Google Cloud project, which is a top level container
that holds your App Engine application resources as well as other Google Cloud resources.
In this task, you create a Google Cloud project and an App Engine application to store settings, computing
resources, credentials, and metadata for your app.
If you already have a Google Cloud project with App Engine and the Cloud Build API enabled, continue
to Writing Your Web Service.
1. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world
scenarios. New customers get $300 in free credits to run, test, and deploy workloads.
2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of
selecting an existing project. After you finish these steps, you can delete the project, removing all resources
associated with the project.
Go to project selector
3. Make sure that billing is enabled for your Google Cloud project. 1
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
gcloud init
7. Create an App Engine application for your Google Cloud project in the Google Cloud console.
Open app creation
8. Select a region where you want your app's computing resources located.
Note: After you create your App Engine app, you cannot change the region. To reduce latency, choose the
region closest to your app's intended users. For more information on the available regions, see App Engine
Locations.
Next step
Now that your Google Cloud project is set up, you're ready to write a basic web service with Node.js.
Optional tools:
Install Git for access to code, samples, libraries, and tools in the Google Cloud GitHub repository.
Install your preferred tooling or framework, for example you can use any of the following frameworks to develop
your Python 3 app:
Flask
Django
Pyramid
Bottle
web.py
Tornado
2
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
Result:
Thus Cloud Organization in AWS/Google Cloud/or any equivalent Open Source cloud softwares like Openstack,
Eucalyptus, OpenNebula with Role-based access control was created.
AIM:
To Create a Cost-model for a web application using various services and do Cost-benefit analysis.
PROCEDURE:
Cost modeling is an exercise where you create logical groups of cloud resources that are mapped to
the organization's hierarchy and then estimate costs for those groups. The goal of cost modeling is to
estimate the overall cost of the organization in the cloud.
Map your organization's needs to logical groupings offered by cloud services. This way the business
leaders of the company get a clear view of the cloud services and how they're controlled.
Start your planning by carefully enumerating the requirements. From the high-level requirements,
narrow down each requirement before starting on the design of the solution.
Evaluate the budget constraints on each business unit. Determine the governance policies in Azure
to lower cost by reducing wastage, over-provisioning, or expensive provisioning of resources.
Consider tradeoffs
As you prioritize requirements, cost can be adjusted. Expect a series of tradeoffs in the areas that
you want to optimize, such as security, scalability, resilience, and operability. If the cost to address the
challenges in those areas is high, stakeholders look for alternate options to reduce cost. There might be risky
choices made in favor of a cheaper solution.
Break down the high-level goals into functional requirements for the solution's components. Each
requirement must be based on realistic metrics to estimate the actual cost of the workload.
Azure services are offered with consumption-based prices where you're charged for only what you
use. There's also options for fixed price where you're charged for provisioned resources.
Most services are priced based on units of size, amount of data, or operations. Understand the meters
that are available to track usage. For more information, see Azure resources.
4
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
At the end of this exercise, you should have identified the lower and upper limits on cost and set
budgets for the workload. Azure lets you create and manage budgets in Azure Cost Management.
Budgets are supported for the following types of Azure account types and scopes:
1. Select the following image to sign in to Azure and open a template. The template creates a budget
without any filters
5
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
You can specify a past start date with the Time Grain period.
End Date: enter the end date for the budget in YYYY-MM-DD format.
First Threshold: enter a threshold value for the first notification. A notification is sent when the cost
exceeds the threshold. It's always percent and has to be between 0.01 and 1000.
Second Threshold: enter a threshold value for the second notification. A notification is sent when the
cost exceeds the threshold. It's always percent and has to be between 0.01 and 1000.
Contact Emails enter a list of email addresses to send the budget notification to when a threshold is
exceeded. It accepts an array of strings. Expected format is ["user1@domain.com","user2@domain.com"].
Review the terms and conditions, select I agree to the terms and conditions stated above, and then
select Purchase.
The Azure portal is used to deploy the template. In addition to the Azure portal, you can also use Azure
PowerShell, Azure CLI, and REST API. To learn about other deployment templates, see Deploy templates.
Azure portal
CLI
PowerShell
Navigate to Cost Management + Billing > select a scope > Budgets.
Clean up resources
When you no longer need a budget, delete it by using one the following methods:
Azure portal
CLI
PowerShell
Navigate to Cost Management + Billing > select a billing scope > Budgets > select a budget > then
select Delete budget.
7
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
RESULT:
Thus a Cost-model for a web application using various services and do Cost-benefit analysis was
created
8
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
AIM:
To create alerts for usage of Cloud resources.
PROCEDURE:
Metric values.
Log search queries.
Activity log events.
The health of the underlying Azure platform.
Tests for website availability.
See the list of Azure Monitor data sources for a more detailed description of the sources of monitoring data
that this service collects.
For details about manually creating and managing alerts by using the Azure portal, see the Azure Monitor
documentation.
The package uses HPE server hardware as an example. Change the settings in the associated configuration
file to reflect your OEM hardware. You can also add more performance counters to the configuration file.
To deploy the package, run the New-CoreAlerts.ps1 file.
9
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
2. Select Alerts from the left pane, and then select + Create > Alert rule.
10
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
1. In the portal, either from the home page or from a specific resource, select Alerts from the left pane.
3. Select the alert rule you want to edit, and then select Edit.
4. Select any of the tabs for the alert rule to edit the settings.
11
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
1. On the Select a resource pane, set the scope for your alert rule. You can filter
by subscription, resource type, or resource location.
2. Select Apply.
1. On the Condition tab, when you select the Signal name field, the most commonly used signals are
displayed in the drop-down list. Select one of these popular signals,
or select See all signals if you want to choose a different signal for the condition.
2. (Optional) If you chose to See all signals in the previous step, use the Select a signal pane to search
for the signal name or filter the list of signals. Filter by:
This table describes the services available for each type of alert rule:
12
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
Follow the steps in the tab that corresponds to the type of alert you're creating.
a. Preview the results of the selected metric signal in the Preview section. Select values for the
following fields.
Field Description
Time range The time range to include in the results. Can be from the last six hours to the last week.
Time series The time series to include in the results.
Field Description
Threshold Select if the threshold should be evaluated based on a static value or a dynamic
value.
A static threshold evaluates the rule by using the threshold value that you
configure.
Dynamic thresholds use machine learning algorithms to continuously learn the
metric behavior patterns and calculate the appropriate thresholds for unexpected
behavior. You can learn more about using dynamic thresholds for metric alerts.
Operator Select the operator for comparing the metric value against the threshold.
If you're using dynamic thresholds, alert rules can use tailored thresholds based on
metric behavior for both upper and lower bounds in the same alert rule. Select one of 13
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
Field Description
these operators:
- Greater than the upper threshold or lower than the lower threshold (default)
- Greater than the upper threshold
- Lower than the lower threshold
Aggregation Select the aggregation function to apply on the data points: Sum, Count, Average,
type Min, or Max.
Threshold If you selected a static threshold, enter the threshold value for the condition logic.
value
Unit If the selected metric signal supports different units, such as bytes, KB, MB, and
GB, and if you selected a static threshold, enter the unit for the condition logic.
Threshold If you selected a dynamic threshold, enter the sensitivity level. The sensitivity level
sensitivity affects the amount of deviation from the metric series pattern that's required to
trigger an alert.
- High: Thresholds are tight and close to the metric series pattern. An alert rule is
triggered on the smallest deviation, resulting in more alerts.
- Medium: Thresholds are less tight and more balanced. There are fewer alerts than
with high sensitivity (default).
- Low: Thresholds are loose, allowing greater deviation from the metric series
pattern. Alert rules are only triggered on large deviations, resulting in fewer alerts.
Aggregation Select the interval that's used to group the data points by using the aggregation type
granularity function. Choose an Aggregation granularity (period) that's greater than
the Frequency of evaluation to reduce the likelihood of missing the first evaluation
period of an added time series.
Frequency of Select how often the alert rule is to be run. Select a frequency that's smaller than the
evaluation aggregation granularity to generate a sliding window for the evaluation.
c. (Optional) Depending on the signal type, you might see the Split by dimensions section.
Dimensions are name-value pairs that contain more data about the metric value. By using
dimensions, you can filter the metrics and monitor specific time-series, instead of monitoring the
aggregate of all the dimensional values.
If you select more than one dimension value, each time series that results from the combination
triggers its own alert and is charged separately. For example, the transactions metric of a storage
account can have an API name dimension that contains the name of the API called by each
transaction (for example, GetBlob, DeleteBlob, and PutPage). You can choose to have an alert
fired when there's a high number of transactions in a specific API (the aggregated data). Or you
can use dimensions to alert only when the number of transactions is high for specific APIs.
Field Description
Dimension Dimensions can be either number or string columns. Dimensions are used to
name monitor specific time series and provide context to a fired alert.
Splitting on the Azure Resource ID column makes the specified resource into the
alert target. If detected, the ResourceID column is selected automatically and
changes the context of the fired alert to the record's resource.
Operator The operator used on the dimension name and value.
Dimension The dimension values are based on data from the last 48 hours. Select Add custom
values value to add custom dimension values.
Include all Select this field to include any future values added to the selected dimension.
future values
14
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
Field Description
Check every Select how often the alert rule checks if the condition is met.
Lookback Select how far back to look each time the data is checked. For example, every 1
period minute, look back 5 minutes.
e. (Optional) In the Advanced options section, you can specify how many failures within a specific
time period trigger an alert. For example, you can specify that you only want to trigger an alert if
there were three failures in the last hour. Your application business policy should determine this
setting.
Field Description
Number of The number of violations within the configured time frame that trigger the alert.
violations
Evaluation The time period within which the number of violations occur.
period
Ignore data Use this setting to select the date from which to start using the metric historical
before data for calculating the dynamic thresholds. For example, if a resource was
running in testing mode and is moved to production, you may want to disregard
the metric behavior while the resource was in testing.
f. Select Done.
From this point on, you can select the Review + create button at any time.
2. (Optional) In the Custom properties section, if you've configured action groups for this alert rule,
you can add your own properties to include in the alert notification payload. You can use these
properties in the actions called by the action group, such as webhook, Azure function or logic app
actions.
The custom properties are specified as key:value pairs, using either static text, a dynamic value
extracted from the alert payload, or a combination of both.
The format for extracting a dynamic value from the alert payload is: ${<path to schema field>}. For
example: ${data.essentials.monitorCondition}.
Use the common alert schema format to specify the field in the payload, whether or not the action
groups configured for the alert rule use the common schema.
15
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
In the following examples, values in the custom properties are used to utilize data from a payload
that uses the common alert schema:
Example 1
This example creates an "Additional Details" tag with data regarding the "window start time" and
"window end time".
Example 2 This example adds the data regarding the reason of resolving or firing the alert.
o "Alert Resolved reason: Percentage CPU GreaterThan5 Resolved. The value is 3.585"
o “Alert Fired reason": "Percentage CPU GreaterThan5 Fired. The value is 10.585"
Note
The common schema overwrites custom configurations. Therefore, you can't use both custom
properties and the common schema for log alerts.
16
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
Metric alert
Log alert
Activity log alert
Resource Health alert
Service Health alert
g. Enter values for the Alert rule name and the Alert rule description.
h. (Optional) If you're creating a metric alert rule that monitors a custom metric with the scope
defined as one of the following regions and you want to make sure that the data processing for the
alert rule takes place within that region, you can select to process the alert rule in one of these
regions:
North Europe
West Europe
Sweden Central
Germany West Central
i. (Optional) In the Advanced options section, you can set several options.
Field Description
Enable upon Select for the alert rule to start running as soon as you're done creating it.
creation
Automatically Select to make the alert stateful. When an alert is stateful, the alert is
resolve alerts resolved when the condition is no longer met.
(preview) If you don't select this checkbox, metric alerts are stateless. Stateless
alerts fire each time the condition is met, even if alert already fired.
The frequency of notifications for stateless metric alerts differs based on
the alert rule's configured frequency:
Alert frequency of less than 5 minutes: While the condition continues
to be met, a notification is sent somewhere between one and six minutes.
Alert frequency of more than 5 minutes: While the condition
continues to be met, a notification is sent between the configured
frequency and double the value of the frequency. For example, for an
alert rule with a frequency of 15 minutes, a notification is sent
somewhere between 15 to 30 minutes.
1. On the Tags tab, set any required tags on the alert rule resource.
2. On the Review + create tab, the rule is validated, and lets you know about any issues.
3. When validation passes and you've reviewed the settings, select the Create button.
18
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
19
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
RESULT:
Thus the alerts for usage of Cloud resources were created.
20
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
AIM:
To Create Billing alerts for your Cloud Organization.
PROCEDURE:
Requirements
You must be signed in using account root user credentials or as an IAM user that has been given permission
to view billing information.
For consolidated billing accounts, billing data for each linked account can be found by logging in as the
paying account. You can view billing data for total estimated charges and estimated charges by service for
each linked account, in addition to the consolidated account.
In a consolidated billing account, member linked account metrics are captured only if the payer account
enables the Receive Billing Alerts preference. If you change which account is your management/payer
account, you must enable the billing alerts in the new management/payer account.
The account must not be part of the Amazon Partner Network (APN) because billing metrics are not
published to CloudWatch for APN accounts. For more information, see AWS Partner Network.
To enable the monitoring of estimated charges
1. Open the AWS Billing console at https://console.aws.amazon.com/billing/.
2. In the navigation pane, choose Billing Preferences.
3. By Alert preferences choose Edit.
4. Choose Receive CloudWatch Billing Alerts.
5. Choose Save preferences.
Before you create a billing alarm, you must set your Region to US East (N. Virginia). Billing metric data is
stored in this Region and represents worldwide charges. You also must enable billing alerts for your account
or in the management/payer account (if you are using consolidated billing). For more information,
see Enabling billing alerts.
In this procedure, you create an alarm that sends a notification when your estimated charges for AWS
exceed a defined threshold.
22
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
On the next step, mark the checkbox next to the specific service(s) you’d like to monitor. We’ll choose
Amazon EC2.
RESULT:
Thus billing alerts for Cloud Organization is created.
24
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
EX.NO.5 Compare Cloud cost for a simple web application across AWS, Azure and
GCP and suggestion of best one
AIM:
To Compare Cloud cost for a simple web application across AWS, Azure and GCP
and suggestion of best one.
PROCEDURE/COMPARISON:
Amazon Web Services is a subsidiary of amazon.com, which provides an on-demand Cloud Computing
platform to individuals, companies, and governments on a paid-subscription basis.
Amazon Web Services is the oldest and the most experienced player in the cloud market. As one of the
oldest cloud providers, it has established a bigger user base, as well as bigger trust and reliability factors.
AWS was publicly launched in 2006 with service offerings such as Elastic Compute Cloud (EC2), Simple
Storage Service (Amazon S3), etc. By 2009, Elastic Block Store (EBS) was made public, and services such
as Amazon CloudFront, Content delivery network (CDN), and more formally joined the AWS Cloud
Computing Service offerings.
Microsoft Azure
Microsoft Azure, initially called Azure, was launched in 2010 with the intent to provide a competent Cloud
Computing platform for businesses. Azure was renamed as ‘Microsoft Azure’ in 2014, though the name
‘Azure’ is still commonly used. Since its inception, Microsoft Azure has shown great progress among its
competitors.
Kickstart your career journey by enrolling in this Google Cloud training in London.
25
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
Google Cloud Platform (GCP), which is offered by Google, is a suite of Cloud Computing services that runs
on the same infrastructure that Google uses internally for its end-user products such as Google Search
engine, YouTube, and more.
Google Cloud Platform began its journey in 2011, and in less than a decade it has managed to create a good
presence in the cloud industry. The initial intent of Google Cloud was to strengthen Google’s own products
such as Google Search engine and YouTube. But now, they have also introduced their enterprise services so
that anyone can use Google Cloud Platform which shares the same infrastructure as that of Google Search
or YouTube.
It has been already established that AWS was the earliest in the cloud domain which means that they have
had more time to establish and expand their network. So, AWS is hosting in multiple locations worldwide.
Azure and GCP are also hosting in multiple locations worldwide, but the difference occurs in the number of
their respective availability zones.
Moving on with this Azure vs AWS vs Google Cloud blog, let’s look into the market shares and growth rate
of each of these cloud providers.
Are you preparing for the AWS interview? Then here are the latest AWS interview questions!
AWS Vs. Azure Vs. Google Cloud: Market Shares and Growth Rate
According to the reported quarterly earnings for 2021, Microsoft’s Azure cloud revenue has been observed
to, once again, outperform both AWS and Google Cloud combined.
In spite of the Goliath-like stature of Amazon’s AWS, Microsoft’s Azure cloud outperformed its
competitors with its US$17.7 billion (50% revenue growth over the previous quarter) in commercial-cloud
26
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
revenue as per the fiscal earnings report. While Amazon’s AWS reported US$13.5 billion in cloud business
revenue for the quarter (revenue grew 32% in the quarter), Google Cloud had a modest US$4.05 billion.
Reports by Canalys mentions that as of April 2021, the global cloud market grew 35% this quarter to $41.8
billion. AWS covers 32% of the market, followed by Azure at 19% and Google at 7%.
Since AWS is the oldest player in the cloud market, it comparatively has a bigger community support and
user base. Therefore, AWS has more high-profile and well-known customers like Netflix, Airbnb, Unilever,
BMW, Samsung, MI, Zynga, etc.
27
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
Azure is also gaining its share of high-profile customers with time. As of now, Azure has almost 80 percent
of Fortune 500 companies as its customers. Some of its major customers are Johnson Controls, Polycom,
Fujifilm, HP, Honeywell, Apple, etc.
Google, on the other hand, shares the same infrastructure as that of Google Search and YouTube and, as a
result, many high-end companies have put their faith in Google Cloud. Major clients of Google Cloud are
HSBC, PayPal, 20th Century Fox, Bloomberg, Dominos, and more.
All these cloud providers offer various cloud computing services that are required for any basic business.
The difference occurs in the number of these services. So, moving forward with this Azure vs AWS vs
Google Cloud blog, let’s look into the service offerings of these cloud providers.
28
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
With the added advantage of five years of a head start, AWS computing services are by far the most evolved
and functionally rich.
Want to read more about AWS and Azure? Go through this AWS Tutorial and Azure Tutorial!
AWS offers around 200+ services, whereas Azure offers up to 100+ services. Google Cloud, on the other
hand, is catching up with Azure and AWS offering around 60+ services.
Service offerings from AWS, Azure, and GCP that come under the domains of compute, database, storage,
and networking are mapped below:
Compute Services
Services AWS Azure GCP
IaaS Amazon Elastic Compute Cloud Virtual Machines Google Compute
Engine
PaaS AWS Elastic Beanstalk App Service and Cloud Google App Engine
Services
Containers Amazon Elastic Compute Cloud Azure Kubernetes Service Google Kubernetes
Container Service (AKS) Engine
Serverless AWS Lambda Azure Functions Google Cloud
Functions Functions
Database Services
Services AWS Azure GCP
RDBMS Amazon Relational Database SQL Database Google Cloud SQL
Service
NoSQL: Key– Amazon DynamoDB Table StorageGoogle Cloud DatastoreGoogle Cloud
Value Bigtable
NoSQL: Indexed Amazon SimpleDB Azure Cosmos Google Cloud Datastore
DB
To learn about Google cloud in detail, enroll in this Google Cloud course in United States provided by
Intellipaat.
Storage Services
Services AWS Azure GCP
Object Storage Amazon Simple Storage Blob Storage Google Cloud Storage
Service
Virtual Server Amazon Elastic Block Managed Disks Google Compute Engine Persistent
Disks Store Disks
Cold Storage Amazon Glacier Azure Archive Blob Google Cloud Storage Nearline
Storage
29
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)
lOMoARcPSD|6265825
Are you preparing for the Azure interview? Then here are the latest Azure Interview Questions!
Networking Services
Services AWS Azure GCP
Virtual Network Amazon Virtual Private Virtual Networks Virtual Private Cloud
Cloud(VPC) (VNets)
Elastic Load Elastic Load Balancer Azure Load Balancer Google Cloud Load
Balancer Balancing
Peering Direct Connect ExpressRoute Google Cloud Interconnect
DNS Amazon Route 53 Azure DNS Google Cloud DNS
RESULT:
Thus the Comparison of Cloud cost for a simple web application across AWS, Azure
and GCP is studied.
30
Downloaded by Vinoth Assistant professor IT DEPT (r.vinoth3108@gmail.com)