Get the Identity of the BCS Service Application

Scenario/Problem: You need to find the identity of the BCS Service Application.

Solution: Use the Get-SPServiceApplication cmdlet.

To get a specific instance of a metadata service application, you need the identity of the service application. The Set-SPBusinessDataCatalogServiceApplication cmdlet requires an Identity parameter, but no Get-SPBusinessDataCatalogServiceApplication cmdlet exists. Therefore, you need to use the Get-SPServiceApplication cmdlet to display all service applications and find the Business Data Connectivity Service. Listing 15.1 shows the command line without any parameters.

Listing 15.1. Displaying the List of Service Applications

Get-SPServiceApplication

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.