Get-​Service​Fabric​Service​Manifest

Gets the Service Fabric service type manifest.

Syntax

Get-ServiceFabricServiceManifest
   [-ApplicationTypeName] <String>
   [-ApplicationTypeVersion] <String>
   [-ServiceManifestName] <String>
   [-TimeoutSec <Int32>]
   [<CommonParameters>]

Description

The Get-ServiceFabricServiceManifest cmdlet gets the Service Fabric service type manifest. The application containing the service must be registered with Register-ServiceFabricApplicationType before using Get-ServiceFabricServiceManifest.

Before you perform any operation on a Service Fabric cluster, establish a connection to the cluster by using the Connect-ServiceFabricCluster cmdlet.

To understand the Service Fabric application model, see Model an application in Service Fabric

Examples

Example 1: Get the service manifest

PS C:\> Get-ServiceFabricServiceManifest -ApplicationTypeName "WordCount" -ApplicationTypeVersion "1.0.0" -ServiceManifestName "WordCountServicePkg"

The command gets the service manifest for the service "WordCountServicePkg" of application type "1.0.0" and application version "WordCount".

See Word Count Sample's Application Manifest

Required Parameters

-ApplicationTypeName

Specifies the name of a Service Fabric application type. The application type name can be found in the ApplicationManifest.xml. The cmdlet gets the service manifest for the application type that you specify.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ApplicationTypeVersion

Specifies the version of a Service Fabric application type. The application type version can be found in the ApplicationManifest.xml. The cmdlet gets the service manifest for the application type version that you specify.

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ServiceManifestName

Specifies the name of a Service Fabric service package containing the service manifest. The Service manifest name can be found in the ApplicationManifest.xml.

Type:String
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-TimeoutSec

Specifies the time-out period, in seconds, for the operation.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

This cmdlet accepts the name of a Service Fabric application type, the version of this application type and the name of a service package.

Outputs

System.Object

This cmdlet returns the content of a Service Fabric service type manifest.