Share via


New-ServiceFabricServiceGroup

Creates a Service Fabric service group.

Syntax

Stateless Singleton Non-Adhoc (Default)

New-ServiceFabricServiceGroup
    [-ApplicationName] <Uri>
    [-ServiceName] <Uri>
    [-ServiceTypeName] <String>
    -InstanceCount <Int32>
    -ServiceGroupMemberDescription <Hashtable[]>
    [-Stateless]
    [-PartitionSchemeSingleton]
    [-PlacementConstraint <String>]
    [-Metric <String[]>]
    [-Correlation <String[]>]
    [-PlacementPolicy <String[]>]
    [-ServicePackageActivationMode <ServicePackageActivationMode>]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Stateful Singleton Non-Adhoc

New-ServiceFabricServiceGroup
    [-ApplicationName] <Uri>
    [-ServiceName] <Uri>
    [-ServiceTypeName] <String>
    -TargetReplicaSetSize <Int32>
    -MinReplicaSetSize <Int32>
    -ServiceGroupMemberDescription <Hashtable[]>
    [-Stateful]
    [-PartitionSchemeSingleton]
    [-HasPersistedState]
    [-ReplicaRestartWaitDuration <TimeSpan>]
    [-QuorumLossWaitDuration <TimeSpan>]
    [-PlacementConstraint <String>]
    [-Metric <String[]>]
    [-Correlation <String[]>]
    [-PlacementPolicy <String[]>]
    [-ServicePackageActivationMode <ServicePackageActivationMode>]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Stateful UniformInt64 Non-Adhoc

New-ServiceFabricServiceGroup
    [-ApplicationName] <Uri>
    [-ServiceName] <Uri>
    [-ServiceTypeName] <String>
    -PartitionCount <Int32>
    -LowKey <Int64>
    -HighKey <Int64>
    -TargetReplicaSetSize <Int32>
    -MinReplicaSetSize <Int32>
    -ServiceGroupMemberDescription <Hashtable[]>
    [-Stateful]
    [-PartitionSchemeUniformInt64]
    [-HasPersistedState]
    [-ReplicaRestartWaitDuration <TimeSpan>]
    [-QuorumLossWaitDuration <TimeSpan>]
    [-PlacementConstraint <String>]
    [-Metric <String[]>]
    [-Correlation <String[]>]
    [-PlacementPolicy <String[]>]
    [-ServicePackageActivationMode <ServicePackageActivationMode>]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Stateful Named Non-Adhoc

New-ServiceFabricServiceGroup
    [-ApplicationName] <Uri>
    [-ServiceName] <Uri>
    [-ServiceTypeName] <String>
    -PartitionNames <String[]>
    -TargetReplicaSetSize <Int32>
    -MinReplicaSetSize <Int32>
    -ServiceGroupMemberDescription <Hashtable[]>
    [-Stateful]
    [-PartitionSchemeNamed]
    [-HasPersistedState]
    [-ReplicaRestartWaitDuration <TimeSpan>]
    [-QuorumLossWaitDuration <TimeSpan>]
    [-PlacementConstraint <String>]
    [-Metric <String[]>]
    [-Correlation <String[]>]
    [-PlacementPolicy <String[]>]
    [-ServicePackageActivationMode <ServicePackageActivationMode>]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Stateful Singleton Adhoc

New-ServiceFabricServiceGroup
    [-ServiceName] <Uri>
    [-ServiceTypeName] <String>
    -TargetReplicaSetSize <Int32>
    -MinReplicaSetSize <Int32>
    -ServiceGroupMemberDescription <Hashtable[]>
    [-Stateful]
    [-PartitionSchemeSingleton]
    [-Adhoc]
    [-HasPersistedState]
    [-ReplicaRestartWaitDuration <TimeSpan>]
    [-QuorumLossWaitDuration <TimeSpan>]
    [-PlacementConstraint <String>]
    [-Metric <String[]>]
    [-Correlation <String[]>]
    [-PlacementPolicy <String[]>]
    [-ServicePackageActivationMode <ServicePackageActivationMode>]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Stateful UniformInt64 Adhoc

