applications
Creates, updates, deletes, gets or lists a applications
resource.
Overview
Name | applications |
Type | Resource |
Id | azure.service_fabric.applications |
Fields
- vw_applications
- applications
Name | Datatype | Description |
---|---|---|
id | text | Azure resource identifier. |
name | text | Azure resource name. |
applicationName | text | field from the properties object |
clusterName | text | field from the properties object |
etag | text | Azure resource etag. |
identity | text | Describes the managed identities for an Azure resource. |
location | text | It will be deprecated in New API, resource location depends on the parent resource. |
managed_identities | text | field from the properties object |
maximum_nodes | text | field from the properties object |
metrics | text | field from the properties object |
minimum_nodes | text | field from the properties object |
parameters | text | field from the properties object |
provisioning_state | text | field from the properties object |
remove_application_capacity | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | Azure resource tags. |
type | text | Azure resource type. |
type_name | text | field from the properties object |
type_version | text | field from the properties object |
upgrade_policy | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Azure resource identifier. |
name | string | Azure resource name. |
etag | string | Azure resource etag. |
identity | object | Describes the managed identities for an Azure resource. |
location | string | It will be deprecated in New API, resource location depends on the parent resource. |
properties | object | The application resource properties. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Azure resource tags. |
type | string | Azure resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | applicationName, clusterName, resourceGroupName, subscriptionId | Get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource. |
list | SELECT | clusterName, resourceGroupName, subscriptionId | Gets all application resources created or in the process of being created in the Service Fabric cluster resource. |
create_or_update | INSERT | applicationName, clusterName, resourceGroupName, subscriptionId | Create or update a Service Fabric application resource with the specified name. |
delete | DELETE | applicationName, clusterName, resourceGroupName, subscriptionId | Delete a Service Fabric application resource with the specified name. |
update | UPDATE | applicationName, clusterName, resourceGroupName, subscriptionId | Update a Service Fabric application resource with the specified name. |
SELECT
examples
Gets all application resources created or in the process of being created in the Service Fabric cluster resource.
- vw_applications
- applications
SELECT
id,
name,
applicationName,
clusterName,
etag,
identity,
location,
managed_identities,
maximum_nodes,
metrics,
minimum_nodes,
parameters,
provisioning_state,
remove_application_capacity,
resourceGroupName,
subscriptionId,
system_data,
tags,
type,
type_name,
type_version,
upgrade_policy
FROM azure.service_fabric.vw_applications
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
etag,
identity,
location,
properties,
systemData,
tags,
type
FROM azure.service_fabric.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.service_fabric.applications (
applicationName,
clusterName,
resourceGroupName,
subscriptionId,
identity,
properties,
location,
tags,
systemData
)
SELECT
'{{ applicationName }}',
'{{ clusterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ identity }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}',
'{{ systemData }}'
;
- name: your_resource_model_name
props:
- name: identity
value:
- name: principalId
value: string
- name: tenantId
value: string
- name: type
value: []
- name: userAssignedIdentities
value: []
- name: properties
value:
- name: typeVersion
value: []
- name: parameters
value: []
- name: upgradePolicy
value:
- name: upgradeReplicaSetCheckTimeout
value: string
- name: forceRestart
value: []
- name: rollingUpgradeMonitoringPolicy
value:
- name: failureAction
value: string
- name: healthCheckWaitDuration
value: []
- name: healthCheckStableDuration
value: []
- name: healthCheckRetryTimeout
value: []
- name: upgradeTimeout
value: []
- name: upgradeDomainTimeout
value: []
- name: applicationHealthPolicy
value:
- name: considerWarningAsError
value: boolean
- name: maxPercentUnhealthyDeployedApplications
value: integer
- name: defaultServiceTypeHealthPolicy
value:
- name: maxPercentUnhealthyServices
value: integer
- name: maxPercentUnhealthyPartitionsPerService
value: integer
- name: maxPercentUnhealthyReplicasPerPartition
value: integer
- name: serviceTypeHealthPolicyMap
value: []
- name: upgradeMode
value: []
- name: recreateApplication
value: boolean
- name: minimumNodes
value: integer
- name: maximumNodes
value: integer
- name: removeApplicationCapacity
value: boolean
- name: metrics
value: []
- name: managedIdentities
value:
- - name: name
value: string
- name: principalId
value: string
- name: provisioningState
value: string
- name: typeName
value: []
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
- name: etag
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
UPDATE
example
Updates a applications
resource.
/*+ update */
UPDATE azure.service_fabric.applications
SET
properties = '{{ properties }}',
location = '{{ location }}',
tags = '{{ tags }}',
systemData = '{{ systemData }}'
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.applications
WHERE applicationName = '{{ applicationName }}'
AND clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';