Azure Full Course - Learn Microsoft Azure in 8 Hours | Azure Tutorial For Beginners | Edureka

Sharing buttons:

Not many domains have popularity

as cloud computing has in recent times.

So it's no secret

that cloud computing adoption is on Rice

as you guys might have known Microsoft Azure is one

of the best and leading cloud service providers

and it certainly makes it to the list

of top cloud computing skills.

That one must have

if you want to make a career in this domain then you

have landed at right.

Place hi, I welcome you all to this full course

on Microsoft Azure,

which not only talks about is your fundamentals,

but will also take you deep at conceptual levels

before we get into details.

Let's look at our agenda for today for better understanding

and ease of learning entire course is divided

into multiple modules.

First module introduction to cloud is about what

exactly cloud computing is different kind of deployment

and service models

in cloud computing second model is about as your fundamentals.

Well in this module we will learn

how to create a short Street our account

and we'll also discuss one of the code Computing service,

which is Usher virtual machine next up

in the third module will discuss as your storage services

and database features in detail.

Fourth module is about different network services offered by

assured in here will discuss as your virtual Network

and related Concepts like subnets security groups

and many more in fifth module.

We will learn how to secure your Access

to your resources using identity

and access Management Services like Azure active directory

six module is all about is your develops in this module.

We'll learn how to simplify

and accelerate entire divorce process using

Azure develop services,

like a sewer pipeline

as your boards Etc in seventh module will talk

about different services offered by Usher

when you are dealing with current training Technologies,

like machine learning a iot and Manny,

Moe also will be comparing

after sure with other leading service providers like AWS

and gcp final module is mostly korea-related in this module.

We'll discuss most frequently Asked interview questions

in Azure interviews will also discuss roles

and responsibilities job Trends and skills

that you should have to ease your interview.

Thank you everyone while you are at it.

Please do not forget

to subscribe at Eureka YouTube channel and hit

the Bell icon to stay updated

with current trending Technologies.

So let us move further

and quickly take a look at today's agenda first firstly,

I would be discussing the basics of cloud as in why it is needed

and what it is exactly.

I would also discuss the different models

that cloud has to offer to you like it's service models

and also its deployment models

and also discuss the different Cloud providers

that are there in the market

and finally I would finish things off with the demo part.

I hope this agenda is clear to all of you firstly

let's understand why Cloud to understand this

So we need to understand the situation

that existed before Cloud came into existence.

So what happened back then

and firstly in order to host a website,

you have to buy a stack of servers and we all know

that servers are very costly.

So that meant we ended up paying

a lot of money next was the issue of traffic.

Now as we all know

if you are hosting a website we are dealing with traffic

that is not constant throughout the day

and that meant more pain we would understand

that as we move further and the other thing was monitoring

and maintaining your servers.

Yes, this is a very big problem now all these issues.

They led to certain disadvantages.

What are those

as I mentioned servers are very costly.


The setup was again costly

and thus you ended up paying a lot of money

and there were other factors contributing to this point.

Let's discuss those as well.

One troubleshooting was a big issue

since you're dealing with a business.

Your Prime Focus is on taking good decisions

so that your business does well,

but if you end up troubleshooting problems,

Soare you focus more on infrastructure related issues.

Then you cannot focus more on your business.

And that was a problem.

So either you had to do multitasking

or you have to hire more people to focus

on those issues thus again you ended up being more money

as I've discussed the traffic on a website is never constant.

And since it varies you are not certain

about its patterns.

Say, for example,

I need to host a website and for that

what I decided I am reserving to petabytes of total memory

for my usage based.

On the traffic but as the traffic,

where is there would be times when the traffic is high

and my whole to petabytes of data is consumed

or space is consumed Roger.

But what if the traffic

is very low for certain hours of the day.

I'm actually not utilizing these servers.

So I end up paying more money for the servers

than I should be.

So yes upscaling was an issue.

So all these things were an issue

because we were paying more money.

We do not have sufficient time to take our decisions properly.

There was ambiguity.

There was more trouble.

All monitoring and maintaining all these resources and apart

from that one important point

which we need to consider is the amount of data

that is being generated now

and that was being generated then then it was okay,

but nowadays if you take a look at it the amount of data

that is generated is huge

and this is another reason why Cloud became so important.

Yeah, as of mentioned the data now, we all know

that everything is going online these days and what

that means is we shop online

we buy food online.

We do almost everything.

What is required as an whatever information

we need we get everything online your bookings and reservations.

Everything can be taken care of that means we have a lot of data

that is being generated these days and this

is Digital Data back in those times.

We were communicating through verbal discussions

and all those things so

through paperwork and that was a different data to maintain

since everything is moving on cloud or moving online.

The amount of data

that we have is used these days and then

when you have this huge amount of data Are you need a space

where you can actually go ahead and maintain this data?

So yes again,

there was a nude of this piece and all these issues

that is your cost.

You're monitoring your maintenance providing

sufficient space.

Everything was taken care by Cloud.

So let us try to understand what this cloud is exactly.

Well think of it as a huge space

that is available online for your usage.

This is a very generic definition to give you

to be more specific.

I would be seeing that think of it as a collection

of data centers now.

Yes, it does again at a place

where you store your data or you host applications basically,

so when you talk about these data centers,

they were already existing.

So what did Cloud do differently?

Well, what cloud did was it made sure

that you are able

to orchestrate your various functionings applications

managing your resources properly

by combining all these data centers together

through a network

and then providing you the control to use this resources

and to manage them properly to make it even more simpler.

I would say there was a group of people or organizations.

Basically that went ahead and bought these servers

these compute capacities storage places compute services

and all those things

and they have their own channel or Network.

All you have to do was go ahead

and rent those resources only to the amount you need it

and also for the time that you needed.

So yes, this is what cloud did it let you rent the services

that you need and you Only those services

that you need so you ended up paying for the services

that you rented and you ended up saving a lot of money.

The other thing is these service providers.

They take care of all the issues

like your security your underlying infrastructures

and all those things.

So you can freely focus on your business

and stop worrying about all these issues.

So this is what cloud is in simple words.

It's a huge space which has all these services available

and you can just go ahead and pick and render services

that you want to use.

So what is cloud computing?

Well, I've already discussed

that just to summarize

it I would say it is nothing but an ability

or it is a place where you can actually store your data.

You can process it

and you can access it from anywhere in the world.


This is an important Point say for example,

you decide to choose a reason

for infrastructure somewhere in u.s.

You can certain maybe China or maybe in India

and you can still have access to all your resources

that is there in u.s.

All you need is a good internet connection.

So that is what cloud does.

Makes the world accessible it lets you have your applications

wherever you want to

and manage them the way you want to so this was

about cloud computing guys.

Next we would be discussing different service models.

Now you need to understand one thing you are being offered

cloud services the platform to use your services

or your applications basically,

but then different people have different requirements.

There are certain people who just want to consume

a particular resource or there's certain people

who actually want to go ahead and create The View.

Own applications great the own infrastructure

and all those things.

So based on these needs we have particular service models

that is your Cloud providers provide you

with a particular model which suits your needs.

So let us try to understand

these models one by one we have these three models

that is your iaas your paas and your saas.

I would be discussing them in the reverse order.

That is I would be talking about saas first

and then I would go upwards

so let us start with saas or sad.

SAS is nothing but a software-as-a-service.

Now what happens here

is basically you are just consuming a service

which is already being maintained and handled

by someone else to give you a valid example.

We have a Gmail.

All you do is you send mail to people and you receive mails

and whatever functionality you do is you just use the service

that is there.

You do not have to maintain it.

You do not have to worry about up scaling down

scalings security issues and all those things.

Everything is taken care by Google say for example

But yard email is

what I'm talking about Google manages everything here.

So all you have to worry about is consuming that service

now this model is known as software as a service

that is saas.

Next we have passed

that is platform as a service now here you are provided

with a platform

where you can actually go ahead and build your own applications

to give you an example.

We have our Google app engine.

Now when you talk about Google app engine,

what you can do is you can go ahead and you can create

your own applications

and you can put Put it on Google app engine

so that others can use it as well.

So in short you are using the platform to create

your own applications,

and lastly we have iaas

that is infrastructure as a service.


What do I mean by this?

Well, the whole infrastructure is provided to you

so that you can go ahead and create your own applications.

That is an underlying structure is given to you based on that.

You can go ahead and choose your operating systems the kind

of Technology you want to use

on that platform

the applications you want to build an old those things.

So that is what an IAB S is infrastructure-as-a-service


so these were the different models

that I wanted to talk about.

So let us move further and discuss the next topic.

That is the different deployment models that are there.

Now when you talk about deployment models,

you can also call them as different types of clouds

that are there in the market we have these three types.

That is your public Cloud your private cloud

and your hybrid Cloud.

Let us try to understand these one by one now

as the name suggests the public Cloud it's available

to everyone you have a A service provider

who makes these services or these resources available

to people worldwide through the internet.

It is an easy and very inexpensive way of dealing

with the situation

because all you have to do is you have to go ahead

and rent this cloud and you're good to use

and it is available publicly.


We have the private Cloud now.

This is a little different here.

You are provided with this service

and you can actually

go ahead and create your own applications.

And since it's a private Cloud you're protected by a firewall.

Add wall and you do not have to worry about various other issues

that are there at hand and next.

We have our hybrid Cloud now.

It is a combination of your private cloud

and your public Cloud say,

for example, you can go ahead and build your applications

privately you can use them.

You can consume them you can use them efficiently.

When you sense that peak in your traffic.

You can actually move it to public

that is you can move it to the public cloud

and even others can have access to it and they can use it.

So these are the three basic deployment models

that are there for you.

Exposure or your usage

rather and you can go ahead and use those as well.

I hope this was clear to all of you.

So let us move further and try to understand the next topic

that has different Cloud providers that are

there in the market.

Now as I've mentioned what happened was

since Cloud came into existence quite a few people went ahead

and they bought their own infrastructure

and now they rent the services

to other people and when you talk about this infrastructure,

they're quite a few people out there who are actually providing

these cloud services to different people

across the globe now

when you talk about These Cloud providers.

The first thing

that should come to your mind is Amazon web services

because it is highly popular

and it leaves other Cloud providers way behind.

The reason I'm saying this is the numbers

that talk about Amazon web services to give you an example.

If you talk about its compute capacity.

It is six times larger than all the other service providers

that are there in the market say for example,

if you talk about the other service providers in the market

if the compute capacity combined was ex-army Has

on web services alone gives you a capacity of 6 x

which is huge apart from that.

It's flexible pricing and various other reasons.

That is the services it provides and all those things.

It is rightly a global leader and the fact

that it had a head start

that is it started way before many other services

that are there in the market.

It actually gained popularity.

And now we see quite a few organizations going ahead

and using Amazon web services apart from that.

We have Microsoft Azure,

which is a Microsoft product

and we all All that when Microsoft decides

to do something they expect

that they kill all the competition

that is there in the market.

It is still not in terms with Amazon web services

or few other service providers

that are than the market but not very neck to neck

but it is probably the second best

when you talk about Amazon web services

or the cloud service providers in the market.

So, yep, it has a lot of catching up to do

when you compare it with Amazon web services,

but it is still a very good cloud service provider

that is there in the market.

Then we have something called as Google Cloud platform again

a very Very good cloud provider in the market.


Why am I saying this?

We all know the infrastructure that Google has to offer to you.

It has one of the best search engine

that is then the market

and the amount of data they deal with every day is huge.

So they are the Pioneers when you talk about big data

and all those things and they know

how to actually handle this amount of data and

how to have an infrastructure that is very good.

That is why they have a very good facility and that leads

to it being one of the cheapest service providers in the market.

Yes, there are Features

that DCP offers which are better,

even than Amazon web services

when you talk about its pricing

and the reason for it is it has various other services

that are there water

does is it helps you optimize various costs

how it uses analytics and various other ways

by which it can optimize the amount of power you use

and that leads to less usage of power.

And since you are paying less for power

that is provided as a paying

less for power you end up paying less for your services as well.

So that is why It is so cost efficient.

Then the other service providers that is we have digital ocean.

We have to remark we have IBM which is again very popular.

But that is a discussion for some other time.

As far as the service providers go.

These are the major ones that as we have Amazon web services.

We have Microsoft Azure,

we have DCP which are talked about a lot.

This was about the basic Cloud providers and the basic intro

which I wanted you all to have.

I hope you all are clear

with whatever Concepts we've discussed in time.

So let us move further and switch into the demo.

Let us try to explore a few of these services

or Cloud providers as in at least the introductory part.


So what I'm going to do is I'm going to switch

into the console basically

where we can take a look at these Services one by one.

So yes guys,

what I've done is I've cornered and have logged

into my AWS account now AWS provides you with a free tier

and then they have the paid Services as well.

Let's discuss these one by one first.

I would talk about AWS then I will talk about gcp

and to some extent I would also discuss a juror as well, but

But let's focus on AWS for first one point,

which I did not mention

while going through the concepts was AWS provides you

with a free tier.

Now when I see a free tier,

this is where you do not have to pay any upfront money.

You can actually go ahead and have access

to AWS services and see

how they work and

once you are confident and comfortable with them,

you can actually go ahead and decide

whether you want to buy those services or not.

So yes, these services are made available to you

for free for one complete Year.


There are certain restrictions on it.

But as long as you stay in those restrictions,

you won't be Panting if you cross those restrictions.

Yes in abuse will charge you now.

How does AWS do that?

Well, when you create an account,

you have to give in your credit card details

or debit card details,

when you do that database will cut a lump sum amount

from your account verify account

and reinstate that amount back into your account

so that none of your money is used

but just a verification is done

that this is your valid credit card or your debit card

and once your 12 month free trial expires,

then they would notify you that your free trial is over.

Would you want to go ahead and continue using our services

if you say yes, then they would charge meanwhile,

they won't charge you

so you can stay relaxed and you can actually go ahead

and give you a credit card or debit card details,

but just make sure

that you set an alarm and once your free trial gets

over you kind of either revoke your exes or go ahead

and continue with the paid services

that it abuse has to offer to you.

So what does this re-tear has to offer to you?

