>> We did it. We have reached
the end of our ASP.NET Core 101 video series but we
haven't told anyone. We haven't published it to the Cloud. >> Right, we need to
let the people know. >> That our craft site is better than all the other competing craft sites. >> Absolutely. >> All right, so let's try to
go and publish this to Azure. So I'm just going to
switch back over into, actually, I'll show you
our site real quick. It's lovely. Just want
to show you how nice is. >> Six star ratings system. >>It is. That is the
differentiator for our product. >> I agree. That's what
makes this truly special. >> Six star. All
right, let's do this. What we're going to do is
right-click on our product. Remember, we talked about
this before, you can build, you can clean, you can publish. So when this pops up, there's lots of different
places that you could potentially publish your vision to. If you want, you can
publish to a folder and then zip it up and take it over to your friendly neighborhood host. If you have your own server, maybe you use IIS, the Internet Information
Server for Windows. Maybe an Azure virtual machine. But what we're going to do is
we're going to publish it to an Azure App Service. Azure App Service, here's one for
Windows and here's one on Linux. We can just say "Create New" and
because I'm logged into Azure, it's going to load my
subscription, see? >> Nice. >> So Contoso crafts is awesome, we'll figure out our
domain stuff later. We need to go and get VC money. >> Yeah. >> Okay, I can pick
my three month trial. We can make a resource group. I'll just leave things as they are, and then here under
web hosting plan I can decide whether or not I want
a machine of a certain size. I can even try this on
a free if I wanted to. >> That's nice that it's
letting you you do all of that in this model [inaudible] >> Yes, I could log into Azure in the Azure portal and do all
that stuff but I can do it all from Visual Studio
which is really cool. Then if I wanted to add a
database or storage account, totally up to me. Then additionally, I can
export those settings and then I can get them
to you and you could publish from your machine as well. Let's go and hit "Create"
and see if this works out. So I'm hitting "Create" and
it's going to go and deploy. Its multiple steps. So I'm
just going to be patient. It's going to create
like a hosting plan. This is the thing
that is going to hold our website and the
cool thing about using Azure App Service is I can do deployment slots.
Have you seen those? >> No, I haven't. >> Dev, test, staging, all on the same plan. So you can go and deploy to staging and then I can swap
staging with production. >> Oh, so convenient. >> It is convenient and we'll
be able to do it on all of the exact same plans but
right now we're just going to publish directly to production. >> All right. >> Because that's how we roll. >> Yes. Get it right first time. >> This might take a few
minutes depending on the status of your system. In my case, I am using
my trial account and I've never made a
hosting plan before. So I'm going to wait for
just a few minutes here. So we might compress time in the
interest of not boring people. >> So maybe while we're doing that, what do we do now if we
were about to ship? Oh. >> Oh, hey. Look at that? >> That was faster
than I expected it. >> All right, so this is great. So while you were getting ready to stretch out the amount of
time we were talking about, in fact they created that and we
can publish directly from here. We can also be reminded that we
can pick our target frameworks. We can use.Net Core. We can decide whether
or not it's going to be going into Windows or not, whether or not it's going to be
entirely self-contained or not, and it's warning me if I
set the wrong setting. Here I'm going to go into a
self-contained release build directly out to Azure and then you
see our initial URL is Contoso craft is awesome. Then here it says, hey,
there's some warnings. You want to let me know
about your warnings. They're saying they were
using a thing called SignalR and then SignalR
runs the placer. If we were going to
go to production and scale and take over the world
which is ultimately our plan. >> Yes. >> We could also use the
Azure SignalR service. >> Perfect. >> So let's go ahead
and hit "Publish". >> We can edit all of
this stuff at anytime. >> We absolutely can and
we can also go login to the Azure portal and
see those settings and download and export a profile and then import
that into Visual Studio. So you can do it from VS,
if that makes you happy. You can do it from the command
line or from the portal. All right, so we're publishing
there and you are going to suggest that we learn
about some resources. >> Yes, because now you've completed
all this, congratulations. Hopefully, you've learned a lot about ASP.NET and now you're just
wanting to learn more. >> So let's do this. We can go up to the
Contoso Crafts GitHub. That's at
github.com/dotnet-presentations. We are inside of Contoso Crafts. This is going to be a
living and working sample. So you can get involved,
you can improve it, you can fork it, play with
it, it's all open-source. Be sure to check out the.Net
website up at the top. There's two things I
want you to look at. There's Learn and there's Community. Videos like this will be up at Learn. You can make websites and IoT devices and Android things and iPhone things and
all kinds of stuff. There'll be videos and
learning materials up there but also to your
point, the Community. >> My favorite. >> Yes. Meet ups, GitHub, Twitter, the community stand up where
we meet on every week. We've even got a Gitter and a
Discord now, which is really cool. All right, let's go
back to Visual Studio and see how our publish is going. It worked. It's up. >> That's awesome. >> Contoso Crafts is awesome
go to AzureWebsites.net. We did it. You can do it too. You can right-click in Visual Studio, you can hit "Publish". In this case, we made a
new Azure App Service and deployed and it worked and I'm
pretty happy with myself right now. >> Yes, that was pretty good.
I'm feeling pretty good. >> Yes. So how can we learn
more about this stuff? >> Yes. I like to talk with
other people first and foremost, so we can go to the.Net communities. So that can be at Stack Overflow
or Discord or our blog, anywhere. We're all over the place. >> You can go up to
the.Net website and click "Learn" where you
can see these videos and lots of other
videos and reminder, this is not the only video in the series and it's not
the only other series.# There's C#, there's .Net, there's mobile, and lots more. We look forward to seeing you
online making. more.Net code. >> Happy coding.