Skip to main content

applications

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

Overview

Nameapplications
TypeResource
Idazure.service_fabric.applications

Fields

NameDatatypeDescription
idtextAzure resource identifier.
nametextAzure resource name.
applicationNametextfield from the properties object
clusterNametextfield from the properties object
etagtextAzure resource etag.
identitytextDescribes the managed identities for an Azure resource.
locationtextIt will be deprecated in New API, resource location depends on the parent resource.
managed_identitiestextfield from the properties object
maximum_nodestextfield from the properties object
metricstextfield from the properties object
minimum_nodestextfield from the properties object
parameterstextfield from the properties object
provisioning_statetextfield from the properties object
remove_application_capacitytextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextAzure resource tags.
typetextAzure resource type.
type_nametextfield from the properties object
type_versiontextfield from the properties object
upgrade_policytextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTapplicationName, clusterName, resourceGroupName, subscriptionIdGet a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource.
listSELECTclusterName, resourceGroupName, subscriptionIdGets all application resources created or in the process of being created in the Service Fabric cluster resource.
create_or_updateINSERTapplicationName, clusterName, resourceGroupName, subscriptionIdCreate or update a Service Fabric application resource with the specified name.
deleteDELETEapplicationName, clusterName, resourceGroupName, subscriptionIdDelete a Service Fabric application resource with the specified name.
updateUPDATEapplicationName, clusterName, resourceGroupName, subscriptionIdUpdate a Service Fabric application resource with the specified name.

SELECT examples

Gets all application resources created or in the process of being created in the Service Fabric cluster resource.

SELECT
id,
name,
applicationName,
clusterName,
etag,
identity,
location,
managed_identities,
maximum_nodes,
metrics,
minimum_nodes,
parameters,
provisioning_state,
remove_application_capacity,
resourceGroupName,
subscriptionId,
system_data,
tags,
type,
type_name,
type_version,
upgrade_policy
FROM azure.service_fabric.vw_applications
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new applications resource.

/*+ create */
INSERT INTO azure.service_fabric.applications (
applicationName,
clusterName,
resourceGroupName,
subscriptionId,
identity,
properties,
location,
tags,
systemData
)
SELECT
'{{ applicationName }}',
'{{ clusterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ identity }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}',
'{{ systemData }}'
;

UPDATE example

Updates a applications resource.

/*+ update */
UPDATE azure.service_fabric.applications
SET
properties = '{{ properties }}',
location = '{{ location }}',
tags = '{{ tags }}',
systemData = '{{ systemData }}'
WHERE
applicationName = '{{ applicationName }}'
AND clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified applications resource.

/*+ delete */
DELETE FROM azure.service_fabric.applications
WHERE applicationName = '{{ applicationName }}'
AND clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';