Skip to main content

mesh_application

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

Overview

Namemesh_application
TypeResource
Idazure.service_fabric_dataplane.mesh_application

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
debugParamsstring
descriptionstring
diagnosticsobjectDescribes the diagnostics options available.
healthStatestringDescribes the health state of an application resource. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'
identityobjectInformation describing the identities associated with this application. All required parameters must be populated in order to send to Azure.
serviceNamesarrayNames of the services in the application.
servicesarray
statusstringStatus of the application. Possible values include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
statusDetailsstringGives additional information about the current status of the application.
unhealthyEvaluationstringWhen the application's health state is not 'Ok', this additional details from service fabric Health Manager for the user to know why the application is marked unhealthy.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectapplication_resource_name, endpointGets the Application resource with the given name. Gets the information about the Application resource with the given name. The information include the description and other properties of the Application.
listselectendpointLists all the application resources. Gets the information about all application resources in a given resource group. The information include the description and other properties of the Application.
create_or_updateinsertapplication_resource_name, endpoint, nameCreates or updates a Application resource. Creates a Application resource with the specified name, description and properties. If Application resource with the same name exists, then it is updated with the specified description and properties.
create_or_updatereplaceapplication_resource_name, endpoint, nameCreates or updates a Application resource. Creates a Application resource with the specified name, description and properties. If Application resource with the same name exists, then it is updated with the specified description and properties.
deletedeleteapplication_resource_name, endpointDeletes the Application resource. Deletes the Application resource identified by the name.
get_upgrade_progressexecapplication_resource_name, endpointGets the progress of the latest upgrade performed on this application resource. Gets the upgrade progress information about the Application resource with the given name. The information include percentage of completion and other upgrade state information of the Application resource.

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_resource_namestringThe identity of the application.
endpointstringThe service endpoint host (no scheme). (default: )

SELECT examples

Gets the Application resource with the given name. Gets the information about the Application resource with the given name. The information include the description and other properties of the Application.

SELECT
name,
debugParams,
description,
diagnostics,
healthState,
identity,
serviceNames,
services,
status,
statusDetails,
unhealthyEvaluation
FROM azure.service_fabric_dataplane.mesh_application
WHERE application_resource_name = '{{ application_resource_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

INSERT examples

Creates or updates a Application resource. Creates a Application resource with the specified name, description and properties. If Application resource with the same name exists, then it is updated with the specified description and properties.

INSERT INTO azure.service_fabric_dataplane.mesh_application (
name,
properties,
identity,
application_resource_name,
endpoint
)
SELECT
'{{ name }}' /* required */,
'{{ properties }}',
'{{ identity }}',
'{{ application_resource_name }}',
'{{ endpoint }}'
RETURNING
name,
identity,
properties
;

REPLACE examples

Creates or updates a Application resource. Creates a Application resource with the specified name, description and properties. If Application resource with the same name exists, then it is updated with the specified description and properties.

REPLACE azure.service_fabric_dataplane.mesh_application
SET
name = '{{ name }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
application_resource_name = '{{ application_resource_name }}' --required
AND endpoint = '{{ endpoint }}' --required
AND name = '{{ name }}' --required
RETURNING
name,
identity,
properties;

DELETE examples

Deletes the Application resource. Deletes the Application resource identified by the name.

DELETE FROM azure.service_fabric_dataplane.mesh_application
WHERE application_resource_name = '{{ application_resource_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods

Gets the progress of the latest upgrade performed on this application resource. Gets the upgrade progress information about the Application resource with the given name. The information include percentage of completion and other upgrade state information of the Application resource.

EXEC azure.service_fabric_dataplane.mesh_application.get_upgrade_progress 
@application_resource_name='{{ application_resource_name }}' --required,
@endpoint='{{ endpoint }}' --required
;