Hello, Siberians. Welcome to lesson 3.12. Off Monetary off, Discuss stated. Is that visitor one Microsoft Azure architect design?
Here are the tasks that will be covering in this demo,
so we'll start out by reviewing the migration scenario that I'll be walking you true today.
Fost In this migration scenario, we have two environments and harsher environment on on on premises. Environment
in the Azure environments doesn't as your half service that Austin the tail wins e commerce site.
And there's an adjust sicko database that Austin the shopping catalog data for the e commerce site
on premises. There's a server that's running mongo D. B on that database Is Austin the shopping cut for e commerce site.
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
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
and I'll be using it to my grade the Mongol Debate Data base woman premises to Azure Cosmos TV.
And finally I will modify my Web application in Azure to use the Cosmos TV rather than the on prime manga D B.
Let's move on to the next part off this demo.
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.
So here I am in my e commerce site, Tail Winds Traders e Commerce site
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.
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.
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
How had a few other items to the list?
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.
So let s s age into the Mongol DV seven premises and are put in my password
and let's elevate privileges
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
TVs on that shows me I have three databases which I have to tell Winded Toby's here,
so why can't do it? I can switch over to use this still win database unless you're still wind.
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
and I can see that I have one collection called cats,
so that's the shopping cats for our website.
The other thing that I would do is if I do it, baby
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
Andi, let's go over and had a few more times. Let's add
the item to the cuts now called five times less handsome kitchen accessories.
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,
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,
The next thing that I'll show you in this demo
is the creation off a new Cosmos D B. A town.
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
So if I go over on that Data Explorer,
I can see that the visit Tail Wind
collection. But there's no high times that exist within this collection, so they has absolutely no temps in eight.
So that's the one that I'll be using.
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.
And let's search for Cosmos
as your cosmos TB. I click and dad likely can create
Nice, specify Resource Group. For this, Let specified the other resource group. Give it a name. So as our cost malls or two,
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
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?
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
in nets Walk. That's,
um, I control. I can choose to do that
for now. Just leave that and I'll just go to next door. Just click on review and create
on. It's a simple, as that is, to create a cost most Deby database.
So now that I have my Cosmos TB database,
the next tax that I'll be showing you is the migration off my mom body. Be database
the azure database migration service
visual representation of what I'll be showing you. It's done my question of the day.
Let's get on with it.
So here I am, back in the azure Pato
so you can see my jaw database migration service here. So if I click on that,
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.
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.
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
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
on DDE, What I'll do is so quiet and click, create and run activity,
and that takes me to the option Way can complete the rest of the con figuration.
So with the moat, how say connection string mud
on are put in the connections drink for my manga D B database on premises
has the connection string from my own premises. Mongol D B database. I click on Save
and then I can specify my cost. Most D B
connections drink targets.
So for the cosmos, Debbie Connection String targets. Why can't do it? I can actually go in
toe, select my subscription and select the Cosmos TV database over here. So I want the mud
20 much tree mongo. So that's what I want. So selects that
Cosmos TV database over there.
Andi. After I've selected that, I go ahead and click on Save,
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.
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
so they don't give the activity and them, which are called the same name, make
and I'll click on one migration
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.
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
on If I go on that date Explorer
on and I did Explorer, you can see that this cat collection has been migrated onto this database, which is great
I can see the high temps, the unit one toe 345 times, which are the heightened that I have in my cat
when I'm using the Mongol de beyond premises. So that looks good. So let's move on to the rest of the process.
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
back India's Your Potter. If I go back onto my resource group and I select my azure half service
on what are these? If I go on the configuration
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,
So let's quiet and do that
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.
So let's go ahead and click. OK, and that's
on by click. Save on that.
That's going to restart the Web application, and everything should be back in a few seconds.
You can see that that's currently using the on premises database.
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.
Let's refresh the sights
on you can see that that's now using
my cosmos TB and I still have my cat on intact. So if I go head to some other high times and the cat,
let's add that to the list.
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.
So that brings me to the end of this demonstration. I hope it's been used for for you.
Thanks for watching, and I'll see you in the next lesson.