Deploy SharePoint 2013 in Windows Azure

For most of the people who are into IT of large organizations, it’s easy to learn SharePoint as most of these organizations have right infrastructure along with right software licenses.

But if you are an individual who want’s to learn SharePoint, especially 2013 in private, the options are next to none as everything from hardware to software are prohibitively costly.

Now thanks to Microsoft’s Windows Azure, you have all the things needed to proceed with your learning at relatively low to moderate pricing. Even you get a 30 day trial.

The following are the topics I have covered to get you started and pointers to ponder before starting.

  1. Setting up in Azure
  2. Billing
  3. No more de-provisioning the VMs
  4. Missing Items
  5. Pointers

Setting up in Azure

You can visit the link Step-by-Step: Build a FREE SharePoint 2013 Lab in the Cloud with Windows Azure Infrastructure Services by Keith to deploy a SharePoint 2013 lab environment and even expose the site to internet.

This setup requires the following.

  1. A Windows Server 2012 based VM for AD
  2. A SQL Server 2012 based VM for Data
  3. A SharePoint 2013 Trial based VM for SharePoint 2013 App Server
  4. A DNS Server
  5. A Virtual Network
  6. An affinity group
  7. A storage account
  8. Setting your machine (client machine) with Windows Azure PowerShell

You have to note that this environment doesn’t have Visual Studio available for development. But as Keith mentions there is an option to setup a development environment.

If you want to run Visual Studio on a VM within Azure, I’d recommend preparing a new VM in your virtual network from the Windows Server 2012 platform image.  You’ll likely want to customize it a bit to act more like a development client environment – check out my prior article at blogs.technet.com/…/step-by-step-building-a-free-windows-8-app-dev-lab-in-the-cloud-with-windows-azure-virtual-machines.aspx for the steps.  This article if primarily oriented towards setting up a Windows 8 App Development environment on Azure, but a full copy of Visual Studio with SharePoint development support could easily be substituted at the end of the article instead of using Visual Studio Express.

Hope this helps!

Keith

Billing

At the time of writing this article the charges would be mostly towards the 3 VMs. The following is my assumption.

“When the VM’s are shutdown, the computing for related Cloud Services & storage would not be added.”

Take this with a grain of salt.

Hence the computing will be as following.

  1. AD – Small VM (1.6GHz CPU, 1.75GB RAM, 225GB Storage) – $0.09/hr (pay as you go)
  2. SQL Server – Medium VM (2 x 1.6GHz CPU, 3.5GB RAM, 490GB Storage) – $0.225/hr (pay as you go)
  3. SharePoint 2013 Trial – Large VM (4 x 1.6GHz CPU, 7GB RAM, 1,000GB Storage) – $0.36/hr (pay as you go)

No more de-provisioning the VMs

When Windows Azure was rolled out one of the issue for most of the people was that, even after the VM’s are shutdown, your computing will be accumulated and charged. The reason behind that is, until unless the VMs were de-provisioned, the fabric resources or resources which the VM’s use will be reserved.

Previous to this enhancement being available, the Azure platform maintained fabric resource reservations for VMs, even in a shutdown state, to ensure consistent resource availability when starting those VMs in the future.  And, this meant that VMs had to be exported and completely deprovisioned when not in use to avoid compute charges.

Hence user’s use to de-provision the VMs so that they are not charged when the VMs are not in use.

But during the June 2013 TechEd conference an enhancement was rolled out, called “VMs that are shutdown from the Windows Azure Management Portal will no longer continue to accumulate compute charges while stopped!

Hence from the time of posting this article, all you need to do was shutdown the VM from Azure Portal instead of running De-Provision PowerShell script and your computing will not be accumulated. That is your VM will be in “Stopped (Deallocated)” status.

But it has some after effects like when the VM is started again it will have new Dynamic IP.

“Deallocated” means that the VM configuration is no longer being actively associated with fabric resources, such as virtual CPUs, memory and networks. In this state, the VM will not continue to allocate compute charges, but since fabric resources are deallocated, the VM could receive a different internal IP address ( called “Dynamic IPs” or “DIPs” in Windows Azure ) the next time it is started.

Missing Items

CONTOSO\Administrator

In the article “Step-by-Step: Build a FREE SharePoint 2013 Lab in the Cloud with Windows Azure Infrastructure Services” Keith would have not mentioned about creating the user “CONTOSO\Administrator“. Do that at the time of creating the service accounts.

Joining the server to domain contoso.com

In the article “Step-by-Step: Build a FREE SharePoint 2013 Lab in the Cloud with Windows Azure Infrastructure Services” Keith would have mentioned the DB & SP App servers to be joined with contoso.com.

If you are not a Windows Server administrator or don’t have experience, then you may not know how to join a server to an existing domain.

It’s very simple, read the heading “Change server name or join a domain” at How to perform four common tasks in Windows Server 2012

