Skip to main content

applications

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

Overview

Nameapplications
TypeResource
Idazure.service_fabric_managed_clusters.applications

Fields

NameDatatypeDescription
idtextAzure resource identifier.
nametextAzure resource name.
applicationNametextfield from the properties object
clusterNametextfield from the properties object
identitytextDescribes the managed identities for an Azure resource.
locationtextResource location depends on the parent resource.
managed_identitiestextfield from the properties object
parameterstextfield from the properties object
provisioning_statetextfield 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.
upgrade_policytextfield from the properties object
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTapplicationName, clusterName, resourceGroupName, subscriptionIdGet a Service Fabric managed application resource created or in the process of being created in the Service Fabric cluster resource.
listSELECTclusterName, resourceGroupName, subscriptionIdGets all managed 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 managed application resource with the specified name.
deleteDELETEapplicationName, clusterName, resourceGroupName, subscriptionIdDelete a Service Fabric managed application resource with the specified name.
updateUPDATEapplicationName, clusterName, resourceGroupName, subscriptionIdUpdates the tags of an application resource of a given managed cluster.
read_upgradeEXECapplicationName, clusterName, resourceGroupName, subscriptionIdGet the status of the latest application upgrade. It will query the cluster to find the status of the latest application upgrade.
resume_upgradeEXECapplicationName, clusterName, resourceGroupName, subscriptionIdSend a request to resume the current application upgrade. This will resume the application upgrade from where it was paused.
start_rollbackEXECapplicationName, clusterName, resourceGroupName, subscriptionIdSend a request to start a rollback of the current application upgrade. This will start rolling back the application to the previous version.

SELECT examples

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

SELECT
id,
name,
applicationName,
clusterName,
identity,
location,
managed_identities,
parameters,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
tags,
type,
upgrade_policy,
version
FROM azure.service_fabric_managed_clusters.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_managed_clusters.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_managed_clusters.applications
SET
tags = '{{ tags }}'
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_managed_clusters.applications
WHERE applicationName = '{{ applicationName }}'
AND clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';