Getting started on Windows Azure with .NET and Visual Studio.


Uploaded by windowsazure on 07.06.2012

Transcript:
Hi, I'm Scott Hanselman. Today we're going to walk through creating your very first Windows
Azure application using .NET and Visual Studio. It only takes three minutes and it's free.
There's three ways to put your site in Windows Azure. Web Sites, Virtual Machines and Cloud
Services. In this video we'll see how to deploy a ASP.NET Application to a Web Site.
I'll start out in the azure portal I don't have anything running in my azure
account I'll click new.
I can make a new website, a new Cloud Service, new Virtual Machine and more.
I'll click on Website. From here I can do a quick create, create
with database, or pull in one of many open source applications from the gallery
I'll just do a quick create...we'll call it hanselman test. I'll hit create Web Site.
You can see it's happening in the background. They're letting me know that something is
happening and I'm free to do other adminstrative tasks if I like.
There, now my site is up and running. I'll click on it and see the status of my
site within the dashboard. You can see here that nothing has happened as my site is currently
empty and just started running. I can configure my application for various
versions of .NET or PHP. What I'm going to do is download my site's
publish profile. This publish profile is going to be imported into Visual Studio.
I'll save the publish profile in my downloads folder.
Now I'll switch over to Visual Studio. From here, I'll make a new project.
I'm going to make an ASP.NET MVC 4 application using .NET 4.
I'm going to make a regular internet application and click OK.
Now I'll compile and run the application locally and see what it looks like.
Here's my standard ASP.NET application running on localhost on my machine.
I'll right click on the project in Solution Explorer and click Publish.
Now I'm going to select the Publish Profile that we downloaded from the Azure website...
...and it fills out everything that I need to deploy my application using Web Deploy.
I can validate the connection. Then I'll hit publish. You can see the deployment
happening in the Visual Studio output window. The deployment to Windows Azure takes just
a few seconds. After the deployment my application automatically
starts up. You can that my application is now running in Windows Azure, not on localhost.
I'll switch back over to the Azure Dashboard where I can see the CPU Time, Requests, Data
In and Out and any Errors that may have occured. I've just deployed to a Shared Instance. The
best part is a that a Single Instance is free, but if I want, I could use multipled shared
share instances or switch over to a Reserved Instance for more control.
As a Reserved Instance I could a Small, Medium, or Large instance size, and then scale even
more with multiple reserved instances. I'll switch back to Visual Studio and make
a small change to my application. I'll then right click and publish to redeploy with this
small change. I can see which file will be updated and then hit publish. Notice how fast
this small redeployment is. Deploying my app took just a few minutes and
I was able to use the Visual Studio and .NET skills I already had.
If you know Visual Studio and .NET you'll be able to easily deploy to Azure as well.
Please visit the developer center at WindowsAzure.com.