Pointers

  • When you create a VM, make sure you select the right Virtual Network and Storage Account.
  • When you delete a VM, it’s associated Virtual Hard disk (VHD) would not be deleted. You have to manually delete it from storage account.
  • If you are not able to delete a VHD and get “Error deleting VHD: There is currently a lease on the blob and no lease ID was specified in the request” follow this Microsoft Forum Thread Error deleting VHD

When you visit the above links, don’t forget to go through the comments posted. Those comments have lot of useful queries from various users as well as replies from Keith.

Oh by the way, it took me not more than couple of hours to setup and configure SharePoint 2013 in Windows Azure and it’s awesomely easy. The only thing which took time was SharePoint configuration Wizard. It took nearly 10 minutes!.

So what are you waiting for, start messing with SharePoint 2013 !

Showing items counts in SharePoint 2010 Search Refinement Panel

Bringing search count in refinement panel of SharePoint 2010 search result page is very easy and straight forward.

  1. Edit the page containing the search result page with refinement panel.
  2. Go to the web part properties of refinement panel.
  3. Expand the “Refinement” section and edit “Filter Category Definition”
  4. For each “Category” add ShowCounts=”Count”
  5. Check-in and publish the page
<Category Title="Title" Description="Use this filter to restrict results authored by a specific author" Type="Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator" MetadataThreshold="1" NumberOfFiltersToDisplay="4" MaxNumberOfFilters="20" SortBy="Frequency" SortByForMoreFilters="Name" SortDirection="Descending" SortDirectionForMoreFilters="Ascending" ShowMoreLink="True" MappedProperty="Title" MoreLinkText="show more" LessLinkText="show fewer" ShowCounts="Count"/>

If the count doesn’t show up, then uncheck the “Use Default Configuration” checkbox under the same “Refinement” section.

Searching in a list with one keyword across two columns

We have a document list with 2 columns. One is a text column and other is a lookup column

The requirement was that, user should be able to search across two columns, where the condition being, search should match with either of the column. The following url format works for this particualr scenario.

http://server/sites/site1/sitePages/DocumentSearchPage.aspx?k= &r=Column1:”query*” OR Column2:”query*”&cs=This List&u=http://server/sites/site1/library1

Note:

DocumentSearchPage.aspx has a Search Core Results webpart.

The parameer “k” is not required. But sometime without this parameter search result is blank. Hence “k” will have a empty character as string.

cs=This List is a query paramter which helps in searching a particular library. This depends on the parameter “u” explained in next line.

u=http://server/sites/site1/library1 is the library from which search result should come.

Hide or disable social tags using SocialRibbonControl sharepoint 2010

A Microsoft SharePoint Server 2010 farm-level feature called SocialRibbonControl causes the I Like It and Tags & Notes controls to be displayed on the Documents and Items tabs of the ribbon for document libraries and lists, as well as on all browse pages. These controls enable users to tag and rate items and to leave notes on Web pages, including the users’ My Profile pages. By default, the SocialRibbonControl feature is enabled.

Please Note : Disabling the SocialRibbonControl feature is not the same as removing the Use Social Features for a user or a group. To see how to disable them for a particular user or group see the Post DisableHide social Tags, Notes for a group in Sharepoint 2010

Activate or deactivate the SocialRibbonControl feature by using Central Administration

After you perform this procedure, users will not see the I Like It or Tags & Notes controls when they browse pages or edit document libraries and lists

To activate or deactivate the SocialRibbonControl feature by using Central Administration

  1. Verify that you have the following administrative credentials: * You must be a member of the Farm Administrators group, or you must have been assigned permission to administer the User Profile service application that is running in the farm. For more information, see Assign administration of a User Profile service application (SharePoint Server 2010).
  2. On the Central Administration Web site, in the System Settings section, click Manage farm features.
  3. In the list of features, in the Social Tags and Note Board Ribbon Controls row, do one of the following: * Click Activate. * ClickDeactivate, and then click Deactivate this feature.
    Activate or deactivate the SocialRibbonControl feature by using Windows PowerShell

After you perform this procedure, users will not see the I Like It or Tags & Notes controls when they browse pages or edit document libraries and lists.

To activate or deactivate the SocialRibbonControl feature by using Windows PowerShell

  1. On the Start menu, click All Programs.
  2. Click Microsoft SharePoint 2010 Products.
  3. Click SharePoint 2010 Management Shell.
  4. At the Windows PowerShell 2.0 command prompt, type one of the following commands:
    Enable-SPFeature -Identity “”
    Disable-SPFeature -Identity “”

Where: * is the name or GUID of the SharePoint feature you want to enable or disable. To find the name or GUID of a SharePoint feature, use the Get-SPFeature cmdlet.

Source: http://www.learningsharepoint.com/2010/11/07/hide-social-tags-using-socialribboncontrol-sharepoint-2010/