Basically, let's take a look at those.

Well firstly we have compute Services

when you talk about AWS and Name a few we have ec2.

We have Lambda

which are popular Services now easy to is something

like a raw server

where you can actually go ahead and post our websites

and applications.

It is very popular.

And if you want to use it,

it obvious gives you 750 hours per month for free.

Then you have some service called as Amazon quick set

which is basically an analytic service

and I won't get into the details of what it does basically,

but you have a space of 1 GB available to you

that is nothing but spice capacity basically again,

I won't get into the details because I want to Stick

to the surface as far as the session goes,

then you have other services like your database service,

which is an RDS.

You have your storage service, which is S3 Amazon Lambda.

Now Lambda is another compute service

which is similar to your ec2.

But ec2 is more of a place where you can host a websites.

Where as Lambda does not let you host a website.

But yes, you can definitely go ahead and do a lot

of background application work.

When you talk about AWS Lambda

apart from that database also provides with various videos

that talk about how do you want to go ahead

and get started with using this?

Sosa's how to create an account

how to create instances and all those things.

So this was about the free tier let us

kinda move further and see how the console looks like.

You can actually go ahead and create your own instances.

You can do a lot of things.

So this is

what the different services that a device has to offer to you.

You have your compute Services developer tools machine learning

and I'll takes storage database Services.

You can actually go ahead and use these

on your own you can go ahead

and create certain instances here now

once you click here oniy Easy

to you get to see the number of instances

that are active

the security groups that are there the keep is

that you have let us see or take a look at an instance.


I would tell you how to create one.

I won't create one myself

because I have certain ones running already.

I would just walk you through how the process works.

When you click on that launch instance.

It will give you options

in what kind of an instance do you want to create

so you can actually go ahead and pick the one

that suits your need based on the OS you're using

and stuff like that

since I'm using a Windows.

We'll be picking one for Windows and I would be using the one

that is freely available to me or eligible for my free tier.

So when I say select I see that a free tier eligible T2

micro instance is available to me.

I can either click

on this and directly go to the final step of creation,

or I can take a step by step approach.

That is if I want to modify it.

I can go ahead

and given these details as in the number

of instances my purchasing options Network subnet

auto-assign public IP and all those things.

So let's click on next

and we can also also put in these details,

but I'm going to stick to the default decisions

or the selections.

You can also go ahead and configure your security groups.

I would talk about that as well.

Do not worry and finally it would say do you want to remove

and launch it?

Once you click on this you would have a new instance they

would be couple of statistics

and you'd have your instance available

for use to give you an example take a look at this

as you can see.

I have two instances running and the security checks are done

and I can actually go ahead and do a lot of things with it.

I can actually go ahead I can connect to a server.

Again have my security group security policies.

And when you have an instance,

you can do so many things for hosting a website

and the other things that are there now,

I just mentioned keep are values

and I mentioned security groups.

Now when you talk about the key pair it is nothing

but an authentication process that lets you use your instance.

It is a verification process.

Basically it varies

when you talk about using it on your Linux and using it

on your Windows Windows,

you would need it for an external login as far as

when you talk about Linux you'll have To go ahead

into your terminal and generate those SSH

or your secure server Keys basically

or secret selkies rather

and then log into your website

and then go ahead and use it on your server basically.

So this is what happens.

So that is something

that you called as a keeper value

when you talk about AWS a keeper value once

created it is unanimous or it is not unanimous rather.

It is primary

to a particular instance and you should not lose it

because if you do that instance becomes useless for you,

so You have to make sure that

once you create a key value pair that key value pair it stays

with you and when you do try to connect to a server

that keeper value or its value is available with you

so that basically you can switch to your server

and connect to it.

And then you have something called as

your security groups as well.

Now if you come down here you can go ahead and set

in your Security Group policies.


Those are you can create a new security group

and you can just go ahead and add rules as in what kind

of security policies you want.

Say, for example, you have your HTTP https now

if you're using Windows,

you'll be needing our DP and those kinds of rules.

You can go ahead and select a source you want to

and accordingly you can set in your security rules.

Once you create on click on create you'd be having

your Security Group up and running for you

and you can like stay assured

that your so-called services are more than secure here.

So yeah, this was about Amazon web services

and how its interface looks like then you have

something called as your gcp now gcp to has a free.

The only difference is gcp gives you an a balanced amount

as in say some amount of US Dollars

and you can the services are paid services,

but you can use this balance to go ahead and use those services.

So it pans out to similar approach

which aw stakes in but if you talk about their pricing,

aw charges you on hourly basis,

whereas your Google Cloud platform charges you

and second basis.

So it is more affordable.

Say for example,

you stop using a particular instance at two minutes.

You'll be charged.

Only for those two minutes,

but if you stop using an instance for two minutes

in AWS would be charged for a complete are

so that is the difference between the two as far as

logging in is concerned again,

you'll be going ahead

and giving in your credit card details here as well.

The difference is here.

You have to make sure that you do not enable your billing

because once you do that, trust me,

you're going to end up paying a lot of money

because I accidentally left few instances open.

The last time I logged in

and I was charged Hefty live without me being noticed.

When you see a button missing that enable billing make sure

that you use it carefully

because you do not want to be charged for something

that you are not using.

So when you talk about gcp this is

how the interface looks like.

You have all the services here as well there you

had your computer services

you have you have your compute engine basically

and you can to come here and create your instances.

You can click here and you can go ahead

and go through the process of creating your instances,

but I won't be creating

an instance as far as you are gcp is concerned

because I've given you a reason already.

I'm happy working with AWS for now.

This is your dashboard

where you get in all the information as

in whatever is happening as far as your account is concerned.

So this is one of the accounts managed by a person I know

who works with me and the certain projects

which he has gone ahead and created.

So it's the information for those details are the details

for that project basically

and then you have something called as

your Microsoft Azure now,

I won't log in and get into the details.

But yeah it to provides you with similar services.

So is this what about the different cloud?

Riders that are then the market and I just wanted you

all to have some understanding as in how do these things work?

And what do these Services have to offer to you?

I hope this is clear to all of you.

Why a Microsoft is your why are you guys so interested

in Microsoft with yard.

Now one thing is

that Microsoft is your is actually becoming pretty big.

I mean the cloud leader on papers.

It is AWS right now,

but if you see the growth with that has been happening

in the past few years Microsoft is your is actually coming

out pretty big.


So and that is the reason if you look at this graph,

there are the job opportunities for Azure has been on a rice

and that is like this is the primary reason

that you guys want to learn about Microsoft with your

because obviously you want to make a career shift

into the cloud industry, right

and for that availability of jobs should also be a factor.

And if you see the graph this graph is has actually

been taken from,

right and as you can see the graph is rising.

So if you see as 2014 it was around .01%

in the mid in the late 2016.

It's reached around .09 it came down to a fault.

But then again it is at a right.

So this is apartment that you see but

if you take my advice

because I have seen the industry as far as I know these jobs.

Are going to increase multiples in the future as well.


It's not only restricted to is

or if you talk about AWS if talk about any Cloud technology,

it has become imperative for you to learn about Cloud

because it is the thing everything in the next 10 or 15

years is going to be on the cloud right any company

which is still on its own for my servers will move

to the cloud one day or another

because that is inevitable

that Is something that has to happen

and that is the reason it becomes very important

for you guys to skill up

to the cloud level right now talking about

is your like I said,

so jobs are increasing every day jobs are there for you?

So what needs to be done from you guys is prepare

for the exam.

That is therefore Azure give that exam get

the certification get hands-on experience and get the job.

This is the course.

This is the path

that you should have for taking a cloud computing roll.

Right having said

that so that is this is the reason why we learning

about Microsoft Azure today moving on.

Let's understand what Microsoft is your is

exactly so Microsoft is your is a growing locations

through Microsoft's Global Network of data centers, right?

So by using the Microsoft infrastructure,

you build deploy and manage applications

on the has your environment and Like as you're like I said,

it's a cloud provider.

It provides you

the cloud services you're using those cloud services,

but those cloud services are actually

on the Microsoft infrastructure.

And that is what you are paying them for right?

So, this is what Microsoft Azure is all about guys.

Now, let's see a use case now that is My Philosophy is

that rather than doing all the theory first

and then going on to the Practical I

would like to follow the reverse approach, right?

I would I'd like to begin from practicals

because that is

what your exam will be based on your exam will be based

on real-life example

that you based on real-life scenarios Lou

based on what kind of Hands-

On knowledge you have in your as your domain.

All right,

and that is the reason every session of ours will have

a use case through which we will try to analyze

how we can implement it in the cloud.


So this is your first use case.

This is kind of simple guys.

So please pay attention.

So we are trying to make a website

which is something like this.


So what happens here is you have a set of images

and these images are actually being played in the background.

And in this website,

you have a functionality to upload more files

to the cloud and once you do

that those files will automatically be added

in the slideshow and we'll start running.

Alright, so this is our use case

and we have to implement it on the cloud.

So there are two stages in the way.

We are going to take this use cage the first stages.

We're going to apply pure logic, right?

We are going to understand

how we can actually deploy it on any cloud service right?

Not only does your butt any Cloud platform

if it is out there,

how can we implement this use case?

So let's see

that first and after that once you have understood

that will try implementing it in as your so first.

Let's see how We will implement this in a general scenario

by pure logic.

So your user base will be accessing the internet right now

when your user will try to access the website,

he will enter the website name, right?

So all of that traffic will come at this point,

which is called a load balancer.

Now, what is the load balancer a load balancer

is basically a service

which distributes your traffic equally

among the server's running at that time.

So say there are

like five servers running your website then and

if traffic is coming on to your servers

that traffic will be distributed

among those five servers by the load balancer.

So the job of the load balancer is to distribute

the traffic equally among the service, right?

So this is what the load balancer is all about.

So your user base

from the Internet is trying to access your website.

So the traffic comes to the load balancer

and the load balancer separates

or Segregated traffic

into equal proportions and give it to the server's right.

So once the traffic comes onto the server's the server's

process the request and if you talk about our website,

so our photos are actually stored on a file system, right?

So whatever files you are uploading

or whatever files are there,

which are already been uploaded there on a file system, right?

So it will access that file system for fetching those files,

but our servers they don't know.

What files do we want?


What is the like say,

for example, I upload a file and before uploading the file.

There were three pictures running in the background.

So my server should know

what are those three files that I have excess right?

There should be a list of those files

that the server has to play in the background.

Now that list of files is actually stored

in a database, right?

So what my service will do is it will first get that list

from the database right?

And once it gets at least it will fetch that.

List of files

from the file system say there are around five files

in the database.

So my server will interpret the addresses of those files

from the database

and then it will call the file system and get those addresses

or get those files from there and Fry to show

that in this slideshow in the website.

Now when we upload the file,

what happens is first your database is updated, right?

So whatever file is being uploaded to your servers,

that file is Renamed

according to whatever parameter you have set

because it has to be unique.

Right each file has to be identified

with a unique name, right?

So it renames that file to that unique name

and then store it on the database

once entry has been made on the database then

it gets uploaded onto the file system.


So guys, this is the architecture

of your application just as the logic

that will be following today.

So let's try to implement this architecture has

your nose Understood how we can actually architect this use case

in a general way.


Let's see how we can implement it in the has your environment.

So in the Azure environment the servers

that you're trying to implement is actually

provided to you by a service called the app service.

What is AB service will be discussing

in the further slides.

Then let's talk about the load balancer and auto-scaling.

So the load balancer

is actually implemented by the has your load balancer

and auto-scaling, right?

And having said

that then we talked about the database.

So database is the mySQL database

that will be using in Azure and then you

have the file system

which is called blob storage in your what are these Services

you might be confused.


What is your load balancer?

What is the app so is what is mySQL database?

What is blob storage?

Don't worry.

I will explain everything to you in the coming few slides.

So let's go ahead then.

So these are the services that you'll be using in a jar.

Let's go ahead and understand these Services one by one.

So let's talk about the app service first.

So the app service is basically a part of the compute domain.

All right,

and in the compute domain you have a lot of sources,

but why are we using the app service?

Let's understand that.

So there are basically three kinds of services

in the compute domain

if you talked about in a very broad sense.

The first service is called the virtual machine.


What is the virtual machine a virtual machine is just

like a traditional computer.

Now that you have in your in-house data house.

It is a computer that is accessible to you

and you can do anything with that computer

where you have all the rights to that computer.

All you have to do is basically

what you will do with a virtual machine is you will say

that I need this much RAM.

I need this much storage and I need this much configuration.

Please give me a computer.

So as your will create that virtual machine for you,

right and it will give you the IP address

and the password for that machine.

What you can do is by remote desktop connection.

And you can enter that IP address and the password

and you will be able to connect to that computer.

Now, once you connect to that computer,

it is your computer annoyed you have the access

to the user interface.

You can do anything on this computer.

You can make it a website server.

You can make it a worker to your environment.

You can use it to for image processing right?

You can do multiple things on a so I like you

I might be doing on your server as well.


So this is what virtual machines is all about.

You can configure it to Become anything.

Our next service is called the app servers.

So it is a basically an automated version

of a virtual machine,

but with limited possibilities

when I say limited possibilities it is this service is actually

very more focused.

Right so app service.

Basically, it doesn't give you the access

to the user interface.

All right, but that gives

you more simple interface to deal with because

if you want to host a website

in virtual machine you would have To configure

the virtual machine you would have to configure the firewalls.

You would have to install the necessary software

like say for example, you have a PHP website, right?

So you would have to install PHP software

on a virtual machine

and then you would have to copy

those your website files or the files

that you have coded into a specific folder

and then you would have testified the configuration for

your firewall and everything.


So there were a lot of things that you had to do

in your virtual machine with app service.

You don't have to do anything.

Then you just have to specify what language you want.

Say, for example, I want a PHP website.

So I'll select PHP.

I'll do next then last me what kind of configuration

of servers I want.

I'll specify the configuration.

I click next and that is it.

My website will be deployed automatically.

It will ask me to upload the files.

I'll upload the files.

It will automatically send it to whatever folder it is required

and this done right?

So this is the part of app service right?

It is more automated

because the Pitching machine everything had

