Microsoft.ServiceFabric clusters/applications/services 2019-06-01-preview

Template format

To create a Microsoft.ServiceFabric/clusters/applications/services resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.ServiceFabric/clusters/applications/services",
  "apiVersion": "2019-06-01-preview",
  "location": "string",
  "tags": {},
  "properties": {
    "placementConstraints": "string",
    "correlationScheme": [
      {
        "scheme": "string",
        "serviceName": "string"
      }
    ],
    "serviceLoadMetrics": [
      {
        "name": "string",
        "weight": "string",
        "primaryDefaultLoad": "integer",
        "secondaryDefaultLoad": "integer",
        "defaultLoad": "integer"
      }
    ],
    "servicePlacementPolicies": [
      {
        "Type": "string"
      }
    ],
    "defaultMoveCost": "string",
    "serviceTypeName": "string",
    "partitionDescription": {
      "partitionScheme": "string"
    },
    "servicePackageActivationMode": "string",
    "serviceKind": "string"
  }
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.ServiceFabric/clusters/applications/services object

Note

In Bicep, type and apiVersion are specified in the first line of the resource declaration. Use the format <type>@<apiVersion>. Don't set those properties in the resource body.

Name Type Required Value
name string Yes The name of the service resource in the format of {applicationName}~{serviceName}.
type enum Yes For JSON -services
-or-
Microsoft.ServiceFabric/clusters/applications/services

See Set name and type for child resources.
apiVersion enum Yes For JSON - 2019-06-01-preview
location string No It will be deprecated in New API, resource location depends on the parent resource.
tags object No Azure resource tags.
properties object Yes The service resource properties. - ServiceResourceProperties object

ServiceResourceProperties object

Name Type Required Value
placementConstraints string No The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
correlationScheme array No A list that describes the correlation of the service with other services. - ServiceCorrelationDescription object
serviceLoadMetrics array No The service load metrics is given as an array of ServiceLoadMetricDescription objects. - ServiceLoadMetricDescription object
servicePlacementPolicies array No A list that describes the correlation of the service with other services. - ServicePlacementPolicyDescription object
defaultMoveCost enum No Specifies the move cost for the service. - Zero, Low, Medium, High
serviceTypeName string No The name of the service type
partitionDescription object No Describes how the service is partitioned. - PartitionSchemeDescription object
servicePackageActivationMode enum No The activation Mode of the service package. - SharedProcess or ExclusiveProcess
serviceKind string Yes

ServiceCorrelationDescription object

Name Type Required Value
scheme enum Yes The ServiceCorrelationScheme which describes the relationship between this service and the service specified via ServiceName. - Invalid, Affinity, AlignedAffinity, NonAlignedAffinity
serviceName string Yes The name of the service that the correlation relationship is established with.

ServiceLoadMetricDescription object

Name Type Required Value
name string Yes The name of the metric. If the service chooses to report load during runtime, the load metric name should match the name that is specified in Name exactly. Note that metric names are case sensitive.
weight enum No The service load metric relative weight, compared to other metrics configured for this service, as a number. - Zero, Low, Medium, High
primaryDefaultLoad integer No Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Primary replica.
secondaryDefaultLoad integer No Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Secondary replica.
defaultLoad integer No Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric.

ServicePlacementPolicyDescription object

Name Type Required Value
Type string Yes

PartitionSchemeDescription object

Name Type Required Value
partitionScheme string Yes