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:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
identityobjectDescribes the managed identities for an Azure resource.
locationstringThe geo-location where the resource lives.
managedIdentitiesarrayList of user assigned identities for the application, each mapped to a friendly name.
parametersobjectList of application parameters with overridden values from their default values specified in the application manifest.
provisioningStatestringThe current deployment or provisioning state, which only appears in the response.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
upgradePolicyobjectDescribes the policy for a monitored application upgrade.
versionstringThe version of the application type as defined in the application manifest. This name must be the full Arm Resource ID for the referenced application type version.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, cluster_name, application_name, subscription_idGet a Service Fabric managed application resource created or in the process of being created in the Service Fabric cluster resource.
listselectresource_group_name, cluster_name, subscription_idGets all managed application resources created or in the process of being created in the Service Fabric cluster resource.
create_or_updateinsertresource_group_name, cluster_name, application_name, subscription_idCreate or update a Service Fabric managed application resource with the specified name.
updateupdateresource_group_name, cluster_name, application_name, subscription_idUpdates an application resource of a given managed cluster.
create_or_updatereplaceresource_group_name, cluster_name, application_name, subscription_idCreate or update a Service Fabric managed application resource with the specified name.
deletedeleteresource_group_name, cluster_name, application_name, subscription_idDelete a Service Fabric managed application resource with the specified name.
read_upgradeexecresource_group_name, cluster_name, application_name, subscription_idGet the status of the latest application upgrade. It will query the cluster to find the status of the latest application upgrade.
resume_upgradeexecresource_group_name, cluster_name, application_name, subscription_idSend a request to resume the current application upgrade. This will resume the application upgrade from where it was paused.
start_rollbackexecresource_group_name, cluster_name, application_name, subscription_idSend a request to start a rollback of the current application upgrade. This will start rolling back the application to the previous version.
update_upgradeexecresource_group_name, cluster_name, application_name, subscription_id, name, upgradeKindSend a request to update the current application upgrade.
fetch_healthexecresource_group_name, cluster_name, application_name, subscription_idGet the status of the deployed application health. It will query the cluster to find the health of the deployed application.
restart_deployed_code_packageexecresource_group_name, cluster_name, application_name, subscription_id, nodeName, serviceManifestName, codePackageName, codePackageInstanceIdRestart a code package instance of a service replica or instance. This is a potentially destabilizing operation that should be used with immense care.

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_namestringThe name of the application resource. Required.
cluster_namestringThe name of the cluster resource. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

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,
managedIdentities,
parameters,
provisioningState,
systemData,
tags,
type,
upgradePolicy,
version
FROM azure.service_fabric_managed_clusters.applications
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND application_name = '{{ application_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

INSERT INTO azure.service_fabric_managed_clusters.applications (
properties,
tags,
identity,
location,
resource_group_name,
cluster_name,
application_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ identity }}',
'{{ location }}',
'{{ resource_group_name }}',
'{{ cluster_name }}',
'{{ application_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates an application resource of a given managed cluster.

UPDATE azure.service_fabric_managed_clusters.applications
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND application_name = '{{ application_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

REPLACE examples

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

REPLACE azure.service_fabric_managed_clusters.applications
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
identity = '{{ identity }}',
location = '{{ location }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND application_name = '{{ application_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
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 resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND application_name = '{{ application_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

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 
@resource_group_name='{{ resource_group_name }}' --required,
@cluster_name='{{ cluster_name }}' --required,
@application_name='{{ application_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;