to be done manually,

but with app service everything happens automatically.

I just have to upload my files, right?

So this is what app service is all about.

So, like I said,

so app service is basically used to deploy an application.

All right, you cannot do anything else with it.

You cannot use it to process

a customized workload or something like that.

You can just use it to deploy an application

and that is why it is called an app service Right

Moving On

Let's Talk.

Talk about functions

of functions is basically a very new technology.

It's called the server less architecture it basically

what it does is you don't have to specify the configuration.

You don't have to specify anything.

You just have to upload your code

and it executes it for you,

but it will not deploy any application for you.

For example, you want to host a website.

It's not do that.

It just does processing in the sense.

It will only do background tasks for you.

For example,

if you Have let me take an example

which uses both these Services.

If you have say an application like Instagram, right?

So user uploads His image on your application.

And then your application

has to store that image now before storing that image.

Maybe you want to compress the image or you want

to apply a filter to it or whatever, right?

So from your application the file is uploaded.

And now these many tasks have to be done

if these tasks are actually configured in your code,

which is Actually uploading the file as well.

It will actually increase the overhead on the server

which is hosting an application.

But what we can do is

the way things happen today is everything is distributed.


So from your application only the file will be uploaded.

Once the file is uploaded.


The tasks will be the tasks like renaming the file

or compressing the file applying the filters.

Everything will be done using the functions.

So the function will get invoked whenever the file.

Is it uploaded using the app servers

and the function will execute all the tasks

that have to be done on that particular image

this reduces the overhead

on the server which is hosting your application.


And you have your background tasks will be implemented

by a functions

and then will be stored in the respective file system.

Whatever you have coded your function to do right?

So this is basically the difference.

So recapping again

virtual machine is basically a computer you can configure it

to anything you can actually we use app servers

in a virtual machine Mallory.

For example, you want to deploy an application

you can use it by configuring a virtual machine, right?

You can also use it as a function your virtual machine

that I mean to say

as in you can configure it to only execute background tasks.

But the thing is you have to configure everything manually.

If you want an automated version you can go

with app Service app Services used to deploy an application.


But if you are use case is

not about deploying application you want to do some raw?

Searching you might as well hop for functions,

which is a service

which is not used to deploy an application

but is used to execute background tasks.

All right, so guys a doubt and whatever we have discussed

like we discussed virtual machine.

We have discussed app service and we've discussed functions.

All right.

Like I said,

we are using the app service why because we are deploying

a website, right?

So for deploying a website, I need apps away.

So it cannot be done using

functions can be done were doing virtual machines as well,

but it will need a lot of manual work

and our job is to make everything faster

right cloud computing is all about speeding up things.

The speed of implementing is increased right so

I rather use an app service

and upload my code on the Service

and it will deploy the website from right

it's that simple guys.

Let's move on to the next topic of today's discussion,

which is the blob storage.

So the blob storage is basically the file system

that you need to upload your files, right?

You definitely need a file system.

There is no alternative to this.


So your blob storage is the place

where you will be storing your image files,

but why did we choose the blob storage

by not some other service from the storage to Maine?

Let's discuss that.

So in the storage domain basically,

you have three kind of services you have more services well,

but these are the three main services in the blob

in the storage domain.

You have the block storage.

You have the Q storage

and then you have the backup, right?

So the block storage is

like I said is a file system on which you can upload any kind

of file, right?

And that's about it.

There is nothing more to blob storage.

This is the thing next is Kyu storage Secure Storage is

basically a queuing service

whenever you have to synchronize tasks.

For example process one has to be done before process

to and process to help it to be done before process 3.

So what you can do is you can bundle these tasks

in a sequential Manner

and you can add it to the queue storage.


What the queue storage will do is it will actually hold

these tasks according to the sequence

that you entered, right?

And whenever the queue storage

is accessed it will give them only the first task

now the second task is the third task first.

So the way It functions is like this say for example,

like I said the image processing application.

I want to rename file first there won't I

want to add filters

and then I want to store it on the file system.

So these three tasks I will write it down

and I will add it into the queue storage now.

See these tasks will be done by my functions.

All right.

So what functions will do is it will try to interact

with Q storage and last for a task, right?

So Q storage will give the task

to Functions in a very sequential manner in the sense

that it will first give it the task to rename the file.

So it will rename the file.

Once that task is done.

It will again try to xsq storage

and then cute store has been given a task to filter the image

or apply filter to the image,

right then we'll apply a filter to the image will be done

with that and then it will try to again the to storage

and then it will see

that okay now it has to store that file in a file system

which is specified the code right and it will pick that task

do it.

It and be done in the first file

and then it again XS Q storage in the process goes on.


So basically Q storage is used to give a sequential manner

to the processes

that are trying to execute having said

that this is a work queue storage then comes back up.

So backup is a service

where in you can store your in frequently accessed data, right?

What is your in frequently accessed data could be

for example in my company.

We take a record

of everything right we take our Out of every class

that we do we take a record of every query

that you guys raised now

save the classes

that were taken say like 2 years ago,

right and as obviously I cannot delete those classes

because they have to be kept for record.

But what is the point of keeping them on my life hard drive

because my life hard drive is where I do.

My current tasks, right?

So rather than keeping it on my life hard drive I say, okay.

Let me keep it in a CD

or a pen drive and keep it somewhere

where I can take it out when I actually need them.


So this is the concept of taking a backup now similarly.

If you want to take a backup in

as your say you have your virtual machine

and you have stored a lot of files on your virtual machine,

but you think okay.

I don't need these files anymore.

Or maybe I don't need you file it as of now,

I might them need them later.

So why do spend that much on the stories

that you're taking on the virtual machine right

rather than storing the in frequently accessed data.

Why not put more frequently exist.

So what you can do is the in frequently accessed data

that you have in your machine on the cloud.

You can actually take a backup of that and store it

in the backup service.

Now, why will you store it in the back of services?

Because storage is more cheaper

when you talk about the backup servers

because obviously first of all,

they'll use magnetic tapes or they'll use ssds

or something like that to store your data now,

why is it cheap is

because obviously it has a downside

that the response time of the time to retrieve

the files from a backup service is obviously more.

For example,

if you are stored everything in your virtual machine,

you can like go

to that particular folder access that file and that is it right.

But if you have stored in the backup service,

the retrieval actually takes time,

but it is worth it

because you don't use that file every day, right?

You won't be using it and also you're paying less

so it doesn't pinch you that much

because you're paying less and you are not using that file

very Yes, well,

so why not put it in the backup service?

So this is what the backup service is all about.

Now today in our implementation.

We are using the blob storage for obvious reasons

that we I want to store my image files, right?

So I not store it on the back up obviously

and not show it in the queue storage

As Told in the blobstore it

because that is what that service is meant to do.


The next service from Azure is the MySQL service from Azure.

It is basically a MySQL implementation on the LG.

Our infrastructure was right, so you Can use any database

you want another you have an SQL service,

which is purely SQL.

So if you're comfortable with that, you can use it.

I am using MySQL for my use case today

because that is

the way I have quoted my application to be right.

So it is just personal choice.

The next service

that we are going to talk about is auto-scaling

and load balancing.

So like I said load balancing is when you want to equally

distribute your Among the number of servers

that are running that time

and auto-scaling is actually scaling up the number of servers

that you're using according to the traffic

that is coming onto your website.

So you can actually set a metric

that so many obviously when more traffic is coming

onto your website your CPU utilization will increase

because you have to process more requests now.

Yeah, so your server will be processing more requests

and that is the reason your CPU usage will He's so

you can actually set a metric.

Let's say my CPU usage

when it increases 60 or 70% increase one more instance

or increase three or four more inches high.

So it is based on your personal use.

So this is what order scaling is all about.

And obviously when you using Auto scaling,

the number of servers is changing constantly,

you need a load balancer along with it,

right the load balancer

so that say you have six or seven servers

which are running right now and say the traffic decreases

and it sees okay now

the sea Utilization is going down.

So it will reduce the number of servers.


So when it will reduce the number of sources do load

balancers should identify.

Okay, though.

They were seven servers before now there are like three

so you'll be Distributing

the traffic according to those three servers, right?

So the load balancer actually pays a very important role

in the order scaling process having said

that so this is how all this killing actually works.

So say you have one server,

right and the usage increases it goes on to become two servers

and then again the usage increases

it becomes 3 service right now

when the users decreases these three servers

can be reduced to one server

or can be reduced to so

so this is a diagram representation of what

or scaling is.

We talk about load balancer.

Like I said,

so load balancer is a very crucial part

of Aura scaling process

because load balancer is the part

which actually distributes the traffic according

to the number of servers that are running at that time.

All right.

So this is how the process Smokes the traffic comes on

to the load balancer and the load balancer sees

how many servers are running

and distributes traffic according to that.

All right.


So we're done with the services.

These are the services that we'll be using today.

So now we will see

how we can launch these services in the has ER user environment.

So guys will talk about the Apsos first.

We'll see how we can launch an app service

in the as your UI.

Okay, let me show you the user interface

for a year now.

So guys this is

how the user interface for as your looks like.

You have all the services listed here on the left side.


And this is the dashboard.

This is called the dashboard whatever Services you launch.

You can pin it here

for basically getting accessed quickly.

It is just like a desktop on your computer

which has all the shortcuts in everything and this

is what the dashboard is actually used for.

All right.

Having said that let's see how we can launch the app.

So In Azure,

so first you will click on app Services

as you can see from here.

You can click on app services and moving ahead.

Once you have clicked on app Services.

You will reach this plate click on create app services

and then you'll click on web app and that is it.

Let me show you how you do that.

So you'll click on app Services click

on create app Services you go down click on web app.

And over here as you can see after this,

you will reach the screen when you will see

that you have four options.

You can either code your website PHP node.js or python.

So if it is either of these four languages,

you don't have to do anything.

You just have to upload your code in this web app

that you'll be creating

and your app will be deployed automatically without installing

any software without doing any configuration Justice, right?


So once you have reached this page You will click on create.

So let's click on Create

and then you will reach the screen.

So now you have to give your application some name.

So let us give us this name as in Eureka -

0 1 so see that everything is fine.

So this subscription

is pay-as-you-go Resource Group is something

which you can create or you can use existing.

So Resource Group is something it's a group

of all the resources, right?

So if you put

if you are it will be creating a storage.

Count will be creating database account.

We are creating an app.

So it's right.

So all of this will come under one group.

It can be clubbed in one group

and will be called as resource for any changes

that you want put

across the group you can do to the resource Group.

All right, we'll be discussing in detail.

What a resource Group is in the further modules,

but for now all you should understand is

that a group of resources is called a resource book.

So if you have an application

and just utilizing say three or four resources,

it's better to put those resources.

Under one group.

All right.

So this is about that.

Then you have the app service plan.

So app service plan is something as in what kind

of computers you use and everything.

So let's create a new plan for you

so that you understand it better under the pricing tier.

This is the main part that you have to select guys.

You can select the app service plan it can give it some name.

Let's give it as a service - 1.

All right, and this is my app service plan.

You can select what kind of plan you need.

Let me see.

Like the basic plan as of now and click on select right

and then click on OK.

So this was about Apsos plan.

You can click on application insights

which basically gives you the monitoring tools for now.

Let's not discuss it.

Let's not go into it.

We'd be discussing it later.

And now let's click on create.

So I am taking the PIN to dashboard

which will basically create

a shortcut on a dashboard to this application comes in handy.

And that's it guys.

You will click on create.

Alright, so now my application is being created.

Okay, so all right why my web app is deploying.

Let me go back

to my slide and let's jump onto our next service

which is blob storage.

So like I said blob storage just like a file system.

You need a file system to show your files, right?

So that is what the blobster is all about.

Let's see how we can create a blob storage instance in Azure.

So you will reach this is the dashboard you

reach the screen.

You will click on storage accounts.

Once you have clicked on Story the council click on ADD.

And that is it guys.

Nothing much acquired.

Let's go ahead and do this I go here.

I'll click on storage accounts.

I will reach the screen

and click on ADD and I will start entering the values.

So let's give it the name called Eureka -

0 1 so this is taken.

Let's give it a name as well as your I do.

Write this name is available.

All right, the performance should be standard

because this is a demo replication is not required.

So I'll say locally redundant Storage storage service

encryption should not require secure transfer is not required

and subscription is pay-as-you-go.

Okay Resource Group.

Let's select a director -

0 1 because this is the resource Group that I selected earlier,

right and let's pin it to dashboard.

click on create Alright,

so my web app has been deployed already

and my storage account is also being deployed.

All right, so this was about it.

Let's go on.

Let's see for our MySQL.

So for MySQL, let's see what all we have to do.

So we will click on you.

We will click on databases

and then we'll click on as your database for MySQL.

All right, and that is about it.

Let's go back and do that.

So we'll click on new.

The search for as your database.

for MySQL All right here

this so I click on this

and I'll click on create.

So here it is.

I have to enter the server name.

Let's enter the server name as Eureka -

0 1 it is available.

It's good.

The resource Group should be the same.

So let's select a riruka - 0 1 so admin login name.

Let's give it as any Rekha password.

Let's give it any Rekha one,

two, three, four confirm the password and Eureka one,

two, three four,

and it is asking me some special characters

or let me add the special character as well.


So basically you

cannot have the login name and your password.

So let me change the password to add you one two, three,

four exclamation same in the confirmation.

All right.

So this is available.

Now the location sounds introduced version is

5.7 pricing tier.

Let me see if there is something more or less.

All right.

I think this I click on OK.

Bennett dashboard and click on play.

It's pretty simple guys.

You would know when you will do the Hands-On on yourself.

So the pricing tier can be the minimum

if you are using it

for demo or if you're creating an application,

which is for global scale application huge can choose

the pricing Theory according to that.

Alright while it is deploying.

Let's move ahead.

So let's come onto the auto-scaling part now.

So basically we have to configure our web app

to order scale as and when required It so let's see

how we can do that.

So let's understand the types of Auto scaling first.

So basically there are two types of scaling one is called

horizontal scaling and one is called vertical scaling.

So horizontal scaling is when you are increasing

the number of servers that you require say,

you don't have an i7 server.