New-ServiceFabricServiceGroup
    [-ServiceName] <Uri>
    [-ServiceTypeName] <String>
    -PartitionCount <Int32>
    -LowKey <Int64>
    -HighKey <Int64>
    -TargetReplicaSetSize <Int32>
    -MinReplicaSetSize <Int32>
    -ServiceGroupMemberDescription <Hashtable[]>
    [-Stateful]
    [-PartitionSchemeUniformInt64]
    [-Adhoc]
    [-HasPersistedState]
    [-ReplicaRestartWaitDuration <TimeSpan>]
    [-QuorumLossWaitDuration <TimeSpan>]
    [-PlacementConstraint <String>]
    [-Metric <String[]>]
    [-Correlation <String[]>]
    [-PlacementPolicy <String[]>]
    [-ServicePackageActivationMode <ServicePackageActivationMode>]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Stateful Named Adhoc

New-ServiceFabricServiceGroup
    [-ServiceName] <Uri>
    [-ServiceTypeName] <String>
    -PartitionNames <String[]>
    -TargetReplicaSetSize <Int32>
    -MinReplicaSetSize <Int32>
    -ServiceGroupMemberDescription <Hashtable[]>
    [-Stateful]
    [-PartitionSchemeNamed]
    [-Adhoc]
    [-HasPersistedState]
    [-ReplicaRestartWaitDuration <TimeSpan>]
    [-QuorumLossWaitDuration <TimeSpan>]
    [-PlacementConstraint <String>]
    [-Metric <String[]>]
    [-Correlation <String[]>]
    [-PlacementPolicy <String[]>]
    [-ServicePackageActivationMode <ServicePackageActivationMode>]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Stateless UniformInt64 Non-Adhoc

New-ServiceFabricServiceGroup
    [-ApplicationName] <Uri>
    [-ServiceName] <Uri>
    [-ServiceTypeName] <String>
    -PartitionCount <Int32>
    -LowKey <Int64>
    -HighKey <Int64>
    -InstanceCount <Int32>
    -ServiceGroupMemberDescription <Hashtable[]>
    [-Stateless]
    [-PartitionSchemeUniformInt64]
    [-PlacementConstraint <String>]
    [-Metric <String[]>]
    [-Correlation <String[]>]
    [-PlacementPolicy <String[]>]
    [-ServicePackageActivationMode <ServicePackageActivationMode>]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Stateless Named Non-Adhoc

New-ServiceFabricServiceGroup
    [-ApplicationName] <Uri>
    [-ServiceName] <Uri>
    [-ServiceTypeName] <String>
    -PartitionNames <String[]>
    -InstanceCount <Int32>
    -ServiceGroupMemberDescription <Hashtable[]>
    [-Stateless]
    [-PartitionSchemeNamed]
    [-PlacementConstraint <String>]
    [-Metric <String[]>]
    [-Correlation <String[]>]
    [-PlacementPolicy <String[]>]
    [-ServicePackageActivationMode <ServicePackageActivationMode>]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Stateless Singleton Adhoc

New-ServiceFabricServiceGroup
    [-ServiceName] <Uri>
    [-ServiceTypeName] <String>
    -InstanceCount <Int32>
    -ServiceGroupMemberDescription <Hashtable[]>
    [-Stateless]
    [-PartitionSchemeSingleton]
    [-Adhoc]
    [-PlacementConstraint <String>]
    [-Metric <String[]>]
    [-Correlation <String[]>]
    [-PlacementPolicy <String[]>]
    [-ServicePackageActivationMode <ServicePackageActivationMode>]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Stateless UniformInt64 Adhoc

