Thursday, June 16, 2016

How to remember my windows credentials for a SharePoint site

When we access a SharePoint site outside the domain, we get the annoying login prompt although we ask our browser to remember our credentials

image

How to get rid of that login prompt and automatically navigate to the site. Following were the steps I used

Settings in Internet Options

image

image

image

image

image

image

Settings in Credentials Manager

image

image

That’s all we have to do.

Tuesday, May 24, 2016

Microsoft Azure resource manager portal - check the core limit using PowerShell

Recently I had to work on a new Azure tenant in resource manager portal. Unfortunately there was an issue when creating new virtual machines. It gave me an error saying that cores are not sufficient.

bce9ff21-e598-497a-8e9e-a7193521ff4d

I needed to verify the core availability.

In Azure classic portal I can easily navigate to my subscription and check available resources like below.

image

Let’s try to check the same with Azure resource manager portal.

image

Oops. I couldn’t find any place in new portal to check the resource usage. specifically number of cores available versus utilized.

But there is a way to check that. We can use Azure PowerShell.

First you need to download Azure PowerShell module. Following are the commands we need to use.

Login-AzureRmAccount

Get-AzureRmSubscription –SubscriptionName "Pay-As-You-Go" | Select-AzureRmSubscription

Get-AzureRmVMUsage -Location "australiaeast"

8478a723-d9d1-4d32-9840-667345c82b92

Sunday, May 15, 2016

Lecture – Introduction to SharePoint at University of Colombo School of Computing (UCSC)

I did my first lecture at UCSC 12th of May 2016 as a guest lecturer. I was asked to do a lecture   for the subject, “Advanced Web Technologies”.

I did a session on SharePoint and how it complies with modern workplace trends.

Following is the presentation I used to conduct the session.

Sunday, May 1, 2016

Azure Roadshow 2016 – Microsoft Azure Notification Hub

Recently myself and Prabath did a session on “Azure Notification Hubs” in Azure RoadShow Sri Lanka event. We selected that topic because it is related to Azure mobile services and modern application development.

Notification Hubs handle end to end mobile notification including following features

  • Device registration
  • Message distribution
  • Message templating
  • Message targeting

Following is the presentation we did

 

Following are some pics taken from the event

1   2

3 4

5  6

IMG_1792

Monday, April 25, 2016

Resolve error : “This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to read from the configuration database. To connect this server to the server farm, use the SharePoint Products Configuration Wizard, located on the Start menu in Microsoft SharePoint 2010 Products” in SharePoint 2013 farm

Recently I came across an error like this in one of our SharePoint 2013 farms. The entire SharePoint farm was not available, even the Central Administration site gave me the exact error message

image

The error is related to database. Anyway I did’t do any changes to permission or any other modifications to bring my farm down. However I thought of checking the status of database server. I navigated to DB server and SQL Server Configuration Manager.

Due to some strange reason SQL Server service was stopped. It may be due to an unplanned restart of the server.

image

image

Once I started the service, my SharePoint farm came back to life

Thursday, April 7, 2016

Stop unresponsive SharePoint 2013 service application service using PowerShell

In SharePoint we have Services on this Server page to manage different services like User Profile Service and SQL Server Reporting Services Service. Using that interface we can easily stop certain services from some servers and start them in other servers.

In one of my SharePoint farms, I needed to stop certain services in a particular server. I click on the stop link, but it was stuck in “Stopping”

image

I tried restarting SharePoint Timer Service and other remedies found in internet, but i was not that lucky.

I tried PowerShell as well.

First get the GUID of the required service application service using following command

Get-SPServiceInstance
I used following command to stop the service
Stop-SPServiceInstance -Identity "297f0d12-c09e-4182-8c42-e28065a36027"

image

There seems to be an unresponsive job. Let’s see the job first.

Get-SPTimerJob | where {$_.name -like "job-service-instance-297f0d12-c09e-4182-8c42-e28065a36027"}

image

Let’s delete the Job

$deleteJob = Get-SPTimerJob | where {$_.name -like "job-service-instance-297f0d12-c09e-4182-8c42-e28065a36027"}
$deleteJob.delete()

image

Then we will use PowerShell command to stop the service

Stop-SPServiceInstance -Identity "297f0d12-c09e-4182-8c42-e28065a36027"

image

After few seconds the service was stopped successfully

image

Friday, April 1, 2016

Resolving SharePoint 2013 installation error : This product requires Microsoft .Net Framework 4.5

When I try to install SharePoint 2013 in Microsoft Azure Virtual Machine, I got a strange error. It says that I don’t have Dot Net framework 4.5 installed.

image

I’m pretty sure that I’ve configured prerequisites properly. Even I checked the installed features to check if I forgot the required framework.

image

After some research, I found out that this may due to an unsupported .Net framework version. Currently .Net framework 4.6 is not supported for SharePoint 2013.

First we need to find out currently installed .Net versions. To check that there is a nice tool called “.Net Framework Setup Verification Utility” . You can download the tool from this location.

image

OK. We found out the culprit. We have both 4.6 and 4.6.1 versions. We need to uninstall them.

We can uninstall the update from Add or Remove Programs in Control Panel.

Navigate to “View instaled updates”  -> “Uninstall an update” section and search for KB3102467. Then we need to uninstall it as shown below. Finally we need to restart the server.

image

image

image

image

After restarting the server we can verify the .Net framework version again.

image

Great. Now we have .Net Framework 4.5.2 as our latest update. All seems to be fine.

Let’s start the SharePoint installation wizard.

image

No more prerequisite errors now. We can proceed with the installation