Watch videos with subtitles in your language, upload your videos, create your own subtitles! Click here to learn more on "how to Dotsub"

Intro to Windows Azure with Scott Hanselman

0 (0 Likes / 0 Dislikes)
  • Embed Video

  • Embed normal player Copy to Clipboard
  • Embed a smaller player Copy to Clipboard
  • Advanced Embedding Options
  • Embed Video With Transcription

  • Embed with transcription beside video Copy to Clipboard
  • Embed with transcription below video Copy to Clipboard
  • Embed transcript

  • Embed transcript in:
    Copy to Clipboard
  • Invite a user to Dotsub
[male] Today we're going to walk through creating your first Azure application using .NET and Visual Studio. It should take about 3-5 minutes and it's free, let's take a look. >>[male voice over] I'm starting out here in the Azure portal. This is an HTML5 application. You can see at the top I've got some credits from my free trial. Looks like I've got $183 US still available and another couple of weeks before it expires. So I can do lots and lots of stuff with that credit. I can go and say New and make Websites and Virtual Machines, Cloud Services and stuff like that. I could go and say Create a New Quick Website or maybe make one from the Gallery. There's lots of different choices and blogs and CMS's and stuff like that. But I can also now make websites directly for Visual Studio itself. So inside Visual Studio with the Azure SDK install I can just come over here and click on Windows Azure node in the server explorer and click connect to Windows Azure. I'm going to hide my password from you and log right in, and you'll notice that right now it says Refreshing Website.

So I'm seeing the same websites that I saw on the Portal. From here, I'm just going to make a New Project. I'll make a new 45 web application. We'll start with the base MVC template, maybe add web API and then hit OK. That'll just create that MVC5 web application. That's up and running and I can probably run that locally and see that that works fine. And that runs fine locally. Before I publish this anywhere I'm just going to run into the controller and I'm just going to put in some diagnostics because I want to make sure that this particular line is being hit. So I'm going to just type in Trace, hit CTRL, dot .WriteLine "hey it's me" and then just save that and make sure that that's cool. Then I'm going to right-click on the project itself and say Publish. Now from here if I had an existing Publish Profile for Azure I could grab that, I could import other projects, but I can also, from here, make a new website. So I'm going to make a totally new website, mysupersite. Hopefully that— yep so no ones used mysupersite yet. I'll put in the West Coast and hit Create. So this is doing the same thing that would happen if I were in the portal creating the website, except I'm doing it within Visual Studio at the moment that I'm about to publish. So you see I can actually pick — those are the existing sites, there's the one we just made, hit OK. And it gets all those publish settings and where exactly it's going to go, connection strings if it were a database. Then hit Publish and then this will publish that up into actual live Azure. This should just take just a second here. So here's the actual live site running in Azure. So this is really in production I could even go back over to the websites section of the Portal and hit Refresh and then see that that new website was created even though it was made inside of Visual Studio. Of course I can see my Dashboard and Monitor and scale this site however I feel like it. There's the activity that we just did. I could scale it, go from free to shared to standard. But I'm going to go back over here and go to the Server Explorer and I'm going to right-click and refresh the websites to see my new site and then say "View Settings". These are the same settings that I could change in the Management Portal and I could even click here and say Open in Management Portal, but what I want see is Application Login. Cause I want to see that Trace log that we added there. So I've set that to Verbose and I'm going to save that setting. This is exactly the same as if I did it in the portal. I want to see that line happen. I'm going to right-click and say View Streaming Logs in Output Window. So now I'm connected to the Azure Streaming Service and then I'll put the website kind of off to the side here and then just hit Refresh. And you can see that there's my Trace Write Line in production happening down here. Just hitting Refresh and I'm seeing that. But even more I want to really really prove that that's happening. I'm going to actually click here and put a break point and then what I want to do is click Attach to Debugger. So I'm attaching to the remote debugger. This is just like attaching to a debugger in IIS, except in this case we're doing it remotely with kind of IIS in the sky. This is the Azure Web Server in the sky. And I have hit a break point and right there we can actually see the call stack. I can look at locals and wander around. I mean I am really doing remote debugging you can see the process ID and the thread ID and the stack frame. So that's pretty cool, actually. Deploying the app just a couple of minutes. I was able to use Visual Studio for everything. Put my .NET app up in the cloud. Take a look at my tracing and diagnostics. Change settings without visiting the Portal and even do remote production debugging . So if you know Visual Studio and .NET you also will be able to easily deploy to Azure as well. Check it out at and also the new show at; thanks alot.

Video Details

Duration: 5 minutes and 46 seconds
Country: United States
Language: English
License: All rights reserved
Genre: None
Views: 145
Posted by: duncanma on Apr 9, 2014

----- (Please provide translations for these languages: Chinese (Simplified) (chi_hans), Chinese (Traditional) (chi_hant), Czech (cze), English (eng), French (France) (fre_fr), German (ger), Italian (ita), Japanese (jpn), Korean (kor), Polish (pol), Portuguese (Brazil) (por_br), Russian (rus), Spanish (spa), Turkish (tur).)

Caption and Translate

    Sign In/Register for Dotsub to translate this video.