New-ServiceFabricServiceGroup
    [-ServiceName] <Uri>
    [-ServiceTypeName] <String>
    -PartitionCount <Int32>
    -LowKey <Int64>
    -HighKey <Int64>
    -InstanceCount <Int32>
    -ServiceGroupMemberDescription <Hashtable[]>
    [-Stateless]
    [-PartitionSchemeUniformInt64]
    [-Adhoc]
    [-PlacementConstraint <String>]
    [-Metric <String[]>]
    [-Correlation <String[]>]
    [-PlacementPolicy <String[]>]
    [-ServicePackageActivationMode <ServicePackageActivationMode>]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Stateless Named Adhoc

New-ServiceFabricServiceGroup
    [-ServiceName] <Uri>
    [-ServiceTypeName] <String>
    -PartitionNames <String[]>
    -InstanceCount <Int32>
    -ServiceGroupMemberDescription <Hashtable[]>
    [-Stateless]
    [-PartitionSchemeNamed]
    [-Adhoc]
    [-PlacementConstraint <String>]
    [-Metric <String[]>]
    [-Correlation <String[]>]
    [-PlacementPolicy <String[]>]
    [-ServicePackageActivationMode <ServicePackageActivationMode>]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Description

The New-ServiceFabricServiceGroup cmdlet creates a Service Fabric service group. This cmdlet is similar to the New-ServiceFabricService cmdlet, except that this cmdlet creates a service group, and New-ServiceFabricService creates a service.

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

Examples

Example 1: Create a stateful service group

PS C:\> New-ServiceFabricServiceGroup -ApplicationName fabric:/myapp/persistenttodolist -ServiceName fabric:/myapp/persistenttodolist/svc1 -ServiceTypeName "PersistentToDoListServiceGroupType" -Stateful -PartitionSchemeSingleton -TargetReplicaSetSize 3 -MinReplicaSetSize 2 -ServiceGroupMemberDescription @(@{"ServiceName"="fabric:/myapp/persistenttodolist/svc1#a";"ServiceTypeName"=" PersistentToDoListServiceGroupTypeA"},@{"ServiceName"="fabric:/myapp/persistenttodolist/svc1#b";"ServiceTypeName"=" PersistentToDoListServiceGroupTypeB"})

This command creates a Service Fabric stateful service group from the specified application instance by using a singleton partition scheme.

Parameters

-Adhoc

Indicates that the service runs in ad hoc mode. In ad hoc mode, you manually activate the service host.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stateful Singleton Adhoc
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Adhoc
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Named Adhoc
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless Singleton Adhoc
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless UniformInt64 Adhoc
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless Named Adhoc
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ApplicationName

Specifies the Uniform Resource Identifier (URI) of a Service Fabric application. The cmdlet creates a service group based on the application that has the URI that you specify.

Parameter properties

Type:Uri
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stateless Singleton Non-Adhoc
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Singleton Non-Adhoc
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Non-Adhoc
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Named Non-Adhoc
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless UniformInt64 Non-Adhoc
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless Named Non-Adhoc
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Correlation

Specifies an array of correlation constraints for this service.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-HasPersistedState

Indicates that the stateful service has persistent state.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stateful Singleton Non-Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Non-Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Named Non-Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Singleton Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Named Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-HighKey

Specifies the high-key range of the partition set.

Parameter properties

Type:Int64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stateful UniformInt64 Non-Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless UniformInt64 Non-Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless UniformInt64 Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InstanceCount

Specifies the number of instances for the stateless service.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stateless Singleton Non-Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless UniformInt64 Non-Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless Named Non-Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless Singleton Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless UniformInt64 Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless Named Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LowKey

Specifies the low-key range of the partition set.

Parameter properties

Type:Int64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stateful UniformInt64 Non-Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless UniformInt64 Non-Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless UniformInt64 Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Metric

Specifies an array of metrics that the service reports.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-MinReplicaSetSize

