Skip to main content

applications

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

Overview

Nameapplications
TypeResource
Idazure.service_fabric.applications

Fields

The following fields are returned by SELECT queries:

The operation completed successfully.

NameDatatypeDescription
idstringAzure resource identifier.
namestringAzure resource name.
etagstringAzure resource etag.
identityobjectDescribes the managed identities for an Azure resource.
locationstringIt will be deprecated in New API, resource 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 application resource created or in the process of being created in the Service Fabric cluster resource.
listselectsubscriptionId, resourceGroupName, clusterNameapi-versionGets all 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 application resource with the specified name.
updateupdatesubscriptionId, resourceGroupName, clusterName, applicationNameapi-versionUpdate a Service Fabric application resource with the specified name.
deletedeletesubscriptionId, resourceGroupName, clusterName, applicationNameapi-versionDelete a Service Fabric application resource with the specified name.

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 "2021-06-01" for this specification.

SELECT examples

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

SELECT
id,
name,
etag,
identity,
location,
properties,
systemData,
tags,
type
FROM azure.service_fabric.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 application resource with the specified name.

INSERT INTO azure.service_fabric.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,
etag,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update a Service Fabric application resource with the specified name.

UPDATE azure.service_fabric.applications
SET
data__properties = '{{ properties }}',
data__location = '{{ location }}',
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,
etag,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a Service Fabric application resource with the specified name.

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