ServiceDescription Class
A ServiceDescription contains all of the information necessary to create a service.
You probably want to use the sub-classes and not this class directly. Known sub-classes are: StatefulServiceDescription, StatelessServiceDescription
All required parameters must be populated in order to send to Azure.
- Inheritance
-
ServiceDescription
Constructor
ServiceDescription(*, service_name: str, service_type_name: str, partition_description, application_name: Optional[str] = None, initialization_data=None, placement_constraints: Optional[str] = None, correlation_scheme=None, service_load_metrics=None, service_placement_policies=None, default_move_cost=None, is_default_move_cost_specified: Optional[bool] = None, service_package_activation_mode=None, service_dns_name: Optional[str] = None, scaling_policies=None, tags_required_to_place=None, tags_required_to_run=None, **kwargs)
Parameters
- service_type_name
- str
Required. Name of the service type as specified in the service manifest.
The initialization data as an array of bytes. Initialization data is passed to service instances or replicas when they are created.
- partition_description
- PartitionSchemeDescription
Required. The partition description as an object.
- placement_constraints
- str
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)".
- service_placement_policies
- list[ServicePlacementPolicyDescription]
The service placement policies.
The move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High', 'VeryHigh'
- is_default_move_cost_specified
- bool
Indicates if the DefaultMoveCost property is specified.
- service_package_activation_mode
- str or ServicePackageActivationMode
The activation mode of service package to be used for a service. Possible values include: 'SharedProcess', 'ExclusiveProcess'
- service_dns_name
- str
The DNS name of the service. It requires the DNS system service to be enabled in Service Fabric cluster.
Feedback
Submit and view feedback for