For example.

All right.

Now the usage goes up

so you take to i7 servers and if it again goes up

you take 3i7 SOS, right.

So this is what horizontal scaling is all about right?

Let's come onto vertical scaling now.

So vertical scaling is

when you are increasing the capacity

or the configuration of your system say you

were using an I3 system before right the traffic increases.

So now you're using an I-5 system the traffic increasing

now you're using the i7 system.

So you are having only one machine

but you're increasing the configuration

of your system, right?

So these are the two Types of scaling which exists

in auto-scaling also the other way is manual scaling

so you can also manually scale up your

in the number of instances

or the configuration of your system.


So the way to do

that is to manually go into the service change

the pricing tier and you are said this is

how you manually scale auto-scaling.

I'm going to tell you in a couple of you slides.

Also guys when you are auto-scaling like I

said load balancing is Quickly attached to it.

Alright, so when you would be orders killing in a web app,

you don't have to configure the load balancer.

The load balancer is configured automatically

and said automatically for you to be used right

because it doesn't make sense to use or scaling

and not use load balancer.

And that is the reason

as your has automated the process of attaching

a load balancer

when you using orders Right Moving ahead guys.

Let's see how we can launch this instance.

So guys first you will click on app Services.

You will go to your particular.

Instance that ER have launched you will go to scale out

and you will click on enable auto scale.

All right.

So let's do that.

We will go to app Services which is here.

So this is my instance.

I have launched I click on idea raiga -

0 1 I'll go down.

And as you can see I have two options.

I have scale up and I have scale out

when I click on scale up.

You see the pricing tier

so I can increase the configuration

of my system right?

But this is not about what I want.

I want to scale out

which is I want to increase the number of instances

running right now, right?

So so it says Auto scale is not supported

for basic chair of web apps.

Okay, so let me change my configuration.

Alright, so if I go to scale out now,

you can see

that I have the option to enable auto scale.

So I will click on enable auto scale

and then let's give it a name.

Let's give it a name as any Rekha Auto.

Alright, so my auto scaling property name is Erica Otto.

The resource Group is a Eureka - 0 1 right.

So now you have an option to Scale based on a metric

which is based on some statistics.

Like the CPUs is or the memory usage or anything.


And the other one is scaled to a specific instance count.

So for example,

whenever the traffic increases say you were one instance now

like increased five instances.

All right.

So these are the two options will go with Scale

based on a metric and scale out in scale in your instances

based on Metric.

All right.

So let's add a rule.

Let's add the rule as in what we want.

What kind of metric do we want to?

Monitor and scale according to right?

So as you can see the time aggregation

is not something we should be worried about.

Okay guys, so these are all the metrics

that you can actually monitor and scale according to you

can scale according to the memory percentage.

You can scale according to disc, uh dpq data in and out, right?

So let's for now keep it simple

and scale according to CP percentage right time.

I'm is not something you should be worried

about and the operator.

All right, so what should be the condition

so should it be greater than or should it be greater

than or equal to let's keep it at greater than or equal to.

So whenever the threshold is greater than a whenever

the CPU Z will go greater than or equal to 70 for 10 minutes

so you can set this as say two minutes, right?


Let's see.

It says that it should be between 5 and 7 2000.

Get let's keep it at five increase count by.

So let's see what our options we have here.

So you can increase by percentage.

You can increase by count to as in if you were one.

You can increase it to 10,

right and you can decrease the count

or you can decrease the person by as well.

Alright, so when you are auto-scaling guys,

you have to set two rules one is the rule to increase

R. Obviously one rule is there to decrease

so whenever the traffic goes down you have to decrease

Reese your instances as well.

So for now we are setting the increase rule so let's set

the increase count by option.

So how many instances

should increase I think one is a fair number

and cooldown is something that is actually there when you are

say you are asked you right now,

right and then say you order scaled one minute back.

And again the CPU usage goes up.

So rather than going on and Filling up again.

What you can do is you can wait for 5 minutes

and watch the metrics right

because it doesn't happen in a second

that your CPU usage will go down

because there are a lot of services

which are actually running right

so you can beat once your new server has been deployed.

You can wait

for the traffic to be transferred

to that server as well.

And then you can see the metrics go down right for that.

We keep something called cool down minutes, right?

So we have the default is for Five,

let's keep it at five only

and now this is it guys.

There's nothing else to configure.

Let's click on ADD.

Alright, so as you can see, this rule has been said,

let's add one more rule to decrease.

So the CPU percentage is fine.

The operator should be less than or less than right.

So whenever the threshold is less than 50% Decrees count

by one instance and let the cool down be this much.


So again, the cooldown logic goes here as well.

Say you decrease an instance.

And again your CPU is still low

because it takes time for your traffic

could to get transferred to the server number.

It has the keys down to right.

So let's keep the cooldown in it.

So we'll click on our now.

All right, so we have added the auto scaling group.

Hello guys.

This is a there's nothing much to consider.

Actually, if you think about it, it's a very complex process.

But as your has given you

the Simplicity to do it very simplistic

or a very English manor

because you just say like I said

if the CPU is above 70% increase the number

of servers by one, right?

So if you go here and if you don't know

about auto-scaling you can actually figure out

what is happening,

right and same is the case with scaling.

So whenever your CPU

is less than 50% Decrease the count by one, right?

So as you can see you can actually read it here

that this is what we have configured.

All right, so let's save this now.

Alright guys.

So this is how you order scale your web app instance now,

since we are doing a demo guys,

we don't require the order scale module

for my application.

So I'll just discard it for now

because I can't even demonstrate this to you.


So I just showed you how you can order scale.


Let's go back and see what all is left.

Alright, so now we are going to do the demonstration.

So we have launched each and every service we

have launched the Absolute we have launched a blob storage

and we have launched a MySQL for yard right now.

Let's go back and check and deploy our website.

So let me show you

how the website looks like in my local host.

So my Local Host is this alright?


So this is showing me an error because as of now,

my code is not connected to my has your instances.

All right.

So let's first configure our instances.

So let us go

to the dashboard and let's first configure a database.

All right now for configuring your database.

The first thing

that you have to do is connect to it right.

Now the way you can connect to it is using

the command prompt for that.

You have to click on connection security.

Now you cannot connect to your database just like that.

You have to configure your IP address

in the set of rules

that are there for the fireball of the database and

when your IP address is listed there then you can connect

to the database.

Let me show you how let me show you

that you cannot connect as of now.

So I will launch the command prompt.

I will go to my MySQL installation.

All right.

All right.

So this is my my actual inflation guys.

So I will type in the command MySQL -

etched pace and then the server name

which is this I patient here.

All right, then I will give the port number.

So the port number is - capital P guys.

Don't forget its capital P.

It's different than small P right small piece

of password capital P is for the port number

and then I give the user name.

So the username is this.

Patient here, right and then I will type

in the password and hit enter enter the password,

which is Nu 1 2 3 4 exclamation

and enter see as you can see client

with IP address is not allowed to access server.

All right.

So now what I'll do is I'll go to connection security.

I will add my IP and I will click on Save.

So say successfully updated connection security.

Let's go back

to our Command Prompt execute the same command again type

in our password.

And now as you can see,

I have successfully connected to my database now,

I can create a database here called anyway car.

Let me create a database.

Let me clear the screen.

Okay, so I forgot I'm working on windows.

So in Windows you cannot clear your my screen.

What a sham.

All right.

So if you are using Linux you could have just typed

in control L and it would have been fine.

All right guys, so as I was saying,

let's create a database called Eureka so create

database and Eureka.

And that is it.

Well type in use at Eureka.

I'll create a table.

Let's create a table called image,

right and title name is just one second.

My call name is name.

All right, so I've created a table.

So if I type in show tables it will show me the table name,

which is image.

All right guys,

so this is done now I have created.

The table at first I created the database quality Rekha and my -

here which is hosted on a job

and then I created a table called image in it

and the table has one column called name, right?

So this is it.

This is my MySQL.

So my MySQL has been configured now.

Alright, so my MySQL has been configured now.

Let me go back to the overview.

Alright, so my MySQL has been configured

as you can see in the databases.

It will show that there is a database called at Eureka

which had just created.

All right, let's go back.

You might have to add the web apps IP addresses.

Well, we'll do that later.

Let's go to our Philip now awesome,

so we'll go to our web app.

And guys, this is a web app.

This is the URL for your website will click on this URL

and you will see a welcome page.

This is your welcome page.

So now what you have to do is you have to upload

your code over here.

Alright, so the way you can do this is using GitHub,

or you can do it using FTP as well.

Now I know most of you are from non-technical background,

so you might not be knowing what GitHub is so for now.

What I'll be doing is I will be using

FTP software called filezilla

for transferring my files from the next session onwards.

I'll be using GitHub and for that I have actually

there is a video in your LMS,

which is a short tutorial on get up how to use get up

which is enough for a demonstration.

So you can go through that video before coming

to the next session and then we will be using get out.

All right for now.

Let's just Use the FTP software which is called filezilla.

All right.

So the way you can connect here is like this

so you have to create a deployment credential.

Alright, so my deployment credentials is HR 1.

Let's give it a password and the password could be.


Let me give as hemanth one nine nine.

All right and over here also a mint one nine nine.

All right.

Let's click on save.

Oh, maybe this usually means not available.

So let me give it a charger 1 2 so you can save

okay, let's try this again.

It sure went to all right, maybe I'm connected here.

Maybe that's why it makes it it it's him

and one nine nine four.


It's click on Save.

All right, so I get out of here,

right so later we have successfully reset

the deployment credentials now,

alright, so what we can do is I will go back to my lab.

All right, so now I can get connected to my web app.

I have to win to the FTP host name.

So it will go here one second.

All right, the hostname will go here.

The username is hr1 to password is this right?

And what else?

All right, the username is just some sorry.

The username will be this.

All right, let's click.

click on Quick Connect All right.

So as you can see,

we have successfully logged into a FTP channel so over

here you will go on site right?

We'll go on copy all your website files over here.

So let us do that.

My files are some here.

All right, so let's copy the files now.

I've came just drag and drop it over here

and the process will start now it might take a while.

So let us configure some other file

by my website is being copied.


So now what we can do is we will go to our dashboard

and we can configure storage.

Mind you guys I might have

to upload my code which in my web app

because there are some things

that I have to change in the code because the addresses

and now I'm creating new Services, right?

So I'll have to change services address in the court.

So I'll do that and then I will update the particular file

that I will be changing in in my web app.

So let me just give me a minute.


So now what I'll do is I will create a blog over.

It I create a container

and the container name shall be hello

and the excess type P container.

All right, I click on OK so I have successfully

created a container called blob.

If you go in properties,

you will see that this is the URL for it, right?

So let me show you the code for my website guys.

So this is the code for my website.

All right now I'll have to change the url at places.

So let me do that.

So it will get changed here.

All right, then my container name is hello.

So that is okay.

And now one more thing I

so whenever you are basically going to connect

to your storage account the order your blob storage.

You have to go here.

I'll show you will have to go to Access keys.

So here's a key right so you this is the connection string

that you have to include in your code.

I have copied it.

I'll go here

and I will include it in the connection string code.

All right, so I control V and over here.

You have to remove the endpoint suffix.

All right.

So this is not required.

If you put this it will not work.


I don't think anything else is required.

Yes, I have to change the database credentials as well.

So let's do that as well.

So we are storag account is set

or you don't have to change anything else.

Let's go to the MySQL.

But all right, here it is.

So the server name has to be changed.

Let's copy the server name.

And give it here.

So the host name is this.

Alright, and let's see.

So I login name is this let's put the login name here.

Boss word is any one two, three, four exclamation,

which is right.

Dima name database name is Eddie Rekha,

which is night username user table as image, which is right

and the field name is name.

Alright, everything seems fine one more place.

I have to change it.

So let's do that as well.

So let's copy this paste it here.

Copy our username.

Paste it here.

And everything seems fine now.

So now when I try to run the code,

it will run on my local host,

but it will not run on my web app.

Why because I'll tell you so I was getting these warnings


So let me refresh wait.

Let me save it.

So let me refresh it now.

Okay, one second.

Okay, CeCe successfully updated.

Let's go back and check whether it's working.

Alright, so basically you have to disable

the Infosys cell Connection in your MySQL and that would be it

if I were to do this,

alright, so now I will choosing a file

and I'll be uploading this particular file,

which is Desert.

I'll click on upload image

and it will take some time to upload the image.

And it says well done blob update complete

and as you can see my image is loading.

Let's check whether we have it

in our dashboard as in our storage account will go to 0

and you will click on blobs will go to Hello container

and you can refresh it.

And as you can see, there will be a file here,

which says 1 4 9 6 7 4 2 4 6 8.

All right, so let me connect to my MySQL now again, all right.

Just give me a second.

I will type in my show -

Edge and then the username So this is my host name guys.

So I'll copy The Source name paste it here

and then my port number which is 3 3 0 6 my username,

which is this I pasted here and then password

which is as of now this Eddie one, two,

three, four exclamation.

Thank you termination base.

I use the ddps

that I've created select table and I will show you

the record now.

Let's compare it with what is there?

It's wonderful 9 6 & 4 2 4 6 8 and

it's 1 4 9 6 7 4 2 4 6 8.

So guys as you can see the same file has been uploaded here

and it has been mentioned here.

So what my website is now doing is it is basically Fetching

the file from my database

and then accessing the file over here in my file system

and hence displaying it in its background.

So as of now additions, there is only one image.

It is not showing the slideshow.

Let me choose one more file.

Let's upload the koala image and click on upload image.

So now when you will see

that the image which is being loaded

and if I go here and I refresh it.

I can see that there are two images now here right

and in my database as well if I refresh it I can see two images.

Alright guys.

So this website seems to work fine.

It is connecting with my storage account.

It is connecting with my database on a job.


Let's check if my files have been uploaded.

So it says okay this might take some time guys.

So let's wait because we are all set here.

We are done with everything.

We are just waiting

for our files to be transferred here and then I'll show you

how it works over there.

All right, so let's wait Alright guys,

so my transfers have finished.

So now let's check

whether my web app is working or not.


So I'll go to the dashboard.