Specifies the minimum replica set size for the Service Fabric stateful service.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stateful Singleton Non-Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Non-Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Named Non-Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Singleton Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Named Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PartitionCount

Specifies the number of partition counts for the service.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stateful UniformInt64 Non-Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless UniformInt64 Non-Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless UniformInt64 Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PartitionNames

Specifies an array of names of partitions.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stateful Named Non-Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Named Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless Named Non-Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless Named Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PartitionSchemeNamed

Indicates that the service uses the named partition scheme.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stateful Named Non-Adhoc
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Named Adhoc
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless Named Non-Adhoc
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless Named Adhoc
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PartitionSchemeSingleton

Indicates that the service uses the singleton partition scheme.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stateless Singleton Non-Adhoc
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Singleton Non-Adhoc
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Singleton Adhoc
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless Singleton Adhoc
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PartitionSchemeUniformInt64

Indicates that the service uses the UniformInt64 partition scheme.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stateful UniformInt64 Non-Adhoc
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Adhoc
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless UniformInt64 Non-Adhoc
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless UniformInt64 Adhoc
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PlacementConstraint

Specifies the placement constraint for the service.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PlacementPolicy

Specifies an array of placement policies for a service.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-QuorumLossWaitDuration

Specifies the duration, as a TimeSpan object, that Service Fabric waits before it declares data loss for the service partition. To obtain a TimeSpan object, use the New-TimeSpan cmdlet. For more information, type Get-Help New-TimeSpan.

Parameter properties

Type:TimeSpan
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stateful Singleton Non-Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Non-Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Named Non-Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Singleton Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Named Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ReplicaRestartWaitDuration

Specifies the interval, as a TimeSpan object, that Service Fabric waits for the replica to restart before it fails over the replica. To obtain a TimeSpan object, use the New-TimeSpan cmdlet.

Parameter properties

Type:TimeSpan
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stateful Singleton Non-Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Non-Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Named Non-Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Singleton Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Named Adhoc
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ServiceGroupMemberDescription

Indicates the member configurations of a service group. Specify the value for this parameter in the following format:

@(@{"ServiceName"=<serviceName>;"ServiceTypeName"=<serviceType>;"LoadMetrics"=<metrics>}).

For example: @(@{"ServiceName"="fabric:/myapp/calculator/svc1;"ServiceTypeName"="CalculatorServiceType"})

Parameter properties

Type:

Hashtable[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ServiceName

Specifies the URI of a Service Fabric service group.

Parameter properties

Type:Uri
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:3
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ServicePackageActivationMode

Controls the [hosting model][1] to be used for the service. Valid values are SharedProcess and ExclusiveProcess. The default is SharedProcess.

With SharedProcess activation mode, replicas (or instances) of different services of a given ServiceType will share same ServiceHost. With ExclusiveProcess activation mode, each replica or instance of a service will have its own dedicated ServiceHost. For more details, please see [Service Fabric Hosting Model][1].

Parameter properties

Type:ServicePackageActivationMode
Default value:None
Accepted values:SharedProcess, ExclusiveProcess
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ServiceTypeName

Specifies the name of a Service Fabric service type.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:4
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Stateful

Indicates that the service is a Service Fabric stateful service.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stateful Singleton Non-Adhoc
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Non-Adhoc
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Named Non-Adhoc
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Singleton Adhoc
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Adhoc
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Named Adhoc
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Stateless

Indicates that the service is a Service Fabric stateless service.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stateless Singleton Non-Adhoc
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless UniformInt64 Non-Adhoc
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless Named Non-Adhoc
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless Singleton Adhoc
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless UniformInt64 Adhoc
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateless Named Adhoc
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TargetReplicaSetSize

Specifies the target replica set size for a Service Fabric stateful service.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stateful Singleton Non-Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Non-Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Named Non-Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Singleton Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful UniformInt64 Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Stateful Named Adhoc
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TimeoutSec

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

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object