SharePoint 2013 in Azure: A Dev Environment in 15 Minutes or Less

Have you ever wanted a fresh SharePoint development environment? Have you ever needed to quickly create a test box, or wanted to prototype something specifically for a customer? In the past, in all of these scenarios, you’d face a very time-consuming process and quite honestly, one that has likely been a deterrent. In this blog post, I’m going to walk you through creating a SharePoint 2013 development environment, on Azure, utilizing the Visual Studio 2013 RC.

Thanks to the good people at Microsoft, there is now a developer image on Azure that comes with SharePoint 2013 and Visual Studio 2013 Ultimate RC, already installed. Before we get too far along, I do have to warn you that you’ll need either an Azure or MSDN subscription. If you don’t have an Azure subscription, you can activate your MSDN Azure benefit and receive up to $150 USD in free, monthly Azure credits. If you are careful to shut down your VM at the end of each work day, then you should be able to use this VM as your day-to-day development machine without eating up all of your credits.

Now we will take a look at how to provision the VM. Currently, there are two options: Use the management portal or PowerShell. You can follow this step-by-step guide if you’d like, but I’m going to give you an abbreviated version of the management portal option, with the small tweak of installing AD directly on our VM.

Provision Using the Windows Azure Management Portal

All you need to do to create a new virtual machine from the Azure Management Portal is to navigate to and follow the steps outlined below.

  1. Log on to the Windows Azure Portal
  2. Look for the plus sign (+ NEW) at the bottom left of the Portal page
  3. Next, select Compute -> Virtual Machine -> From Gallery
  4. Move down the image list and select the Visual Studio 2013 Ultimate RC image
  5. Click the arrow, located in the lower right-hand corner of the screen

Now, just navigate through the wizard to create the VM. One thing to note is that while you could possibly get by with a Large instance, you’ll have a better SharePoint development experience if you create an X-Large instance. After you have entered the necessary information, you should see the provisioning screen start to spin. The provisioning time varies, but you can probably count on anywhere from five to10 minutes from start to finish.

Once the provisioning step is complete, you will need to RDP into your new VM and once that’s done, you should see a ‘Configure Developer Desktop’ folder on your desktop. Inside you will see a ‘Scripts’ folder that contains all of the PowerShell scripts needed to finish configuring your development environment.

Microsoft has given you two options. You can configure a standalone version of SharePoint 2013 or one that leverages Active Directory. Here is where I’ll simplify things a little bit. The VM that we have been working with to this point is not a Domain Controller. For the sake of simplicity, we will promote this server to a DC before running our scripts to provision SharePoint. If you don’t know how to do this already, you can use this easy-to-follow guide to get AD up and running. After this, all we have to do is kick off our PowerShell script and sit back and wait. There will be a few minutes of churn, but if all goes well you will soon see something like this:

In addition to a SharePoint developer site being created, as you can see, all of our SharePoint templates are available in Visual Studio 2013. There’s nothing left for you to install before you begin doing SharePoint 2013 development in the cloud.

Advantages to Developing in the Cloud

Developing in the cloud might take some getting used to. I know that I’ve struggled with the concept a little bit myself. But there are some distinct advantages:

  • Access from anywhere
  • Prevents “contamination” of your machine or local network
  • Reduction in the cost of developer equipment (RDP on a lesser machine)
  • Reduction in the cost of on-prem server infrastructure
  • Developers are more productive (less time spinning up development VMs)

Hopefully this post has given you the tools and resources that you need and now you’ll give it a try. If you do, please provide us with some feedback in the comments section below!

About Darrin Brandon

Darrin Brandon is a software engineer with AIS' Raleigh, NC office. Darrin has over 15 years of software development and management experience across a wide variety of domains. He started his professional career by serving over 11 years as an Intelligence Analyst in the United States Air Force, and it was there that his passion for programming was born. While he originally "cut his teeth" on Classic ASP, he has lived on the .Net stack for more than a decade, with a primary focus on Web technologies. More recently, Darrin has taken a deep-dive into the SharePoint platform, serving as a developer on several projects for federal customers. In his spare time Darrin enjoys coaching baseball, hunting, fishing and chilling out around the fire pit with his family and friends.

  • Tony

    So does Azure offer a cloud based IDE for VS

    • Darrin Brandon

      Tony, part of this VM is Visual Studio 2013 RC, so yes…you’ll have an IDE living in the cloud. Just fire up Visual Studio and start writing code.

      • Tony

        Cool! Thanks Darrin. I will have try it out. I have been doing some side projects with Cloud 9 IDE and OpenShift which deal more with open source platforms.

  • Thanks for pointing this out! It’s a great way to get started quickly. I don’t know if this changed on yours, but I now see Visual Studio Ultimate 2013 (MSDN) on WS 2012 but not Visual Studio 2013 Ultimate RC. Maybe due to RTM of VS?

    • Darrin Brandon

      Yeah, I just looked and the gallery list has been refreshed. I wrote the post prior to the release of VS. Thanks for reading and commenting!

      • Seems to be working just fine with the new image, but there’s a note that it requires MSDN.
        On a different note, have you tried exposing your site publicly? I tried using the with an AAM but got access denied. I wonder if it’s because my imange name is different than my machine name, though I don’t know why that would matter.

        • Darrin Brandon

          I haven’t tried opening up the site publicly. Honestly, I was looking for a quick way to spin up VS 2013 and I’m contemplating moving my day-to-day dev environment to Azure. This accomplished both. I think it’d be neat to whip out my Surface, RDP into the VM and start writing code.

          • I think that would be nice, too. Too bad the performance isn’t better.
            At least for SharePoint, my laptop VMs are much quicker.

  • Keith Hearne

    Microsoft seem to have removed this VM image from the list and you can no longer get a VM with this folder on the desktop with the scripts etc. ….
    Is there any chance you have the powershell scripts available for the installation?

  • Bhargav

    Thanks so much for the article Darrin! Just what I was searching for.