Tag Archives: Azure

Get Started with Windows Azure – Training and Resources

I’ve been gathering up a bunch of resources around doing development on Azure and decided to post them where anyone, including me, can find them.

 

Windows Azure Site

 

Project Templates

 

Lightswitch

 

Development / SDK’s

 

Information, blogs, videos, etc.

 

Training

Last count there was 70+ examples here showing you how to get started with Azure. From the beginning with “Hello World” through SQL Azure, WCF, Silverlight, ASP.Net, LINQ, Storage, Workflow, etc. In VS08/VS10 – C# & VB.NET.

There is a lot of code out here…

 

Planning

Microsoft Assessment and Planning Toolkit 6.0

  • Catalog all of the applications in your environment
  • Estimate the needed capacity to run your applications on the Windows Azure platform
  • Evaluate applications based on migration difficulty
  • Stack rank applications in terms of migration suitability
  • Obtain a TCO-ROI analysis for the application

 

Management

SQL Azure Management REST API Reference

Solus: Technology to Help with Peace of Mind on DeveloperSmackdown #49

In this episode we got a little serious and talk to Nick Pearson, Mike Price and Nishanth Samala about an application they are working on to help friends and loved ones use targeted communications when a medical “situation” make things exceedingly difficult.

Not only did we get serious but we also got very personal as we shared some real experiences of the Smackdown hosts to drive home some of the real benefits of this type of technology.

Play Episode 49

Personal request: Check out the links below. Get in shape and make a difference. Thanks.

2011 Team In Training[4]

 

dslogo4

Find this episode here: http://developersmackdown.com/Archives/Show/49

Find The Smackdown on your phone:

TheSmackdown-QR---fkdyAw[1]

Creating an MVC3 Site (ASP.NET Web Pages and Razor) on Azure

Today I thought it be cool to create a web site on Azure and use all of the great new capabilities of MVC3 and Razor.  So, I fired up Visual Studio 2010 and unfortunately there were no templates that allow you to do such a thing.  Well then, knowing that you can “bin deploy” MVC 3 apps on servers that don’t have MVC3 installed on them by including the right binaries I figured I would give it a go anyway.  Here’s what I did and this may look like a lot of steps but I was able to do this all in the span of about an hour sitting at Hooters, coding, talking to some friends and having a beer.

  1. I created 2 solutions in 2 different folders. One to create the Azure setup (I just used the existing MVC2 template to get things started) and a separate one with MVC3 using Razor as the view engine.
  2. In the Azure solution, I deleted all of the common MVC folders (Content, Controllers, Models, Scripts and Views) to get them out of the way
  3. In Windows Explorer, I copied those same folders from the MVC3 project over to the Azure project (the MVC2 and MVC3 folder structure is consistent)
  4. Back in Visual Studio (in the Azure project), I clicked on the “Show All Files” icon so I could see the folders and files
  5. Right-click on each of the folder names that I had previously deleted then copied and selected “Include in Project”.  All of the subordinate files are included automatically.
  6. Now, to help make sure that the MVC3 assemblies are available for the application, I created a “Binaries” folder in the Azure project.  Thanks to Scott Hanselman’s Post and Reflector I found out which assemblies to copy and from where.  Copy all of the assemblies on the list to the Binaries folder you just created.  Here’s the list:
    System.Web.Mvc.dll (v 3.0.0.0) and System.Web.Helpers.dll are the two assemblies that the application needs direct references to.  The rest of the assemblies are dependencies of those two. 
    -  Microsoft.Web.Infrastructure.dll
    -  System.Web.Razor.dll
    -  System.Web.WebPages.dll
    -  System.Web.WebPages.Razor.dll
    -  System.Web.WebPages.Deployment.dll
    Mvc can be found here:  Depending on your system (Program Files or Program Files (x86))\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies
    The rest can be found here:  Depending on your system (Program Files or Program Files (x86))\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies
  7. Make sure the “Build Action” on the dll files in the “Binaries” folder is set to “None” on all files
  8. Remove the existing reference to “System.Web.Mvc” since it is pointing to version 2 and we want version 3
  9. Add references to all the assemblies and set the “Copy Local” property of each to “True”.  Worth noting: The application really only needs references to a couple of the assemblies (mainly Mvc and Helpers) so it is arguable that you should only reference those two in the app and the installation process should make the rest of the assemblies available rather than using the VS project do your dirty work.  I tend to agree with that and in a production setting I would subscribe, however, for the purposes of this post, and to ease the deployment to Azure, I added all 7 of the references directly in the project and set them all to copy local.
  10. Modify Web.config (this is easier doing a side-by-side compare with the original MVC3 app and the Azure app config files)
    1. In “<system.web><compilation …><assemblies>” change the version number of “System.Web.Mvc” to “3.0.0.0
    2. Add “<add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />” and “<add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> to the list of assemblies.  So, ultimately, it will look like this:
      image
    3. Make sure <pages><namespaces> looks something like this: 
      image
    4. Finally, for the sake of being thorough, change the assembly binding at the bottom of the config so that all references point to MVC version 3
      image

Your MVC3/Razor app should now be runnable within the local Azure development environment.  I’m not going to cover it in this post but if you add a certificate and appropriate credentials, you should be able to publish the app directly to a live Azure site.

Developer Smackdown’s Most Excellent Adventure

 dsSticker - black_2

We’re goin to Vegas baby!  Clark Sell and I will be there soaking up all the info, doin podcasts and passing out stickers.  So, come see us, talk, get a sticker and smack it proudly on your laptop lid!

We’ll be at Mandalay Bay for the MIX10 conference where there will be tons of amazing info about:

Windows Phone 7 Series

image

Note: They will be giving out free development tools and support for all MIX10 attendees.  Time to start building apps!

  • Managed .NET environment
  • XNA (Multi-Player/User Game and Graphic Development)
  • Silverlight

 

 Silverlight 4

image

 

Windows Azure

image

BTW, the Smackdown podcasts are hanging in the cloud and served up from Azure!

 

ASP.NET MVC 2.0BTW, the RTM version was just announced and released and you can download here.
image 

Pack your bags and get to Vegas!!!