Are you go to my web app?

And this is the link I'll click on this link now guys.

Like I said,

you have to add the IP address of the web app

in the MySQL as well.

So when I go here you see an arrow, right?

And now like I said,

we have to send the index file again,

so I delete the index file from the server from here.

All right, copy the index file again

because it's been updated.

All right, and now I will refresh this.

So as you can see it says the IP address is not allowed

to access the server.

So what we'll do is we will copy the IP address.

We will go to our database were connection security.

Alright, so here we are will select the web app

give this therapy and the ni P.

All right.

So let's get rid of the spaces.

And this is it now we click on Save.

Now, why are we doing this?

We are doing this because here we got an error

that this IP address is not validated with the MySQL.

So we have added this IP address

or where it says successfully updated security settings.

Let's refresh it and check.

Okay, awesome guys.

So now my website is working.

So I have successfully updated my website in the web app.

All right, and I didn't have to configure anything.

I didn't go to the UI.

I just transferred my files and my website is up and ready.

This is the address

which is being used to get to the website.

All right, so guys this was the demo.

Let me get back to my slides.

So let me recap what I did.

I configured my app service with the code.

I configure no MySQL with the IP addresses

of my own computer to configure it and the IP address

of my app service

so that the app servers can communicate with mySQL.

I configured my blob storage

and I configured it address in my code my PHP code

and a configured the host name

and the password for the created MySQL service

in my PHP code as well.

So guys this Is what we did.

All right having said that let's go ahead guys.

So we're done with the demo.

Let's get on with us your pricing now.

Now whatever services that we have used.

What if I tell you that you can use them for free?


So let me teach you guys

how you can do that in the as your pricing section.

So as your pricing sections has these three features.

All right.

So what the first time you register on Microsoft Azure

as a new account you first

of all get $200 worth of free credits in an account.

Now what you can do with this $200 you

can use it to deploy application as in many want.

So this is a one-time free credits that are allotted

to you on registration.

Also with these credits.

You can explore any services for free India 0

for the first 30 days

so energy or you can use these credits to be to launch

any kind of service for the first 30 days

and Of course

after you use the services,

you don't have to pay anything, right

but you might have to register your credit card with them

because that is how it works.

They'll charge you one rupee in that

and then they will refund the one rupee afterwards.

This is just for verification purposes.

Because once your free trial ends, you have to upgrade

your plan to pay

as you go or whatever that you are looking for.

Right but the good thing about a jar is

that sometimes it happens that we start using the free?

Thing and we forget to see

that it is only valid for 30 days and we forget

that and after 30 days

if you use another Services you get charged, right,

but with a zero that is not the case with a 0

what happens is you are given a pricing tab.

It says free trial, right?

So at the end of 30 days,

it says free trial expired and you're not allowed to do

or you're not allowed to access any of your services.

It is only when you manually change your plan

from free trial to pay as you go.

That when you can actually start using your services again,

so which is a good thing by a job because you have

control of your finances in your hand, right?

You will know what you get charged for and

that is something very transparent about

as you're with that it has come up

in this is a very good thing having said

that lets go ahead and understand the two plans

which are there one plan is called pay

as you go plan and the other plan is called six months

or 12 months and so basically with pay

as you go plan.

The thing is

that you take a service or you take an instance and you use it

for one day or two days or a week or two weeks

and you pay for that amount only.

All right, but when you want a longer commitment say

for example our website right a company's website.

It's called any record orko.

So it will be there

until the company is there right?

So for those kind of cases,

it is better to go for long-term plans

because with long-term plans you get discounts, right?

So if you compare it with pay-as-you-go

if you are using Instance of it be

as you go plan for six months

and you compare it with the service or instance

in which you have opted for a six-month plan

or a 12-month plan and you have gone

through the six months the amount of money

that you're paying in that and the amount of money

that you're paying through the pay

as you go service is obviously less, right?

So the other thing is with the plan the catch here is

that you have to pay a full up front or partial upfront payment

for the six months or 12 months or whatever term

that you want the instance to be running on.

All right.


So this is the thing

that you have to kind of things you have pay-as-you-go plan

and then you have a plan

Baron you pay in future.

So it's basically like prepaid and postpaid with Prepaid.

You have six months in 12 months plan with postpaid.

You have pay-as-you-go model having said

that let's move ahead guys.

So this is the thing

that you guys have been waiting for the free things

that you get in as all right?

So the services that we use

today the app service for example is free, right,

so it is free up.

An extent that you can host up to 10 web

and mobile apps on any platform

or device in a jar for free, right?

So for more information,

you can go to this link which I have added in my slide.

So this link will take you there

and it lists all the services which are some of the services

that we have not discussed today are also included

under the free subscription.

Another good thing with Azure is the guys

that even if your free trial

ends these three things will be there for you,

right you can use these three things even

if the field trial ends these three things are there for life.

So the first 10 app services that you use in his yard,

they are free similarly with the case of virtual networks.

You can actually create 50 free virtual networks

with Jean right after the 50 virtual Network

that you have would have created the 51st would be charged

for you as one virtual Network.

It is again a cool thing, right?

So Gob servers and watching it,

but like I said,

there are other services as well.

One, two, three, four, five six six in all

which are free.

When has your for a lifetime.

So there are some restrictions like for example

in app service you have you can only run 10 app services

for free similarly.

You have these Services as well.

Alright, so this is a cool thing

about Asia that even of the field trial ends.

They give you free services having said

that guy's okay,

so that brings us to the end of our session.

So today in this session

will be understanding Microsoft Azure storage components.

All right, so let's go ahead and see what is

our agenda for today.

So we'll start off by discussing.

Why do we actually need storage?

All right,

and then we'll move on to the question

which is frequently asked

that when do we use storage

versus when do we use database right after that?

We'll move on to see the topic of the day.

Which is what is as your storage

and then we'll move on to discuss the components

of azure storage and towards the end.

We'll be doing a Hands-On on each and every service

that will be learning today.

All right, so guys,

I hope the agenda is clear to you.

I welcome you all to the live session any doubts

that you have please put in the comments section.

I am a team with me here.

They'll be answering all your queries here today.

All right.

So with that let's begin today's session with our first topic

that why do we actually need?


All right.

So for this let's take an example first.

Let's take a use case and see and understand.

What is the need of storage in today's era.

All right.

So for example,

we have an image processing application, right?

So for this image processing application,

we have given the user interface

as a website so round say a million people

can access my website and put

in their request to process their image.

All right, so we don't want the processing of the image.

To happen on the server,

which is who she met my website.

I wanted to be happening on some other server, right?

I want the processing to happen on a back-end server.

So for that we have some back-end servers now my request

for the processing will come in from website servers.

So I need a place

where in I'll be process will be storing all the jobs.

Right which can be accessed by the backend server as well.

So for that I need an entity

where I wherein I can dump in all the jobs which are there.

R which had to be done by the backend servers now,

obviously all the jobs

cannot be done simultaneously by the backend servers, right?

So say, like I said,

there are like million people who are accessing your website

at once and they put in a million requests,

right and your back-end servers

cannot process all the requests at once

so they will do it one by one right and they can do

that with the help of this entity.

They will put their will pick up a job do that job

and then go again back to the entity picked up.

Other job go back to the entity and so on.

All right.

So now when you have all the jobs in this entity,

these jobs have to be distributed equally

to the backend servers right?

Once that is done.

Once your back-end servers process all the images

which are there or process an image

which has which had some operations to be done on it.

Then the image has to be stored somewhere,

right because you have to store

the end result somewhere so you Store all the properties

like the name the location of the image everything

on the database

But Here Comes the change.

You cannot store an image on a database.

I mean you can actually do that.

But when you look at the data that an image contained it

is all randomized it is there is no structure in the data

that an image has

or for that matter any video file as

or any any kind of file has right?

So that is the reason we

need an entity to actually store this kind of data so

that the The thing

that is required to query this kind of data,

which would have been there in the case

when you would have stored your image

in the database, right?

So in that case process a lot of processing is required

if you try to query them,

so we wanted the processing power to become less

the processing burden to become less.

And hence.

We hence we wanted an entity we can do

which can actually store any kind

of file Let It Be images

Let It Be video files Etc came in storage.

So let's discuss the first case

where in we had to Oh the jobs, right?

So when storage came in now,

we can actually put in say ten thousand jobs per second

inside the storage the storage service

without any overburden

on any of the servers breed back-end servers

or beat website servers, right?

So the processing time has drastically reduced

and the jobs are now listed in the Q.

So Q is actually a service which is offered by storage.


So now what back-end servers will do is Take up the job

from there and execute it.

And once they've executed that job will be deleted

and the next job will be queued next

when we talk about this section.

We're in we had to store images.

So now any kind

of file can be stored on these storage service,

which is offered by Cloud.

It's not only limited to the cloud

if you think about it in your computer

in your own local computer

on your mobile you store some pictures

or you store some video file.

Is right and you store it inside a file system.

It is not a database.

It is a file system and it can contain all the objects

that you want to store.


Don't you do not store your objects inside a database.

All right.

So this is why storage is needed.

Let's go ahead and and understand

what is the difference between storage and a database?

So a storage is basically needed whenever you have objects.

Like I said,

so you have any other music files when you

whenever you have video files whenever you have Images

that show in all these kind

of cases you use a storage kind of service

but when you have say something related to the metadata

of a file, for example,

when you store the file in the storage you need

to have the location of that particular file,

you need to have the properties of that particular file.

So all these things all the properties all

the any location column

that you want to add all these are structured right?

They're not Randomized

and hence, they can be added inside a delivers bead SQL

and nosql it can be added.


So this is the main difference.

This is how you will differentiate

between using a storage

and a database moving along guys.

So now we have understood

what our databases water storage Services.

When do we use the Surah service?

When do we use the database service?

Let's move on to the topic of the day,

which is a 0 story.

So what is azure storage?

So Azure storage as a service from a server.

So you use it whenever you want to store something on the cloud

and since we are using the cloud provider

as as your will be using the storage service from Azure

and that storage service is called the Azure storage.

So it's now

when you begin to use the Azure storage service.

First of all,

you should have a storage account

which you can create in the Azure management portal.

So let me show you how you can do that.

So let me quickly jump onto my browser

so that I can show you my has your bored So guys this is

how my dashboard actually looks like right?

So as you can see on my dashboard,

I have all the services listed.

So what I'm interested in today is the storage account.

So I'll click on storage accounts.

So I have some deployed already over here.

I click on add to add a new storage account.

And then I'll have this page now.

You will enter the name of the storage account here.

So that name has to be unique.

So let me enter a name say live demo 2 3 2 W 3 6.

All right, so that seems to be available.

Then comes the option of account kind right?

So how do you want that account to be

what would it be a block storage or would it be a general purpose

so we don't want to restrict our account

to only blob storage.

We want a general-purpose account.

Right, so we'll choose

that and then comes the replication part.

How do you want your data to be replicated now,

there are quite a few in what should I say?

There are quite a few good options

that we have here one is called the locally redundant storage.

So when we have the locally redundant storage

what this basically means is so understand it like this

that there are regions

and inside a region there are zones.

So for example,

we have the US and inside us we have cities

like Chicago New York right now.

It's in New York

and Chicago are two zones and the region is us.

All right, so when I say locally redundant storage

what that basically means is

that inside a zone that is inside in say New York.

You have a data center for Azure in in that data center you are

so your storage account has been created.

So when you select the options or option

of locally redundant storage,

what basically does is Italy it will replicate your data

inside the data.

Arrows it is replicate the data inside the data center

in which you have actually deployed your storage account

so that if one server

crashes you you have your storage account

in other server and that same particular premise, right?

But when we choose Zone redundant storage

what that basically means is

so a Zone was Chicago or New York, right?

So in Chicago

if you have a data center in in New York

if you have a data center,

so whatever is there

in the New York data center will be replicated

to the Chicago data center as well so

that if One's own goes down.

So if this

if the data center in New York goes down Chicago would be up

and hence your storage account can still be used.

Alright, so that is what the meaning

of Zone redundant storage has

when we talk about Geo redundant storage.

What we basically mean is you have different reasons.

So for example, we have the u.s.

Region and we have the India region.

So inside so inside India region,

we have different zones, right?

So if it's select the Geo redundant option,

we will have the read write access.

To both these regions that is in the u.s.

Region and the India region as well.

So whatever you have deployed in the u.s.

Region in the Chicago Zone will be replicated

across India region as well.

Whatever zones you ever deployed in India regions also, alright,

so this is what the meaning what is the meaning

of g or in in storage?

And then we have the read access Geo redundant storage,

which is a very interesting option

where in you only get the read access

of the redundancy

for example your means It is in New York, right?

So it's a Zone inside the u.s. Region.

So if you select read axis gyro redundant storage

if in India,

your data will be replicated to India as well.

But when a failover happens

that is when your New York server is down

and when you are accessing

when you are redirected to the India region in that case,

you can only read the data.

You cannot write on it.

All right, so it is useful for those applications,

which only I fetch data and there is nothing to write.

So in that case G or in

and storage would actually be pretty costly for you.

But if you select the read axis during another storage,

it is a little less cheaper than the Regio redundant option

since you're not writing on it.

You don't want your data to be replicated whenever

you write a thing, right?

And so this is the reason

that read axis gyro redundant storage is kind of cheap,

but since ours is the demo today,

so I'll select a Leader done storage

and then the subscription you can choose a pay-as-you-go

or free tier in your option.

If you have created a new as your account

and then comes the resource Group.

So Resource Group is nothing but a group of resources.

So it is basically created to manage your resources more

efficiently in the case.

When you have a large use case wherein you're deploying a host

of different Services

if you include them inside one group,

it becomes easier to manage

because if you want to delete

all the Resources you just have to delete the group

and all the resources

and the dependencies will be deleted automatically, right?

So this is how the resource Group is helpful.

So we'll create a new Resource Group

today Let It Be Live - demo

1 right and we'll pin it to dashboard

and we'll click on create.

So when we pin it a dashboard it basically has a shortcut

on the desktop for as your so let me so

while this is being created.

Let me show you.

That dashboard actually looks

like so that dashboard basically gives you all the shortcuts

