Wednesday, 22 July 2015

How to get know if Managed Metadata Service Application is created for multi tenancy

If you have got a farm with already Managed Metadata Service Application created, how can you check whether or not this service application was created partitioned for site subscriptions?
According to Microsoft Technet article https://technet.microsoft.com/en-us/library/ff608097.aspx for creating new multi-tenant service application you usually use following command:
New-SPMetadataServiceApplicationProxy -Name "MetadataServiceProxy3" -ServiceApplication "MetadataServiceApp3" –PartitionMode
But what if service application is already created and you do not know is it site subscription (SPSiteSubscription) aware or not.
When you open service application administration page, there is no any distinguishing attribute you can use.
And there is no any PowerShell command to examine existing service application.
The only way I found is to look at service application properties.
image
image
The only difference I found is Content Type Hub parameter that is visible in case if service application was created without partitioning. Otherwise there is no way to specify Content Type Hub because it should be assigned for each tenant separately, using command Set-SPSiteSubscriptionMetadataConfig.
So now you know at least one approach how to get know if existing Managed Metadata Application Service supports multi tenancy or not. Would be great if you know any other ways to do that, I am looking forward to your comments!

2 comments:

  1. Now I have found the way to check it with powershell.

    $mmsName = 'Managed Metadata Service'
    $mms = Get-SPServiceApplication | ? { $_.Name -eq $mmsName }
    $mms.Properties["Microsoft.Office.Server.Utilities.SPPartitionOptions"]
    $mmsProxyName = 'Managed Metadata Service Proxy'
    $mmsProxy = Get-SPServiceApplication | ? { $_.Name -eq $mmsName }
    $mmsProxy.Properties["Microsoft.Office.Server.Utilities.SPPartitionOptions"]

    Both service application and proxy should respond "UniquePartitionPerSubscription"

    If service application is not partitioned, response will be "UnPartitioned"

    ReplyDelete
    Replies
    1. Thanks a lot! This information seems really very hard to find anywhere!
      Glad, you provided it! :D

      Delete