Juan Carlos

How to upgrade to SharePoint 2013 Public Preview with CloudShare!

August 14th, 2012 | Author: | Filed under: Dev / Test, SharePoint | Tags: , , , , ,


If you want to move a site from SharePoint 2010 to SharePoint 2013 Public Preview, you cannot use the In-place upgrade method and related upgrade hybrid approaches available when upgrading from SharePoint 2007 to SharePoint 2010. At the moment, there is only one valid approach to upgrade to a CloudShare SharePoint 2013 Public Preview environment, and that is by making a content database attach upgrade to a new SharePoint 2013 public preview farm. This means you will have to make a backup of your existing content databases and restore them on a SharePoint 2013 farm.

In this article I will show you how to upgrade a SharePoint 2010 content database to a CloudShare SharePoint 2013 Public Preview environment:

  • Before starting the upgrade process itself, you should document your SharePoint 2010 farm. You can do this by gathering information like:
    • Available content databases indicating the name, any issues or customizations identified, etc.
    • Services running on the farm and the farm topology. You should include what services running are being used in remote farms, the name of the Service Applications databases, custom configurations done, and so on.
    • At the web application level, you have to document any configuration related to alternate access mappings, authentication methods and providers being used, managed paths, etc. You should also identify any feature installed and also configurations at the web.config level.
  • As a starting point, you can use PowerShell cmdlets for these documentations tasks. For instance, the following script allows you to list features installed at a specifics site:
1: $SharePointSite=Get-SPWeb –Identity http://<YourSite>

 2: $SharePointSite.Features

  • If you want to identify any issue or customization, you should take into account that when upgrading a content database in a SharePoint 2013 public preview farm, you must simply execute the Test-SPContentDatabase command:
 1: Test-SPContentDatabase –Name <Nombre_BD> -WebApplication <URL>
  • Once the farm is fully documented, you can go ahead with the content databases upgrade process. SharePoint 2013 Public Preview allows you to upgrade content databases as well as  some service applications by using this approach. Indeed, you can upgrade the following service applications databases: Project Server, Search Administration, Social, Managed Metadata and Secure Store Service database.

So, let’s see how to upgrade a SharePoint 2010 content database to SharePoint 2013 Public Preview:

  • First, you have to make a backup of your content database in your CloudShare SharePoint 2010 environment. Once the backup is ready, copy it to your CloudShare SharePoint 2013 environment by using Cloud Folders capability.
  • Start SQL Server Management Studio, connect to your SQL Server instance on the server, and restore the SharePoint 2010 content database backup by using the “Restore Database…” menu option available at the Databases folder. In the “Restore database” window, specify the name of the database to be restored and the path where the backup is located. Click the “Ok” button in order to start the restore process.

image

  • Once the content database is restored on the SQL Server instance, go to the SharePoint 2013 Central Administration and create a new Web Application. In my case, I have created a web application using the 200 port number.

clip_image002

  • Before adding the restored content database to the web application, you must ensure the database is ready to be applied to a specific SharePoint 2013 web application. You have to use the Test-SPContentDatabase so you need to open the SharePoint 2013 Management Shell and type this command using the following syntax:
 1: Test-SPContentDatabase –Name <Nombre_BD> -ServerInstance <InstanciaServidor> -WebApplication <URL>
  • If the command execution detects issues in the content database, you will be notified in the output window. For instance, a common issue is to have orphan objects in the content database.

clip_image002[7]

  • As you can see above, Test-SPContentDatabase has found some issues (like missing Language Pack, missing Site Definition) in the content database that must be solved in order to make a successful upgrade.
  • Once you have fixed any problem found with the content database, you are ready to add to an existing web application. You can do it by executing the Mount-SPContentDatabase cmdlet using the following syntax:
 1: Mount-SPContentDatabase -Name <Nombre_BD> -WebApplication <URL_WebApp>
  • As a result, in the output window you will see the ID assigned to the content database in the CloudShare SharePoint 2013 Public Preview environment, the web application assigned, and the number of sites available. You will also see any issues found when adding the database to the web application. In this case, there is a problem with a site collection used for caching purposes for Office Web Apps in SharePoint 2010. Since these kinds of site collections are not supported any more in SharePoint 2013, you don’t have to make any further action.

clip_image002[9]

  • You can verify the result through the “Manage Content Databases” page available at the SharePoint 2013 Central Administration.

clip_image004

  • Of course, you can also check what site collections have been added to the web application once the upgrade process has finished.
  • As you can expect, any of these sites have a SharePoint 2010 look & feel in order to ensure the site is completely functional. Once you are sure the site works as expected, you can upgrade the site collection to SharePoint 2013 mode by using the links available on the status bar at the site home page.

clip_image006

  • For instance, below is how the same site looks in SharePoint 2013 mode.

clip_image008

And that’s all you have to do to upgrade SharePoint 2010 content databases to a CloudShare SharePoint 2013 public preview environment by using the database attach technique. Happy CloudSharing!

About the author:
With more than 10 years of experience in the ICT sector, what best define me is the interest and knowledge of new technologies as a natural way for attending and solving customer problems and needs. My career in the TIC sector, and particularly in the .NET platform started in 2003, just after finishing my studies at the university, in the global worldwide consultancy company Accenture. There, I had the opportunity of working during 3 years in big national and international projects performing different task and roles: development of VB.NET applications, application test and deployment, management of small development teams and so on. In May 2006 I left Accenture and started a new adventure at the Microsoft Innovation Center in Cantabria (CIIN) as a Solutions Architect. In this new stage, I had the opportunity of knowing deeply a variety of Microsoft technologies such as SharePoint, Office 365, Windows Azure, Visual Studio, SQL Server Reporting Services, BizTalk, LINQ, Entity Framework, etc. At the CIIN I haved performed evangelism activities just around these technologies, and I have had the honor of belonging to one of the more specialized organizations in SharePoint in Spain. In October 2013 I joined LKS where I perform a Consultant and Solutions Architect role skilled in SharePoint and Office 365 platforms. My daily work in LKS is focused on providing SharePoint & Office 365 advice and consultancy, specialized training and evangelism in the different projects and LKS customers where I’m involved.

  • Adam Warner

    Thanks for this. Most other guides to for Attach upgrade make it look a lot more complicated than it really is.

    • Juan Carlos González

      Thanks a lot for your comment Adam

  • Pingback: How-to, SharePoint How-To’s | Chris Riley