that you want.

So this is the dashboard guys.

So you get all the shortcuts

that you want to your services, right?

So my life

so my storage account is now being created

is called live demo to double 3 6 so I can quickly access it

from here rather

than to go to my store particular service account

over here and then accessing it.

All right.

So while this is being created guys,

this was about as your storage this is how you create.

Date a storage account.

Let me come back to my slide.

So this is what an Azure storage

is let's move on to discuss the components of azure storage.

So right till now we have discussed

how you can create a storage account.

But inside the storage account

you have a host of different Services,

which you can make use according to your use case, right?

So the first service is called The Blob service.

So what a blob service so blob service is nothing

but a file system service where in you can upload any kind?

Failed, right?

So the for those of you

who know about AWS so AWS has a service called S3, right?

So it is exactly like S3,

right there is nothing change into it.

Just the name of the service is called blob now inside blob

you can upload any kind of file

and then that file can be accessed by depending

on the permissions

that you are going to can be accessed by anyone

on the planet.

For example,

you have created a website and it's showing some images.

So those images rather being on.

The websites server.

It could be there on blog

and can be accessed directly through the link of any object

that you actually upload in the blog.

All right, having said

that guys let me quickly show you

how you can create a blob storage.

So let me go back to my dashboard.

So as you can see my storage account

has now been created.

So if I go into my storage account,

I get the screen wherein I have to choose a service.

All right, so Let me click on blogs

because that is what I want to create I click on blobs.

I'll open open it in a okay.

I'll open it in the same Tab

and then it will show me a screen where it will show me

that there has nothing been added.

Right so there are no containers yet.

So what are containers containers are nothing

but folders that you have inside the blog?

All right, so you cannot store anything in the root directory

that is you cannot store upload any file over here.

You have to have a folder

inside which you will be uploading your files.

All right, so folders are nothing but Dino's

don't get confused with the nomenclature.


So inside this I will create a container called life - demo.

Right, so it's done the access type is blob.

So what that basically means is

if its private it cannot be accessed by anyone

if it's blob inside this particular container,

all the files can be accessed

and if if it's container this basically means that

if it inside this container,

you have created one more folder that also can be accessed.

But when we select blob only the files can be accessed.

So we'll select blob and will click on OK

and it will hardly take a second

to He ate a container in the blob service.

Alright, so we have a container now,

which is the live demo and if you go inside this container

there is nothing in it as of now, right?

So now I have actually created a website

which can interact with The Blob service.

So let me show you

how that website actually looks like or before

that let me show you

the queue service I discover the queue service first

and then we'll come back and discuss the blob right?

So let me come back to my slide so blobs.

Like I said,

you have created a Blog you can upload.

Any kind of file inside a blob using a website

or you can read the files as well from a website.

All right, let's move on and discuss cues.

So what a cues cues

are basically it's exactly like a data structure

wherein you whatever information

goes first is the first to come out as well.


So you use a cues to basically lists job.

So in our use case we discuss

that we have an image image processing application

which has millions of Was

as accessing it

and since millions of jobs cannot be executed at

once they are listed inside the queue

so that the server at its own pace can fetch the jobs

and executed right?

So this is what a queue is all about as simple as that now

the way you can create cues

in the has your dashboard is something like this

that you have your storage account, right?

So let me go to my storage account.

So my storage account is now being opening.

Alright, so inside

my storage account with The Blob services Well,

I had cues option

right so I'll go to that choose option

and create a new cue.

So my my my storage account was live demo

to double three six, right

and now I will choose cues.

I'll go inside Qs.

And as you can see as of now,

there are no queues that have been created

so I will create a new cue and let me call it.

Hello one two, three.

All right, so I'll create the to now.

So my Q has now been created now if I go to my website,

which is therefore Q,

this is how my website will look like

if I want to upload some data into Q.

So this is a sample website guys that I have created.


This website has to have the has to know

how to interact with your queue service for that.

You have a thing called your connection string.

So every storage account

that you create will have a unique Second string

that you have to include in your code.

Now if I click on access Keys here,

you will go to your storage account

and then you'll have this pain in that you

have to go to access Keys.

Once you go to access Keys,

you will have a connection string and a key

so you have to have the connection string

in your code included

so that your code can interact with the particular service.

All right, so I'll go to my cues code

so my Q code is this

and if you can see this is the connection string

that I have to specify.

I will copy paste this connection string over here.

And this endpoint has to be removed

because it is not required in the connection string.

Once you do that you

will save it McHugh name is hello one two three,

so it has been already specified here right now.

I'll go back.

I will go to my website, which is this right?

So I've already specified to it

for it to send messages to my queue, right?

So if I send a message saying hello.

old right and I click on send a message.

It will actually send that message to my queue

which can be seen here.

So as if you if I go to my queue you can see

that a message has been added with says hello world.

Alright, so this is what I just entered now

if I go on and process this Q,

which is I want to receive message now,

so I'll have to change this in the PHP as well.

So I'll go to my process PHP.

For my cue,

I'll change my connection string so that it can interact

with the queue and fetch the messages from over there.


I'll change it here.

I'll change the endpoint as well.

And now my code will be able to interact with my cue

that I've just created.

All right.

So if I go to processed

or PHP it'll basically fetch the message from that q

and display it here.

All right.

So as you can see the message received is hello world

if I enter any other message say as Eureka.

Is the best right?

I entered this message.

I send it to the queue.

All right, and now when I process it,

I'll get the same message back.

And if you will see over here guys,

I'll just refresh it.

Now as you can see the message has been processed

and it has been deleted from the queue.

So as and when the message is processed,

it is automatically deleted from the queue.

All right.

So this is how my cues work.

Let me quickly show you how the blog's work, right?

So let me go to my blobs website.

So this is

where I'll be uploading a file onto blobs.

And again, I have to change the connection string again, right?

So I'll go to my blog code and change the connection string

which was here.

Alright, I'll change the connection string

to my current storage account.

And my container name I have already specified

it to be live demo, right?

I created a live demo container now

if I'll save this code and

if now I choose a file and say I upload the desert file.

All right.

So what it does is it basically renames the the the name

of that file automatically according to system time

so that there is no Clash

when two or three files are updated with the same name.

All right, so I'll upload this file now so as

Now as you can see

if we go into our blog there are no files.

Right if I go inside my blob, which is here.

There's no file in it.

Right but the moment I upload the file

from this particular website.

My file will be listed here.

So as you can see,

my file has been successfully added over here.

And now if I go to the particular link

of this file,

I will be able to download the file.

Right so my down my file is now being downloaded

and once it is downloaded

and if I try to open it will be the same file

that I just uploaded.


So if I open it now you can see this is the file

that we uploaded in the blob and it is now accessible

on this particular link by everyone in the world.

Alright, so this is how cool blob is now.

I'll be using blob and q's together.

Let me show you how so

what I basically do now is this this image or this image

that I've just uploaded has also been added to the queue

that I created.

So let me show you the queue.

So if you see the queue,

it will list the message that other file name

that we have just uploaded will go into cues.

This is my q and

as you can see this image has been added to the queue now,

I will process this image

and the way I'll do it is like this

that the image will be fetched from the queue and then the link

of that image will be gone too

and that image will go

into the background of the website, right?

So for that first,

I have to change the code obviously,

so I will go to my blog process website.

Right and I will change the connection string.

To the one that we are using right now.

one second Right.

So this is my connection string.

I'll change it to what we are using right now.


And then also I have to change the link

that will be accessing the file.

I said this is the link that it is accessing.

So the link has changed now

because the storage account has changed right?

So let me select the link for it.

So I will go inside blobs.

And I'll go inside the container.

So this link is going to sew

from from this point onwards till this point

that is till the container name.

The link will be same right?

So let me copy the link and paste it in my coat

and I'll show you what I mean.

So if I paste the link here.

So the linked live demo will be same

and just the filename has to be fetched, right?

So this is the this filename.

I'm fetching from the queue.

And what we'll do now is it will fetch the file name

from the queue

and we'll change the background of the particular website.


So if I process the page now that is processed our PHP

what'll happen is it'll fetch the file from the queue

and will change the background.

Alright, so I have updated the the desert file, right?

So it is showing the desert background now now I'll show you

how exactly cues are basically used.

So say I upload say three four files, right?

I applaud this flat image and mind you the file the message

that we just received would have been deleted from the queue.

All right,

and I'll just show you whether that is working or not.

So I'll upload this flower file.

It might take some time

because if the files are kind of large, all right,

so the file will be uploaded.

Okay, it gave me an error.

Let me upload again, so I'll choose a file.

So sometimes when the size

when the the size of the file is more it throws you

in error, right?

You can't do anything about it.

So let me upload the file again.

So once it is uploaded guys, I will be able to see it here.


So I have like three files right now.

So it says velden block date complete and if I refresh it,

I'll be able to see for three files now cool.

So if I go to processed our PHP

now It will not list me the previous file

that I uploaded by the recent file

that I just uploaded.

So let me go to process.

And now it will show me the image

that I've just uploaded right?

It will fetch it from the queue the file name

and then we'll show me in the background.

All right.

The net is a little slow.

Bear with me.

Alright, so as you can see the file has been there

the I'm getting some weird error way just

because the net is not working,

but forget this error guys,

you can see you get the image in the background, right?

So similar is the case now,

let me go to my storage accounts.

So we have discussed cues and blobs now, right?

So let me go to my slides.

So we've discussed what blobs are we have discussed?

What cues are let me go to my file system,

which is the best thing that I have.

Figured out in this yard.

So with file system it is exactly like blobs.

You can upload any kind of file but with file system,

you can actually mount it as a drive on your computer,

right you can use it as it as

if it was an extended Drive in your own computer, right

but and also you get an Authentication Protocol with it,

which is called the SMB 3.0 protocol,

which is used by servers Whenever there is

a file transaction, so that

what Indication you will also get

when you're using the file system and to

and how you can mount it.

Let me show you how so first of all,

this mounting process is not available in Windows 7.

It is only available in Windows 10 and above.

So what I've done is I have deployed

a virtual machine in Azure.

Let me show you the virtual machine, right?

So this is my virtual machine.

So I have deployed Windows 2012 server on this now.

What we'll be doing is we'll be mapping the file.

That will be creating in a storage account

in this particular system.

All right, so I'll connect to it

and now we'll ask me the username and the password

so I'll specify the password.

And I'll click on okay.

Yes, and then I'll be connected to my system.

So I'm in so this is my system guys.

So if I go to my computer right now.

As you can see there is no drive that is listed, right?

So we'll be creating a network drive over here

on which we can upload any kind of file.

Now the way to do

that is to first go to your as your dashboard

and create a file

over there create a file system directory over there, right?

So we'll go to our storage accounts.

So it is in live demo to double three six.

And then we'll be going to files.


So as of now as you can see,

there is no directory which has been listed here.

So I will create a file shaver a share service and let me name

it something else my drive,

right and the quota is basically

how many GBS of Drive do you want?


It can go two terabytes.

But since I'm doing a demo,

let me create a hundred GB drive right now, right

so I create a hundred GB drive and I will click on OK.

Alright, so my drive has been successfully created.

Right, so I will go to this drive.

And click on connect

and then I will get this command to connect to it.

All right, I'll copy this command.

And I'll paste it in the notepad.

So I'll use this in my so that I've just deployed now,

how will I use this now?

If you look at this command guys,

this is the address of your server.

All right.

So this is the address of the your storage account

and this is the file share

that we have just created which is called my drive right

the user name to access.

This would be a 0 L / live demo to double 3 6.

All right.

And the password to the for this would be the key

which has been specified here.


I have to specify everything in that.

I've just mentioned in this server

that I have created.

All right.

So the way you will map the map network drive is

like this will go to PC.

You will right click it

and you will click on map network drive right now.

It will ask us the drive name that we want to allocate it.

So for example,

we want to allocate the K drive to it.

All right,

and in this particular thing you will be putting in.

Address of the server right?

So let me copy the address of the server which is this.

All right.

I'll copy the address.

And I will save it over here.

All right, so it has saved it and now I will click on finish.

So if everything goes well guys,

it will ask you for the username

and the password now the username would be this

that is a 0 / live demo to double 3-6, right?

That's why I go to my server paste the username here

and then last me the password.

So like I said,

the password would be this your key.

So I will copy the password.

I'll paste it here that is in this particular field

and I will click on remember my credentials

and click on okay.

So now if everything is authenticated it will go

inside my drive.

So as you can see I am inside my drive right now.

And if I go to this PC that is my computer,

I can see that a drive has been added over here.

Now this drive in this drive

as you can see the total size is hundred GB

and the space free is under GB.

So this is the quota that we assigned in file share

while creating it right now

if I want to copy any file over here,

I can easily do that.

I'll just copy this particular file and paste it here.

Rachel easily copied and say

I want to I want a shortcut to be copied

and I can shortcut copy the short code as well because I

don't have any files on this particular server

that I can show that I can copy here.

So as you can see the files have been copied are and these

actually have been uploaded to the has your account as well.


So let me show you on the dashboard

if these files are visible.

So I'll go to the

has your dashboard and this is my drive

if I refresh it right now.

Refresh so it will last me all the files

that have just uploaded.

all right, so it is taking some time and So basically

when you create a network drive in your own computer it is

as if you are using your own driver on your local computer

if your internet and truck is good, right?

So as you can see we have added these two files

in our directory in the server

and you can view it here as well

and you can download it from here.

You can click on it.

You can download it and anyone can download it

if they have the link.

Alright, so we are done with file system.

Let us come back

to our slide and discuss our last component of A

which is tables now tables is again an amazing service

from a 0 so it is just like nosql

but it is basically you can say a child of nosql.

You cannot do complex queries on it.

Now the way or the advantage of using tables is

that say you have a data within which the structure is changing.

Dynamically you what I mean by that is say you are entering

you have a form you have created a website

in which it except three things.

Is it accepts your name?

It accepts your mobile number and it accepts your location.

All right.

So once it does

that it will upload it in the database right

normal as usual.

But what if tomorrow I use case comes in where

in I want to add one more field,

which maybe is asking for your credit card number, right?

So if it is asking

