applications
Creates, updates, deletes, gets or lists a applications
resource.
Overview
Name | applications |
Type | Resource |
Id | azure.service_fabric_managed_clusters.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 |
identity | text | Describes the managed identities for an Azure resource. |
location | text | Resource location depends on the parent resource. |
managed_identities | text | field from the properties object |
parameters | text | field from the properties object |
provisioning_state | 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. |
upgrade_policy | text | field from the properties object |
version | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Azure resource identifier. |
name | string | Azure resource name. |
identity | object | Describes the managed identities for an Azure resource. |
location | string | 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 managed application resource created or in the process of being created in the Service Fabric cluster resource. |
list | SELECT | clusterName, resourceGroupName, subscriptionId | Gets all managed 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 managed application resource with the specified name. |
delete | DELETE | applicationName, clusterName, resourceGroupName, subscriptionId | Delete a Service Fabric managed application resource with the specified name. |
update | UPDATE | applicationName, clusterName, resourceGroupName, subscriptionId | Updates the tags of an application resource of a given managed cluster. |
read_upgrade | EXEC | applicationName, clusterName, resourceGroupName, subscriptionId | Get the status of the latest application upgrade. It will query the cluster to find the status of the latest application upgrade. |
resume_upgrade | EXEC | applicationName, clusterName, resourceGroupName, subscriptionId | Send a request to resume the current application upgrade. This will resume the application upgrade from where it was paused. |
start_rollback | EXEC | applicationName, clusterName, resourceGroupName, subscriptionId | Send a request to start a rollback of the current application upgrade. This will start rolling back the application to the previous version. |
SELECT
examples
Gets all managed application resources created or in the process of being created in the Service Fabric cluster resource.
- vw_applications
- applications
SELECT
id,
name,
applicationName,
clusterName,
identity,
location,
managed_identities,
parameters,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
tags,
type,
upgrade_policy,
version
FROM azure.service_fabric_managed_clusters.vw_applications
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
identity,
location,
properties,
systemData,
tags,
type
FROM azure.service_fabric_managed_clusters.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_managed_clusters.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: provisioningState
value: string
- name: version
value: []
- name: parameters
value: []
- name: upgradePolicy
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: 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: instanceCloseDelayDuration
value: integer
- name: upgradeMode
value: []
- name: upgradeReplicaSetCheckTimeout
value: integer
- name: recreateApplication
value: boolean
- name: managedIdentities
value:
- - name: name
value: string
- name: principalId
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
- 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_managed_clusters.applications
SET
tags = '{{ tags }}'
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_managed_clusters.applications
WHERE applicationName = '{{ applicationName }}'
AND clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';