Time
14 hours 28 minutes
Difficulty
Intermediate
CEU/CPE
15

Video Transcription

00:00
Hello, Siberians. Welcome to lesson 3.12. Off Monetary off, Discuss stated. Is that visitor one Microsoft Azure architect design?
00:10
Here are the tasks that will be covering in this demo,
00:15
so we'll start out by reviewing the migration scenario that I'll be walking you true today.
00:22
Fost In this migration scenario, we have two environments and harsher environment on on on premises. Environment
00:30
in the Azure environments doesn't as your half service that Austin the tail wins e commerce site.
00:35
And there's an adjust sicko database that Austin the shopping catalog data for the e commerce site
00:42
on premises. There's a server that's running mongo D. B on that database Is Austin the shopping cut for e commerce site.
00:52
Now, how are we creating a Nigel Cosmos de BIE account that uses the Mongol D. B A p I? This will be our database migration target
01:00
I previously created on Azure database Migration Service in my Elliot demonstration on migrating sick Overman premises to Haj. Also be using that same database migration service
01:12
and I'll be using it to my grade the Mongol Debate Data base woman premises to Azure Cosmos TV.
01:19
And finally I will modify my Web application in Azure to use the Cosmos TV rather than the on prime manga D B.
01:27
Let's move on to the next part off this demo.
01:33
Now, what about do next? I'll take you over to the e commerce site, our hearts, certain shopping information into the shopping cart on. Then you can see that this information is indeed saved in the on premises. Mongo D B database. Let's go right to do that.
01:48
So here I am in my e commerce site, Tail Winds Traders e Commerce site
01:53
that's currently using this Jessica seven for the shopping catalog. Information. So all this information that we're seeing here this date I started the shopping catalogue, which compromise your sequel.
02:04
We get a business just sequel, but information that saved in the for the shopping cart. He start in mongo D. B on that on premises. So let's go ahead and log in as a user off this website.
02:17
So I put in my username on I put in my password my email on my password. Sonam, I'm logged into this a common sight. I'll go ahead and add a few attempts to the shopping cut, so our hearts that
02:32
so the least.
02:35
How had a few other items to the list?
02:38
Oh, to the cuts.
02:39
Let's get some D I Y two's, um, that ad so are currently after the items in the shopping cuts are over now to the cloud show and our log in or authenticates to my Mongol d B sever on premises.
02:55
So let s s age into the Mongol DV seven premises and are put in my password
03:06
and let's elevate privileges
03:10
and I'll clear the screen. So I'm currently on my mom, buddy, be seven promises. If I go over to the Mongo command line
03:19
and I do a show
03:22
TVs on that shows me I have three databases which I have to tell Winded Toby's here,
03:29
so why can't do it? I can switch over to use this still win database unless you're still wind.
03:36
Now let's change that. You still went and I'm stretched over two years my tell winter database. So if I go ahead and show
03:44
collections
03:46
and I can see that I have one collection called cats,
03:50
so that's the shopping cats for our website.
03:55
The other thing that I would do is if I do it, baby
03:59
don't cats
04:02
that counts.
04:06
And let's see how many high temps We currently have three attempts in the shop in Cat. And if I go back to my e commerce website
04:14
Andi, let's go over and had a few more times. Let's add
04:18
the item to the cuts now called five times less handsome kitchen accessories.
04:24
Let's add that
04:26
I've got five items in the shopping cart. If I go back to my mom go d b server on. If I do that against you, have five items and by the way, can also review the items. If I do it, baby,
04:36
the cats
04:40
don't find,
04:44
uh
04:46
And if I won that you can see the I attempt that I have in the shopping cats. So that includes the door hardware kids and go on our this other information about sorry items are currently shopping cat,
04:58
so that's good.
04:59
The next thing that I'll show you in this demo
05:01
is the creation off a new Cosmos D B. A town.
05:05
Now. I've already pre created the cosmos Debbie accounts that I'll be using, but I just want to walk you through that process very quickly. I'm back India's your Pato Here's the cosmos Debbie accounts that already pre created
05:18
um to youth.
05:19
So if I go over on that Data Explorer,
05:26
I can see that the visit Tail Wind
05:29
collection. But there's no high times that exist within this collection, so they has absolutely no temps in eight.
05:36
So that's the one that I'll be using.
05:39
But let me walk you true to the creation of a Cosmos TB account from scratch. So let's go back to the Azure Potter. Let's click on Creator is us.
05:47
And let's search for Cosmos
05:50
as your cosmos TB. I click and dad likely can create
05:55
Nice, specify Resource Group. For this, Let specified the other resource group. Give it a name. So as our cost malls or two,
06:05
I can specify the AP high in this case off my migration. I'm using Azure Cosmos TV for mongo D. B. A. P s. So that's what I'm using. But we can select any of these AP I So our sticks of the one that I used
06:17
on our specified the region that they should be deployed in tow. The location can specify division off the Mongol D B protocol that this was support 3.6 or three points to are the options that are available. I can specify my live off redundancy. And if I want Multivision right or just a single vision, right?
06:38
So once I specified all those configuration parameters, I can go on the network Where I can specify will be able to connect to this Cosmos de Bie account over the network so I can use something called service end points to lock this down toe. Only accept connections from within
06:57
in nets Walk. That's,
06:59
um, I control. I can choose to do that
07:01
for now. Just leave that and I'll just go to next door. Just click on review and create
07:08
on. It's a simple, as that is, to create a cost most Deby database.
07:13
So now that I have my Cosmos TB database,
07:15
the next tax that I'll be showing you is the migration off my mom body. Be database
07:21
using
07:23
the azure database migration service
07:26
visual representation of what I'll be showing you. It's done my question of the day.
07:30
Let's get on with it.
07:32
So here I am, back in the azure Pato
07:35
so you can see my jaw database migration service here. So if I click on that,
07:42
I can glide and create a new migration project. So let's do that. I click on Near Migration Project. I give the project a name.
07:49
Fay
07:50
make mongo
07:55
on. I can select my source several tight. In this case, it's Mondo di B. So if I select among the D. B on the only tie get option that I have is cost musty, be among the d. B a P I great.
08:07
So if I go ahead and choose my type off activity, I can ever do an online or offline migration. Have done a long fly. My question
08:16
on my migration as the lowest impacts on the application down time. So that's what you preferably want because it keeps both the basis in sync ball. For now, just like offline migration
08:31
on DDE, What I'll do is so quiet and click, create and run activity,
08:35
and that takes me to the option Way can complete the rest of the con figuration.
08:41
So with the moat, how say connection string mud
08:46
on are put in the connections drink for my manga D B database on premises
08:56
has the connection string from my own premises. Mongol D B database. I click on Save
09:01
and then I can specify my cost. Most D B
09:05
connections drink targets.
09:07
So for the cosmos, Debbie Connection String targets. Why can't do it? I can actually go in
09:13
toe, select my subscription and select the Cosmos TV database over here. So I want the mud
09:22
20 much tree mongo. So that's what I want. So selects that
09:28
Cosmos TV database over there.
09:30
Andi. After I've selected that, I go ahead and click on Save,
09:37
and now you can see I can specify configuration for these collections are, for example, what about the true put request units? Do I want to configure our Just go ahead and live that as to defaults on. I'll go ahead and click on safe.
09:58
I can see the collection. That would be my great aunt from on premises the cat collection. So I'll go ahead and click on safety that I can also change the request units that
10:13
so they don't give the activity and them, which are called the same name, make
10:18
mongo
10:20
Yeah,
10:22
activity
10:24
and I'll click on one migration
10:26
on the migration process stats. So this is something I would just take a few seconds. There's not much data in the database in a way, but you can see now that it's showing as completed. So that's good.
10:37
So the first thing that out do it, it's trainers completed. Let's go back to my resource group on. Let's go select my Cosmos TB account
10:46
on If I go on that date Explorer
10:50
on and I did Explorer, you can see that this cat collection has been migrated onto this database, which is great
10:56
on DDE.
11:00
I can see the high temps, the unit one toe 345 times, which are the heightened that I have in my cat
11:07
when I'm using the Mongol de beyond premises. So that looks good. So let's move on to the rest of the process.
11:13
The next thing that out, do it. I'll show you the modification off my agile Web up to use the Cosmos TB database. I just migrated into
11:24
back India's Your Potter. If I go back onto my resource group and I select my azure half service
11:33
on what are these? If I go on the configuration
11:41
on under configuration, there is the Mongo D B Connection string over here, So if we go ahead and click, and that's our modify. It is from pointing on premises toe point into my azure cosmos TV,
11:56
So let's quiet and do that
11:58
Now. The great thing about these is I'm no more defining my application in anyway. So cost most. Deby supports the monk body. Be wire protocol, and I don't need to modify my application anyway. Just covers on talking to Cosmos TV. The same weight would talking to Mangal Devi.
12:15
So let's go ahead and click. OK, and that's
12:20
on by click. Save on that.
12:22
That's going to restart the Web application, and everything should be back in a few seconds.
12:28
You can see that that's currently using the on premises database.
12:33
We just need to wait for each. The finish was starting and then out to my refresh, and I expect this Tanabe is in Cosmos TV.
12:41
Let's refresh the sights
12:46
on you can see that that's now using
12:50
my cosmos TB and I still have my cat on intact. So if I go head to some other high times and the cat,
13:00
let's add that to the list.
13:03
Now I've got six items, so now I've just migrated. Nobody be Foreman premises over two cosmos D B in hasher. That's awesome.
13:11
So that brings me to the end of this demonstration. I hope it's been used for for you.
13:16
Thanks for watching, and I'll see you in the next lesson.

Up Next

AZ-301 Microsoft Azure Architect Design

This AZ-301 training covers the skills that are measured in the Microsoft Azure Architect Design certification exam. Learn strategies to plan for the exam, target your areas of study, and gain hands-on experience to prepare for the real world.

Instructed By

Instructor Profile Image
David Okeyode
Cloud Security Architect
Instructor