CONFIGURING MULTITENANCY HOSTING IN SHAREPOINT 2010 AND SHAREPOINT 2013

If we consider a hosted environment like SharePoint Online it offers customers 2 mode of hosting
1. Standard: This is a shared infrastructure where multiple customers will be hosting their web applications/site collections (what we call as multi-tenant mode)
2. Dedicated: This is a separate infrastructure of the customer
Multitenancy is the ability to host unique deployments for multiple tenants on the same SharePoint server farm by isolating the data, operational services, and management of a tenant from other tenants using the same farm.
To achieve Multitenancy–based architectures requires a combination of
the following key capabilities:
➤ Site subscriptions
➤ Service application partitioning
➤ Tenant administration
➤ Feature packs

Create the Site subscriptions
• Create the Subscription Settings SA & Proxy
http://gallery.technet.microsoft.com/ScriptCenter/c6598b84-1a58-4d55-ab41-fe7608cb343c

Get-SPServiceInstance | where{$_.GetType().Name -eq "SPSubscriptionSettingsServiceInstance"} | Start-SPServiceInstance

$acc = Get-SPManagedAccount "sharepoint\spservices"
$appPool = New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account $acc

$app = New-SPSubscriptionSettingsServiceApplication –ApplicationPool $appPool –Name SettingsServiceApp –DatabaseName SettingsServiceDB
$proxy = New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $app

•Create new Site Subscription(s)
•Create Tenant Admin Site(s)
•Create Member Sites(s)
http://gallery.technet.microsoft.com/ScriptCenter/en-us/6b012e44-4262-4446-9112-a8b3133c4654
Get-SPServiceInstance | where{$_.GetType().Name -eq "SPSubscriptionSettingsServiceInstance"} | Start-SPServiceInstance
$acc = Get-SPManagedAccount "sharepoint\spservices"
$appPool = New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account $acc
$app = New-SPSubscriptionSettingsServiceApplication –ApplicationPool $appPool –Name SettingsServiceApp –DatabaseName SettingsServiceDB
$proxy = New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $app

Service application partitioning


Get-SPServiceInstance | where{$_.GetType().Name -eq "MetadataWebServiceInstance"} | Start-SPServiceInstance

$pool = Get-SPServiceApplicationPool -Identity 'SharePoint Web Services Default'
$meta = New-SPMetadataServiceApplication -ApplicationPool $pool -Name 'Tenant Managed Metadata' -DatabaseName TenantMetadataDB -DatabaseServer sp2010 -PartitionMode

$proxy = New-SPMetadataServiceApplicationProxy -PartitionMode -ContentTypePushdownEnabled -DefaultKeywordTaxonomy -DefaultSiteCollectionTaxonomy -Name 'Tenant Managed Metadata Proxy' -DefaultProxyGroup -ServiceApplication $meta

Set-SPSiteSubscriptionMetadataConfig -identity $sub -serviceProxy $proxy -hubUri 'http://sp2010/mircosoft/mdhub'

Feature packs
http://gallery.technet.microsoft.com/ScriptCenter/d32274d0-e19c-4553-8556-3938671c95d9/

$sub = Get-SPSiteSubscription -identity GUID
$pack = New-SPSiteSubscriptionFeaturePack
$pack
Add-SPSiteSubscriptionFeaturePackMember -identity $pack -FeatureDefinition eaf6a128-0482-4f71-9a2f-b1c650680e77
$pack
$mgr = [Microsoft.SharePoint.SPSiteSubscriptionSettingsManager]::Local
$mgr.AssignFeaturePackToSiteSubscription($pack, $sub)

Advertisements