that if you were using traditional systems,

you would have to go

to your database and add one more column

and then go on to chase your That interface

and your PHP or whatever scripting language you're using

but with tables the thing is

that you don't have to change anything in the back end

as in you don't have to change anything in your database.

It will it will automatically adjust according to your data

and create one more field,

which is basically at which is basically

you're trying to ingest for example in our case.

We are trying to ingest the credit card number as well.

So it will do that automatically.

So let me show you

how you can use the table service.

So we'll come back to our dashboard

and go to storage accounts,

right and again in in your storage account.

You'll have all the services listed.

So we will select tables will go inside tables.

Right, and once we are

inside tables will have to create a new table.

So let's name this table as a new table.

Right and we will click on OK

so my table has now been created.

All right.

Now the way you can upload

your data to this table is the same you just copy

the connection string you call the API

and you can upload your data but to view the data in the table,

you will need your Studio.

All right.

So let's for this is one table that I created earlier.

So for adding it I'll show you how to add it.

But first,

let me add some values inside this particular table.

That is my new table, right?

So there is nothing inside it because I just created it.

So what I'll be doing

is I will be going to be showing you the website

through which I will be uploading the data

into the table.

So it is this so this is my website using

which I will be updating

the table right now the way I will be doing it

is I'll be first changing the connection string.

So the connection string can be found here.


I'll have to change this.

This is my connection code

for tables will have to change the default connection string.

So let us quickly change it this is my connection string.

I'll come back to my code based at here.

Add and remove the end point.


So my connection string has been given now

I have to change the table name as well.

So my table name is new table.

right and All right,

so nothing else has to be changed.


So our code is done now.

I'll come back to my slide and refresh it.

All right.

So now there are two things that you have to understand

that they're in a table one is called the partition key

and one is called the Roki right?

What is partition key?

What is rho chi let me explain you.

So whatever files

that you're trying to store in your table are stored

in different nodes when I say nodes.

There are basically different servers right now each.

Over will have a partition key which can identify it.

So say there is a over one server to server 3

and server for all right,

so I want to store my data in server 1.

All right.

So my particular type of data

that I want to store in server one.

So for that the partition could be partition key

would be one right now

inside my server every row has to be identified by

a unique identifier

and their incomes in the Roki.

So this row Keys should be unique to each and every record

that you'll be putting inside.

Add a partition key table

that is inside that particular server.

If you change the server again,

the Roki can be same as that of the previous server.

But when you're you are creating records

inside one particular partition key the rose key value

has to be different.

All right, having said that guys so we have this website

and we have created a new table over here.

All right.

Now what I will be doing is I will be mapping this new table

in my visual studio.

Now the way to do

that is open your Visual Studio go to server Explorer and

once you have you will be listed your Azure service over here.

All right.

Now, I have to map my particular storage account

on this Visual Studio as well truth.

So the way to do that Is in the storage section click right?

Click it and click on attach external storage.


So once that is done,

it will ask me the account name and the account key.

Now the way to attach it is like this

that you will go to the table service.

So your storage account.

You will copy the name based in the account name

and then your connection string.

Sorry your key, right?

So in this case,

you'll be copying the key and you have to pace the key here.

Remember the account key

so that you don't have to enter it again and again and click on.


So this will add

your Storage account over here, right?

So this is my storage account live demo to double three six.


So my storage account has now been added and inside it.

I have created a table.

Call the new table, right?

So if I click on the new table,

as you can see there is nothing that has been added as of now.

So what I'll do is from my website now,

we'll add a new value.

So I have already specified the partition key as default.

It is called task Seattle, right?

All I'll be doing is I'll be entering the name

over here while touring the Roki over here,

which will be unique.

All right.

So as as of now, there are no record,

so I'll enter one as much as my arrow key

and now lender the Columns

that I wanted this row this particular row is

the number is the columns and this is the value

that that I want for that particular column.

So for that I was for example,

I want the name column to be there right

inside the name column.

I want the name he month.

All right, I'll specify

that and say I want my mobile number to be there.

I'll specify mobile and know right

and I'll specify the mobile number here.

That is 1 2 3 4 5 6 7 8 9 say

and now I'll click on upload data.

So this will upload the data to the table

that I've just created.

So if I go here go back to my visual studio,

and I refresh it.

I'll be able to see that new record has been entered

in which the Roki is one write.

The name is hemant.

And the mobile number is this now say I want

to add one more field,

which is asking for my credit card number.

All right.

So as I said the Roki would be different now.

I'll enter the name so whatever column you have.

It is specified.

It will go inside the same column.

So I have already specified name, right?

So if I enter the value Heyman here,

it will not create a new column

and enter the value hemanth over there.

It will just create then column,

which is new to the data.

Alright, so the mobile number is again say five six,

seven eight and now it will ask me for my credit card number.

Right, so the credit card number could be this.

All right.

So now if I upload the data.

And I'll show you how it looks now.

So as you can see now the credit card number

of feel has been added.

So the for the first record there is nothing there

in the credit card number field,

but in the second record,

I have added that I want this data right also guys,

you can specify in any order.

There is no specific order

that you have to specify right so I can enter the name

first right and then I can enter the credit card number.

So this is the credit card number that I want to add.

Write and say I'm entering the mobile here.

Right if I upload the data now,

so this is required.

Sorry three upload data.

This data will be updated and if I refresh it now.

You can see that.

Okay, so m capital and M Small.

You have to be careful

of the of the indentation of the sorry your syntax as well.

So whatever column names you're specifying it is case sensitive.

So like you can see I made a mistake here

by specifying a small C and it created one more column.

All right,

but as you can see the name is in the same column now.

All right.

So what in in whatever sorry

in whatever sequence you can add your record

at that record will be added automatically

in its respective column, right?

So this is how tables can be used.

Alright guys.

So with that I think we are done with our services.

So we discussed

what are blobs we discuss what a cues but discuss

what our file systems we

discussed what our tables and for each of the service.

We saw how we can use them in as your and

how we can deploy them as well.

So let's go ahead and see what all we are going to learn

in this today's session.

So today in this session first,

we'll start off with what is a virtual machine right?

We're going to understand What is a virtual machine

how we can configure it how we can launch it in Azure.

Once we have done that we will move

on to Virtual Network.

So before understanding

what is a virtual network will first understand.

Why do we actually need a virtual Network?


Once that is done.

We move on and see what is a virtual Network exactly

and its components right and towards the end.

We'll be doing a demo.

We're in like I said, we'll be deploying to servers

which will be configuring from scratch.

That is a web server and a database server, right?

And we'll be deploying them

in Virtual networks and configuring their properties.


So guys, I hope this agenda is clear to you.

Let's move ahead and start off with a first session which is

what is a virtual machine.

So what is the virtual machine?

So I'm a virtual machine is basically a raw server

that you get from your cloud provider

that raw server could could be an abundant machine.

It could be a Windows machine, right?

So it's basically just

like your own personal computer rather than purchasing it.

You're renting it out.

Load right menu renting it out on cloud now.

It is the same

as if it was you on your own computer, right?

So it's a fresh piece of operating system.

You can install as many software's as you want.

You can want it to make it to be a web server.

You can make it to be a worker tear environment.

You can configure it to be anything.


So today we are going to make it a web server

and a database server.

Moving on guys.

So this is what virtual machine is all about.

And also if you compare it with AWS,

which is also a popular cloud computing service with in AWS.

This this same service is called easy to all right in

as your it's called virtual machine in AWS.

It is called easy to All Right

Moving ahead guys.

Now, let's start with virtual networks

and first understand why do we actually need virtual networks?

All right.

So like I said, we have virtual machines, right?

So if you say launch Watching machines

and you want both of them to communicate with each other.

For example in our session today in our demo session.

What we'll be doing a is that we'll be deploying

a web server and we'll be deploying a database server

and we want the web server to talk to the database server

right for this for this communication.

We need a channel and hence.

We need a network right

but why would she will networks?

So if you guys would have noticed

in Cloud there is no there are no wires.

There are there are no switches.

There are no routers.

It's all right.

So your virtual machine is connected using

a logical connection, right?

It is logic these two servers are logically isolated

and that is why we call it virtual, right?

So this is so we understood

that for the communication scale sake we need a virtual Network.

Let's Now understand what a virtual Network exactly is.


So a virtual network is just

like a representation of your network,

but on the cloud, right?

So for example,

we launched a server on the cloud and we connect

to our virtual Network.

Right when we connect to our our virtual Network

that is on as your our network will include that server

as if it's on our own network that is on on-premise, right?

That is what a virtual network is that is

how powerful a virtual Network guilt right

your server will be on the cloud

but your Or your company's network will feel

as if the server is on your own network, right?

And it's like I said,

it's a logical isolation

of the Azure Cloud dedicated to your subscription

that is whatever resources

that you have launched in the cloud it logically

isolates it from the rest of the resources

that are there on Azure

that maybe it could be your resources

or someone else's resources.

Well it logically isolates them

and they are insulated to other resources.

It doesn't matter

if the other resources are failing

or doing anything, right?

They are all isolated.

So this is what a virtual network is all about.

Now when we say what

your network is it basically has a lot of components.

Let's understand these components.

So the first component is Anna's your subnet.

Now what is energy or subnet?

Basically when you divide a network into sub parts it

is called Anna's your subnet.

All right.

So when you divide a virtual Network in a box,

it's called subnet.


This subnet can actually be given unique properties.

Example in this same virtual Network.

You have three virtual machines,

right one module we're seeing is in one net1 subnet

and the other virtual machine is another subnet but this subnet

you can configure to be unique.

For example.

We wanted to we want to create a public subnet.

So a public subnet is basically a subnet

which has internet access.

All right, so we can configure the properties such as in a way

that this particular net the machines

in this particular subnet will have the internet access.

And the others particular subnet will not have

the internet access

so our subnet which doesn't have the internet access is called

a private subnet.

All right, so the virtual machine

in this particular subnet will not have internet access.

But but when you actually see it from a broader perspective,

all of these servers are on the same network, right,

but because of because of the subnets

because the properties of subnets they reflect

different properties, right?

So being on the same same network they have different.

What is and using subnets?

This is how subnets are actually useful, right?

So this is what this is all you need to know

about subnet Skies now

with subnets the properties that I was talking

about say I want to connect to a web server, right?

So for connecting to the web server

for accessing that website,

I need to go through HTTP protocol.


So all of this is configured in a in a firewall now,

what is that firewall called that firewall is

actually Network Security Group.


Now what our network security groups?

Like I said,

they're just firewalls in which you put in the properties

that you want the subnet to reflect.

For example, I want to connect to my web server.

So I have to allow

all HTTP traffic on that subnet and for that I'll have

to attach that particular network security group.

So that subnet now I know it's a lot to take I just explained

to you three components and you might be thinking

where which component goes.

We're right.

And so I have this diagram.

So I'll just summarize what I just Spin it to you.

So we have this virtual Network in the virtual Network.

We have subnets

and a subnet is attached to a network security group

right through this network security group is

where you will be configuring

all the protocols all the properties

that you want your your particular machine to reflect.

This firewall will be attached to the Subnet in which

you will be deploying your virtual machine.

Alright, so this is a place

where you'll be deploying a virtual machine

and it Will be attached

to the subnet sorry our network security group

and this subnet is actually included

in your virtual Network.

All right, so both these subnets are actually

in your virtual Network.

So one virtual network will have as many subnets

as you want and each subnet will have different properties

because of its network security groups moving along guys.

Now, let's so enough of talks.

I have explained you everything you need to know.

Let's go ahead and start

with a demo and for that let's look at the steps

that Going to do so first,

we'll be creating a network security group.

That is the firewall that is required for a server.

So basically we'll be creating to 5 volts one

for a web server and one for a database server, right?

So let's go ahead and do that.

So just give me a second.

I'll go to my has your dashboard.

All right.

So guys, this is

how my dashboard actually looks like now on this dashboard.

The first job

that I have to do is to create a network security group.

So let us do that.

Let us go to the search bar and type network security groups.

Right, and once you've done

that you will see it is listed over here.

We click on it.

And then we'll click on ADD.

Now when we click on ADD,

we first have to add the firewall

for web server, right?

So it is your choice either you could deploy

the web server first or your database.

So you type in the name of the network security group

that this is for my web server.

So I'll type in web server.

Then I'll have to assign a resource Group.

Now, what is the resource Group?

So basically like for our use case today

will be deploying a lot of resources, right?

So it becomes easier for us to manage it

if it comes under Group.

All right, so we'll be creating that group over here.

So say I'll name the group as life - demo.

Alright, so this becomes my Resource Group

and all the resources that I'd be launching today.

Will I will include them in this particular group

so that I it becomes easier to manage for me.

Alright, and I'll pin it to dashboard

and I'll click on create now while it is being created

you would have noticed that I have pinned it to dashboard.


What is the dashboard guys?

So for those of you

who are not acquainted with the as your dashboard

so dashboard is just like a desktop guys

that you have on your computer.

So all the shortcuts are created here

because I would be On Figueroa figuring all the properties.

So I want it to be listed here.

And that's why I have created a shortcut on the dashboard.

All right.

So while it is being deployed,

let's deploy our second network security group as well,

which is for my database, right?

So I'll click on ADD.

And I'll type in database.

I included in the resource Group that I've already created,

which is live demo.

I click on this.

I will pin it to dashboard and I'll click on create right

that is it.

It's pretty simple.

Just enter the name the resource Group

that you want to enter it in and created right.


One thing that I want you to notice is guys

have not configured any property as of now, right?

I'll do that later.

So as It's now.

I just created two firewalls with the name web server

and database now.

What I'll do is let me come back to my slide to see

what we'll be doing next, right?

So step two is create the virtual Network.

So now I will be creating the virtual Network

in which I will be deploying my servers right?

So let's do that.

Let's create a virtual Network.

So I'll click here.

I'll go to Virtual Networks.

I'll click on ADD.

And I'll give the virtual network name say v-net,

right and then comes the address space.


What is the address space recipes is basically

the number of IP addresses that your network can hold.

So as of now this virtual Network and hold 256 computers,

right or 256 virtual machines now

since I'll be creating more than two subnets.

