Skip to main content

service_from_templates

Creates, updates, deletes, gets or lists a service_from_templates resource.

Overview

Nameservice_from_templates
TypeResource
Idazure.service_fabric_dataplane.service_from_templates

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_service_from_templateinsertapplication_id, endpoint, ApplicationName, ServiceName, ServiceTypeNametimeoutCreates a Service Fabric service from the service template. Creates a Service Fabric service from the service template defined in the application manifest. A service template contains the properties that will be same for the service instance of the same type. The API allows overriding the properties that are usually different for different services of the same service type.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
application_idstringThe identity of the application. This is typically the full name of the application without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "" character. For example, if the application name is "fabric:/myapp/app1", the application identity would be "myappapp1" in 6.0+ and "myapp/app1" in previous versions.
endpointstringThe service endpoint host (no scheme). (default: )
timeoutinteger (int64)The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is willing to wait for the requested operation to complete. The default value for this parameter is 60 seconds.

INSERT examples

Creates a Service Fabric service from the service template. Creates a Service Fabric service from the service template defined in the application manifest. A service template contains the properties that will be same for the service instance of the same type. The API allows overriding the properties that are usually different for different services of the same service type.

INSERT INTO azure.service_fabric_dataplane.service_from_templates (
ApplicationName,
ServiceName,
ServiceTypeName,
InitializationData,
ServicePackageActivationMode,
ServiceDnsName,
application_id,
endpoint,
timeout
)
SELECT
'{{ ApplicationName }}' /* required */,
'{{ ServiceName }}' /* required */,
'{{ ServiceTypeName }}' /* required */,
'{{ InitializationData }}',
'{{ ServicePackageActivationMode }}',
'{{ ServiceDnsName }}',
'{{ application_id }}',
'{{ endpoint }}',
'{{ timeout }}'
;