Skip to main content

applications

Creates, updates, deletes, gets or lists an applications resource.

Overview

Nameapplications
TypeResource
Idazure.service_fabric_dataplane.applications

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_applicationinsertendpoint, Name, TypeName, TypeVersiontimeoutCreates a Service Fabric application. Creates a Service Fabric application using the specified description.
delete_applicationdeleteapplication_id, endpointForceRemove, timeoutDeletes an existing Service Fabric application. An application must be created before it can be deleted. Deleting an application will delete all services that are part of that application. By default, Service Fabric will try to close service replicas in a graceful manner and then delete the service. However, if a service is having issues closing the replica gracefully, the delete operation may take a long time or get stuck. Use the optional ForceRemove flag to skip the graceful close sequence and forcefully delete the application and all of its services.
update_applicationexecapplication_id, endpointtimeoutUpdates a Service Fabric application. Updates a Service Fabric application instance. The set of properties that can be updated are a subset of the properties that were specified at the time of creating the application.

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: )
ForceRemovebooleanRemove a Service Fabric application or service forcefully without going through the graceful shutdown sequence. This parameter can be used to forcefully delete an application or service for which delete is timing out due to issues in the service code that prevents graceful close of replicas.
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 application. Creates a Service Fabric application using the specified description.

INSERT INTO azure.service_fabric_dataplane.applications (
Name,
TypeName,
TypeVersion,
ParameterList,
ApplicationCapacity,
ManagedApplicationIdentity,
endpoint,
timeout
)
SELECT
'{{ Name }}' /* required */,
'{{ TypeName }}' /* required */,
'{{ TypeVersion }}' /* required */,
'{{ ParameterList }}',
'{{ ApplicationCapacity }}',
'{{ ManagedApplicationIdentity }}',
'{{ endpoint }}',
'{{ timeout }}'
;

DELETE examples

Deletes an existing Service Fabric application. An application must be created before it can be deleted. Deleting an application will delete all services that are part of that application. By default, Service Fabric will try to close service replicas in a graceful manner and then delete the service. However, if a service is having issues closing the replica gracefully, the delete operation may take a long time or get stuck. Use the optional ForceRemove flag to skip the graceful close sequence and forcefully delete the application and all of its services.

DELETE FROM azure.service_fabric_dataplane.applications
WHERE application_id = '{{ application_id }}' --required
AND endpoint = '{{ endpoint }}' --required
AND ForceRemove = '{{ ForceRemove }}'
AND timeout = '{{ timeout }}'
;

Lifecycle Methods

Updates a Service Fabric application. Updates a Service Fabric application instance. The set of properties that can be updated are a subset of the properties that were specified at the time of creating the application.

EXEC azure.service_fabric_dataplane.applications.update_application 
@application_id='{{ application_id }}' --required,
@endpoint='{{ endpoint }}' --required,
@timeout='{{ timeout }}'
@@json=
'{
"Flags": "{{ Flags }}",
"RemoveApplicationCapacity": {{ RemoveApplicationCapacity }},
"MinimumNodes": {{ MinimumNodes }},
"MaximumNodes": {{ MaximumNodes }},
"ApplicationMetrics": "{{ ApplicationMetrics }}"
}'
;