ServiceFromTemplateDescription Class

Defines description for creating a Service Fabric service from a template defined in the application manifest.

All required parameters must be populated in order to send to Azure.

Inheritance
ServiceFromTemplateDescription

Constructor

ServiceFromTemplateDescription(*, application_name: str, service_name: str, service_type_name: str, initialization_data=None, service_package_activation_mode=None, service_dns_name: Optional[str] = None, **kwargs)

Parameters

application_name
str
Required

Required. The name of the application, including the 'fabric:' URI scheme.

service_name
str
Required

Required. The full name of the service with 'fabric:' URI scheme.

service_type_name
str
Required

Required. Name of the service type as specified in the service manifest.

initialization_data
list[int]
Required

The initialization data for the newly created service instance.

service_package_activation_mode
str or ServicePackageActivationMode
Required

The activation mode of service package to be used for a service. Possible values include: 'SharedProcess', 'ExclusiveProcess'

service_dns_name
str
Required

The DNS name of the service. It requires the DNS system service to be enabled in Service Fabric cluster.