I want to address space which will be more

because each subnet will take some minimum value, right?

So let us give it a more elaborate address, please.

Let me type in this.

Write and edit this part

and this will give you a bigger set of addresses to deal with.

So now my address my virtual network will be capable

of gaving 65,000 addresses,

which is kind of cool right next.

We have this subnet name.

So by default when you create a virtual Network,

there will be a default subnet will be created

which will be created.

Alright, so this is the address range for that.

Default subnet,

so it should be in the same range

that we have specified for a virtual Network.

So let's give it this address

and as you can see in this particular subnet,

that is the default subnet.

I'll have around 256 machines.

Alright, so that is it.

Nothing else needs to be configured.

I will include it in the resource Group

that I've already created

that is live demo and location is basically the place

where the servers are being deployed, right?

So by default its best West us will keep it at that right

and we'll create this virtual Network.

That is it guys nothing else to be configured for as of now.

This virtual network does not have any subnets, right?

We want we want a web server subnet

and we want a database subnet that will be deploying now.

Once the virtual network is ready.

All right, let me come back to my slide

and show you this diagram.

So this diagram basically talks

about a virtual Network to subnets.


What I'll be doing is I'll be launching

two virtual machines

and I'll be attaching these virtual machines with this.

It all right,

and this is basically your network security group.

This is where you'll be configuring your properties.

And this also I'll attach to the subnet.

Now this VM will then

reflect the properties of this particular firewall, right?

I will not be attaching this firewall directly to this VM,

but I will be attaching it to the subnet.


What advantage do I have in this is

that say I launched three servers in the subnet,

all of them will reflect this property right

so I don't have Have to configure them separately.

All of them will be reflecting the security groups properties

of this particular subnet.

All right, I think a virtual network is ready.

Let's see.

So if I go to my virtual

Networks I see that I have my watching Network ready.

All right, now I'll go inside my virtual Network

and now I'll be deploying the subnets.

So we'll go to the subnets pain will click on ADD and let's add

our first Subnet which is the web server subnet right.


This web server said net will be attached

to a network security group

which will be for the web server, right?

So we'll attach a network security group

for the web server and will click on OK.

There is a it's

that simple just add the subnet at as a network security group

to that and you're done right?


I will be deploying the database subnet now,

and I'll go to network security groups.

I will click

on the database subnet Database Network Security Group.

I'll click on OK.

And Bam, I have one more subnet.

Let me go back to my dashboard.

And see what all do I have so I have

the two network security groups.

I have deployed in Virtual Network.

I have deployed the subnets

in it and I have attached the firewall to the subnet.

All that is left is now the BM so step three is create the web

server virtual machine and the database virtual machine.

So let us do that.

We will go to our pain go to Virtual machines.

right click on ADD

And with this you will get this page

where in you have all the operating systems

that you can set in your in your virtual machine now,

you can set a 1 2 operating system.

You can also configure a Windows server,

but we will be dealing with a 1/2 today right?

So I'll select Ubuntu I will click on Create

and then I get this page

where I have to enter the general properties.

So I'll I'll name the server as web server.


I'll give the user name.

The user name

that will authenticate me to this particular server.

Now when you talk about the password or the way,

you will authenticate yourself you basically have two options.

You can either authenticate through a public-private key

or you can authenticate through a password.

So password is more easier.

And since we want our things to be done quicker,

I'll give a password and this is the password.

I'll configure it now.

And that is it guys.

Nothing else needs to be configured Resource Group.

I'll give the resource Group that I've already created

that is live demo and I'll click on OK.

On the next page it will ask me the configuration of my server

that I want, right.

So do I want one course review

and a 3.5 GB Ram or I want to two core CPU and 7K Graham.

I can choose all the configuration

which are available here in the view all page,

but I'll stick to the first configuration

which is the basic one so that because I'm doing a demo right

so I don't need a big machine for it.

I click on select.

Next comes the optional features that I have to configure,

right so the storage

and then what virtual Network

do I want my server to be deployed in

so we have created the virtual Network called v-net.

So we will be deploying it in this then comes the subnet.

So inside this virtual Network, there are three subnets.

Like I said one is default

that is created by default and then we have the database

and the web server subnet.

So since this is a web server VM we We'll be deploying it

under the web server subnet then comes the public IP address.

So it will assign it a public IP address

through which we can access it

that is going to be new

and then comes the network security group.

So since we have already

assigned a network security group in the subnet,

we don't need

any network security group to be attached over here.

So we'll click on none

and then monitoring do you want it or not?

I would prefer to be disabled

because I won't be needing the server after the sessions.

So I'll click on disabled and I'll click on OK.

All right, so now

what will happen is it will validate all the properties

that I have entered and

once it has entered it will give me a page

where in I have to agree to the terms

and conditions and that is it.

So I'll agree to the terms and conditions and I'll click

on purchase and that will deploy my server.

That is it guys.

So this is my web server being deployed.

Let's quickly deploy our database server as well

following the same steps that we have.

Load now, right.

So I choose open to machine.

I will click on create I will go

to this page and type in the name of the server,

which is database.

Right the username.

So it said Eureka authentication type is password.

So I'll type in the password now.

Confirm the password.

And then comes the resource Group.

So it's live demo.


And the location is Vesuvius.

I click on OK select the most basic configuration,

which is the first one click on select.

Now I'll be configuring the virtual network settings.

So subnet would be database.

Right Network Security Group will be none.

And that is it monitoring will be disabled.

Click on OK.

It will validate all the properties and then

I shall purchase the server and which will be deployed.

Right if you

if you're talking if you are thinking

how much is it going to cost me?

So each server is going to cost me around three,

three, two, three,

two point three point five rupees per our right.

So that's like a fraction of a dollar.

So I think

if you're learning as you're that is worth it, right,

so my servers are being deployed guys now why my servers

are being deployed let me Properties of each other right?

So let me go

to the web server firewall and configure the properties.

So basically what I what I am looking at is

the inbound security rules,

so I click on inbound security rules.

So inbound security rules are basically the rules

which are created for the connections

which are in coming to the server, right?

So this is a web server, right?

So for a web server first,

you have to enable the HTTP connection.

So I want the HTTP connection

through HTTP protocol to be enabled over here.


And the source is any what what kind

of people can access the server?

So I want the whole world to end access my internet website.

So the source is any the service is HTTP,

right and everything else is default the action.

What do you want?

What do you want to deny it or you want to allow it?

So I want to allow the connections.

So I will select allow and I'll click on OK.

Alright, so my security rule is being created.

So while this is being created guide guys,

let's will have to add one more security rule

which is the HTTP security rule

because our websites connect with two protocols,

which is HTTP and https.

So we will configure HTTP as well.

So let's let us select HTTP from the list headers

and then the action is allow

and you might be wondering what this priority number is, right?

So priority number.

Is basically the number

which will be given to your rule.

So say example in my previous rule.

I give the priority number as hundred right?

So when it reads the set of rules

that are given in the firewall,

the first rule would be the least number which is there.

So the least number is hundred

and it goes up to I think 900 right?

So it will read all the rules according to the numbers

and then configure them.

So we have added the HTTP Rule

and the HTTP rule is also being added and that is it

that is all is which is required.

So, let me just refresh it and I can see their HTTP

and https rules are already been given now.

I also want to SSH I should be able

to SSH into my server.

But before that let me show you

what if I don't configure the property are let's see

what that then happens,

right so for configuring my web server.

I have to SSH

into the web server to see to install all the software's

which are required for that particular.

So right so let's connect to the server.

So the way I can connect is using a software called Petit.

So I launch the software I paste this piece IP address here.

And as of now guys,

I have not added the SSH property, right?

So if I try to connect it will show the screen

and it will be it will keep Keep on pointing here, right?

So the connection will time out after a few say 30 or 40 seconds

and it that basically means

that the server is refusing any connection to it.

And the reason for that is

that I'm not configured in my firewall.

So to do that see

as you can see it has given me an error

which says connection timed out.

So to do that.

I will have to go to my firewall

which is the network security groups of my web server.


I will go to the inbound security rules

and now I'll add a rule for SSH.

So once I add the rule I will be able to connect to my service.

So it's done by security rule is being created and

once it is created I will be able to SSH into this.

So also it takes some time

for that rule to actually be applied.

Right it says

that it created a security rule but sometimes it takes

time to reflect.

Let's see if the rule is being reflected here.

And yes, the rule is being reflected.

So as you can see I've added the SSH Rule

and now it is giving me the login page.

So I login into my server which with the username Erica.

I configured the username to be at Eureka and now it's

last me the password after authenticating the user name.

So I will type in the password.

And if everything goes well,

I'll be authenticated to my server, right?

Yes, so I am in my server.

So this is my 1 2 server,

which is running on Azure Cloud.

Now, I need to configure the software's in it

so that it becomes a web server, right?

So as of now there's nothing installed on it.

It's a fresh piece of software.

So let me first update this Ubuntu.

So I'll type in the update command.

It's sudo apt-get update.

Right now it'll take some time to update mean by guys.

Let me quickly show you

if I can access my web server as of now or not, right?

So I'll go to Virtual machines.

I'll go to web server.


You might ask me

that we have already configured it to accept HTTP connection.

But still if I try to connect

to the server I will not be able to do so,

it will return me empty response screen.

So this basically means

that there is nothing configured on my server as of now.

So what I'll do is so my Ubuntu is now updated.

So what I'll do is now is I'll update it

with the Apache software, right?

So I'll type in the command

for Apache so sudo apt-get install apache2.

All right, once I've done

that it will install the Apache software here.

And within seconds you can see

that I'll be able to connect to the server.

So it's starting the service processing?

Yeah, so a patch is installed

now if I try to connect to the server you'll be able to see

that I am getting the Apache screen.

So if you want you can connect to the server.

The IP address is 40.82 3.14 TDOT hundred my team

will be handing you out this IP address.

So I'll repeat it.


It's 40.82 3.14 TDOT hundred you can go to this link

and you will see the Apache web page.

As of now now as an as we

will go along and we'll update this thing this website,

you'll see that this page will be updated.

All right, so I have the Apache working

on my server now now my website

that I have created it is actually a PHP website.

So laughs to install PHP on This Server as well.

So I will write sudo apt-get php5

and I'll have to install it.

So this is it this is it one second.

So I misspelled install my bad.

Sorry, right.

So now my PHP will be installed on this system.

And while this is being installed guys.

Let me show you

how my website actually looks like so I'll go to localhost

and I'll type in the A dress for my website.

All right.

So this is

how my website actually looks like it's pretty simple.

You just have to enter your name your email

your mobile number your location and

once you click on submit all of this address will go to mySQL.

Now MySQL is in a different server.

This will be in a different server.

And what we're trying to do is we're trying to authenticate

them to each other using virtual networks.

All right, so if I go to my web server,

so my PHP has been installed and with PHP.

I also need an extension

which will be which will It to connect to mySQL.

So for that I will have to install that extension as well.

So sudo apt-get install PHP 5 - MySQL, right?

So with this my extension will get installed on the system

and that is it.

Alright, so my web server is configured now,

let's go on and configure our MySQL now,

right so my skin is a bit tricky guys

because you have there is a lot of configuration

that you have to do.

But let's hope for the best and see

if you can connect to it.

All right.

Also guys,

if you would have noticed I'm not configured

anything for my server from a database server.

So as we did in web, so I will show you

if you try to connect to it as of now will not be able to so

while this is being loaded.

Let me quickly go to the properties

of my database server.

Right and include

the inbound security rules according to what I want.

So I will first have to enable the SSH rule, right?

So this is how I will be able to connect to my server.

So I'll select the SSH service.

The action is allow.

I'll click on OK.

And my security rule will now be created.

Also I should also be able to create

a MySQL connection to the server

because I want this this server

to be accessed through my computer,

right if I write a for example,

I will be creating a database I will be adding the table,

right so I won't do all of that through my computer.

I don't want to SSH

into the Ubuntu again to configure anything.

So we'll be doing that.

So we need a MySQL connection as well.

So let's That so it would be MySQL.

And the service would be MySQL.

Action is allowed I click on okay.

And this is it guys.

So now the security rule will be created and

if we try now to connect to our database server,

I will be able to do so,

so I will copy the IP address.

I will click on open.

I'll say yes,

and now it will ask me for the login name.

So as you can see

the security rule worked it is asking for the login name

and now the password so I'll give the password for this.

I'm done with this.

I'll be authenticated to my Ubuntu Server.

First of all,

I'll update this machine with the update command

like we did in the previous over as well.


So now it will be updated after this.

I'll install the MySQL service that we'll be using to that.

We'll be using to connect our website from right

so I will now install the MySQL service

which is sudo apt-get install MySQL server.


This is it.

I type in by which means yes,

and now it is a still ask me for the password.

I'll type in the password and confirm it again.

Hit enter and that is it.

Okay, so now I've configured MySQL.

I've installed my skin on my system.

The next thing is by default MySQL only

allows the Local Host to access the root user.

Right if I want to connect through my machine.

I have to create one more user for MySQL

for me to access it.


So once my MySQL is installed I'll show you what I mean,

right so we'll be doing that.

And I think we are done.

Yeah, so we're done.

So let's connect to a MySQL service now.

So the user is root

and the password was a Eureka one, two,

three to connect to my database and we are in so

like I was saying we have to create a user

that will that will be accessing

from so let's create a user for MySQL.

So I type in create user

say the user name is Ed Eureka for my database

whereas it is on localhost.

And I should add the password for it.

Let me add the password as Ed Eureka 1 2 3 right?

And let me deploy this over.

So I've created the username now.

I'll have to Grant all the Privileges

to this particular server.

So let me give the command for that.

So it's Grant all privileges.

On everything that is there

on this database to this particular username,

which resides on localhost.

So this is a command that will be configuring

or right now same set will be configuring

for the percentage host.

So let us do that as well.

All right, and then Grant all the Privileges for the same.

All right, so done.

So we have created successfully a new user now.

If I try to connect to this database using this user,

let's see how we can do that.

So I'll dive in MySQL.

So previously I authenticate myself using route.

But now I'll use the L Eureka username and see

if I can connect to it.