Skip to main content

applications

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

Overview

Nameapplications
TypeResource
Idazure.service_fabric_managed_clusters.applications

Fields

The following fields are returned by SELECT queries:

The operation completed successfully.

NameDatatypeDescription
idstringAzure resource identifier.
namestringAzure resource name.
identityobjectDescribes the managed identities for an Azure resource.
locationstringResource location depends on the parent resource.
propertiesobjectThe application resource properties.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectAzure resource tags.
typestringAzure resource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, clusterName, applicationNameapi-versionGet a Service Fabric managed application resource created or in the process of being created in the Service Fabric cluster resource.
listselectsubscriptionId, resourceGroupName, clusterNameapi-versionGets all managed application resources created or in the process of being created in the Service Fabric cluster resource.
create_or_updateinsertsubscriptionId, resourceGroupName, clusterName, applicationNameapi-versionCreate or update a Service Fabric managed application resource with the specified name.
updateupdatesubscriptionId, resourceGroupName, clusterName, applicationNameapi-versionUpdates the tags of an application resource of a given managed cluster.
deletedeletesubscriptionId, resourceGroupName, clusterName, applicationNameapi-versionDelete a Service Fabric managed application resource with the specified name.
read_upgradeexecsubscriptionId, resourceGroupName, clusterName, applicationNameapi-versionGet the status of the latest application upgrade. It will query the cluster to find the status of the latest application upgrade.
start_rollbackexecsubscriptionId, resourceGroupName, clusterName, applicationNameapi-versionSend a request to start a rollback of the current application upgrade. This will start rolling back the application to the previous version.
resume_upgradeexecsubscriptionId, resourceGroupName, clusterName, applicationNameapi-versionSend a request to resume the current application upgrade. This will resume the application upgrade from where it was paused.

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
applicationNamestringThe name of the application resource.
clusterNamestringThe name of the cluster resource.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringThe customer subscription identifier.
api-versionstringThe version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2024-06-01-preview" for this specification.

SELECT examples

Get a Service Fabric managed application resource created or in the process of being created in the Service Fabric cluster resource.

SELECT
id,
name,
identity,
location,
properties,
systemData,
tags,
type
FROM azure.service_fabric_managed_clusters.applications
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND clusterName = '{{ clusterName }}' -- required
AND applicationName = '{{ applicationName }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

Create or update a Service Fabric managed application resource with the specified name.

INSERT INTO azure.service_fabric_managed_clusters.applications (
data__identity,
data__properties,
data__location,
data__tags,
subscriptionId,
resourceGroupName,
clusterName,
applicationName,
api-version
)
SELECT
'{{ identity }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ clusterName }}',
'{{ applicationName }}',
'{{ api-version }}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates the tags of an application resource of a given managed cluster.

UPDATE azure.service_fabric_managed_clusters.applications
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND applicationName = '{{ applicationName }}' --required
AND api-version = '{{ api-version}}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a Service Fabric managed application resource with the specified name.

DELETE FROM azure.service_fabric_managed_clusters.applications
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND applicationName = '{{ applicationName }}' --required
AND api-version = '{{ api-version }}'
;

Lifecycle Methods

Get the status of the latest application upgrade. It will query the cluster to find the status of the latest application upgrade.

EXEC azure.service_fabric_managed_clusters.applications.read_upgrade 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@clusterName='{{ clusterName }}' --required,
@applicationName='{{ applicationName }}' --required,
@api-version='{{ api-version }}'
;