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:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
etagstringAzure resource etag.
identityobjectThe managed service identities assigned to this resource.
locationstringIt will be deprecated in New API, resource location depends on the parent resource.
managedIdentitiesarrayList of user assigned identities for the application, each mapped to a friendly name.
maximumNodesintegerThe maximum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. By default, the value of this property is zero and it means that the services can be placed on any node.
metricsarrayList of application capacity metric description.
minimumNodesintegerThe minimum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. If this property is set to zero, no capacity will be reserved. The value of this property cannot be more than the value of the MaximumNodes property.
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.
removeApplicationCapacitybooleanRemove the current application capacity settings.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectAzure resource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
typeNamestringThe application type name as defined in the application manifest.
typeVersionstringThe version of the application type as defined in the application manifest.
upgradePolicyobjectDescribes the policy for a monitored application upgrade.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, cluster_name, application_name, subscription_idGets a Service Fabric application resource. Get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource.
listselectresource_group_name, cluster_name, subscription_idGets the list of application resources created in the specified Service Fabric cluster resource. Gets all 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_idCreates or updates a Service Fabric application resource. Create or update a Service Fabric application resource with the specified name.
updateupdateresource_group_name, cluster_name, application_name, subscription_idUpdates a Service Fabric application resource. Update a Service Fabric application resource with the specified name.
create_or_updatereplaceresource_group_name, cluster_name, application_name, subscription_idCreates or updates a Service Fabric application resource. Create or update a Service Fabric application resource with the specified name.
deletedeleteresource_group_name, cluster_name, application_name, subscription_idDeletes a Service Fabric application resource. Delete 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
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

Gets a Service Fabric application resource. 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,
managedIdentities,
maximumNodes,
metrics,
minimumNodes,
parameters,
provisioningState,
removeApplicationCapacity,
systemData,
tags,
type,
typeName,
typeVersion,
upgradePolicy
FROM azure.service_fabric.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

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

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

UPDATE examples

Updates a Service Fabric application resource. Update a Service Fabric application resource with the specified name.

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

REPLACE examples

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

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

DELETE examples

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

DELETE FROM azure.service_fabric.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
;