Overview of Microsoft's Azure Cloud Computing Platform5:34 with Scott Hanselman
In this video, we'll learn about Microsoft's Azure cloud computing platform, the difference between IaaS (Infrastructure as a Service) and PaaS (Platform as a Service), and Azure's App Service.
Try Azure App Service
Azure App Service is a cloud offering that integrates everything you need to quickly and easily build web and mobile apps for any platform or device. Enjoy a time-limited Azure App Service experience without a subscription, free of charge and commitment.
[MUSIC] 0:00 Hi friends, I'm Scott Hanselman, I work at Microsoft on ASP.NET Core and 0:04 open source .NET Core. 0:08 And I'm gonna show you Azure App Service, and we're gonna talk about deploying or 0:10 publishing an ASP.NET Core application to Azure. 0:15 Now there's a lot of stuff going on in Azure and it can be kind of confusing. 0:18 So I'm gonna try to explain the difference between when you hear PaaS, 0:22 Platform as a Service or IaaS, Infrastructure as a Service. 0:26 You know, what is App Service? 0:31 How do you get a website up into the cloud? 0:32 And, how is that different from just setting up a virtual machine somewhere and 0:34 then publishing to that? 0:38 I also wanna point people to try.azurewewbsites.net. 0:39 If you don't have an Azure account and you're not really interested in doing 0:45 a trial but you still are interested in following along or 0:48 trying out Azure App Service, you can do it up there without a credit card and 0:52 it gives you a time-limited App Service. 0:55 Basically, it gives you a couple of hours of App Service. 0:58 You can go in here, you can pick your Web App, you can say I want ASP.NET Core 1.0, 1:01 pick Node, pick Java, whatever makes you happy. 1:06 And then go and create that and it will just let you sign in, 1:09 you can use your GitHub, use your Google+, and will make you a little tiny free 1:12 website that you can then play with and it'll expire in a couple of hours. 1:17 So it's a nice no money, no effort, 1:21 no commitment way to try out Azure App Service. 1:23 All right, so let's do this. 1:26 I'm gonna just pop over here to PowerPoint. 1:28 Cuz I know that we all love to see PowerPoint when we're learning about code 1:30 but trust me, it'll be short and it'll be worth it. 1:33 These are some of the things that you get when you come to Azure. 1:36 This is the standard boxes and lines dialog, boxes and 1:40 lines slides that people see. 1:44 Azure Storage, that's that global storage, it's like a disk for everybody that's up 1:46 there in the Internet, is the base of Azure, that where everything happens. 1:50 So when you make a virtual machine in Azure, when you go into Azure and 1:55 you do File > New Virtual Machine, that virtual machine gets stored somewhere, 1:58 it gets put in Azure Storage. 2:03 Now there are other boxes that we're not gonna talk about, 2:05 we're gonna talk about web sites, right? 2:08 Azure App Service, where you're gonna put your web site. 2:10 That of course sits on a virtual machine, right? 2:13 A virtual machine has to be there always, right? 2:17 And a virtual machine, of course, lives on a physical machine that is, in this case 2:19 though, hidden from you by Azure, and your disk is hidden from you by Azure Storage. 2:24 So there’s a series of kind of what we call lies or layers of abstraction 2:30 between you and the real metal, but that’s the magic of the cloud. 2:34 And that is really the difference between a cloud-based host like Azure and 2:39 your more cheaper commodity hosting. 2:44 One way to look at it is, 2:48 if I use a host in my local city I can visit my computer, right? 2:49 You could go and buy a cheap host and then go downtown, find that computer, 2:55 and find the disk that your site is running on. 3:00 You could say, show me my computer, and they would take you into a data center and 3:03 point to it, and they'd say there it is. 3:08 That's nice because you can feel good about your disk and you can see it, but 3:10 it's also bad because if that disk dies, then your website goes down. 3:14 One of the great things about the cloud is that Azure Storage is hiding all of 3:17 the complexities of the disk from you and also doing what's called georeplication. 3:22 It's putting all of the bytes that you put on a disk, in fact, on three disks. 3:27 Your site exists in three places at all times, so 3:32 you're guaranteed not to lose your stuff. 3:35 That's a really important aspect of publishing to Azure. 3:38 And it's one of the many ways that it differs from commodity hosting. 3:40 So let's look at it a simpler way, all right? 3:44 If I made a virtual machine on Azure, I can really do anything I want to. 3:47 I could put .NET on it, .NET Core like we're gonna do today. 3:51 But I could put anything, cuz I own it, right? 3:54 It's like buying your own home. 3:57 You can do whatever crazy stuff you want to inside your home and 3:59 that is your right, okay? 4:02 But you manage your home, you own it, you manage it. 4:04 And if you do something stupid that breaks the house, well, 4:08 you're gonna have to fix the house and it's your fault. 4:10 It's not Azure's fault. 4:13 But some people, they want a more of an Uber or a Airbnb style where, 4:15 you know I don't really wanna think about my house or my car. 4:21 I just want a website. 4:23 It does limit you a little bit. 4:25 You can't do anything you want but you can still do .NET and Node and Java and 4:27 PHP and Python and on and on. 4:31 But then Azure will manage the operating system for you, manage all of the updates. 4:33 So if something comes out like a new bad bug with a creative name, you don't 4:38 have to wake up in the middle of the night and go and patch your virtual machine. 4:43 Just as if your roof starts leaking, you don't have to get on the roof, right? 4:47 You're gonna go and 4:51 you're gonna call the landlord and let them deal with that for you. 4:52 So that's another way that this differs from commodity hosting, 4:54 is that Azure handles stuff for you. 4:58 You're a web developer, not a homeowner, and 5:01 you'd really like just to think about your web application and run it up there. 5:04 So let's do that and see some of the secrets of how that works. 5:08 But also, let's remind ourselves that no matter what we do up here in the web site 5:13 world, there is always a virtual machine underneath us. 5:17 Just as when you rent a house, 5:21 there is a landlord out there that has to think about that house. 5:22 So you'll be a better developer and you'll be a smarter developer, 5:25 if you can live in both worlds and understand that both worlds exist. 5:28
You need to sign up for Treehouse in order to download course files.Sign up