Skip to main content

services

Creates, updates, deletes, gets or lists a services resource.

Overview

Nameservices
TypeResource
Idazure.service_fabric.services

Fields

NameDatatypeDescription
idtextAzure resource identifier.
nametextAzure resource name.
applicationNametextfield from the properties object
clusterNametextfield from the properties object
correlation_schemetextfield from the properties object
default_move_costtextfield from the properties object
etagtextAzure resource etag.
locationtextIt will be deprecated in New API, resource location depends on the parent resource.
partition_descriptiontextfield from the properties object
placement_constraintstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
service_dns_nametextfield from the properties object
service_kindtextfield from the properties object
service_load_metricstextfield from the properties object
service_package_activation_modetextfield from the properties object
service_placement_policiestextfield from the properties object
service_type_nametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextAzure resource tags.
typetextAzure resource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTapplicationName, clusterName, resourceGroupName, serviceName, subscriptionIdGet a Service Fabric service resource created or in the process of being created in the Service Fabric application resource.
listSELECTapplicationName, clusterName, resourceGroupName, subscriptionIdGets all service resources created or in the process of being created in the Service Fabric application resource.
create_or_updateINSERTapplicationName, clusterName, resourceGroupName, serviceName, subscriptionIdCreate or update a Service Fabric service resource with the specified name.
deleteDELETEapplicationName, clusterName, resourceGroupName, serviceName, subscriptionIdDelete a Service Fabric service resource with the specified name.
updateUPDATEapplicationName, clusterName, resourceGroupName, serviceName, subscriptionIdUpdate a Service Fabric service resource with the specified name.

SELECT examples

Gets all service resources created or in the process of being created in the Service Fabric application resource.

SELECT
id,
name,
applicationName,
clusterName,
correlation_scheme,
default_move_cost,
etag,
location,
partition_description,
placement_constraints,
provisioning_state,
resourceGroupName,
serviceName,
service_dns_name,
service_kind,
service_load_metrics,
service_package_activation_mode,
service_placement_policies,
service_type_name,
subscriptionId,
system_data,
tags,
type
FROM azure.service_fabric.vw_services
WHERE applicationName = '{{ applicationName }}'
AND clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new services resource.

/*+ create */
INSERT INTO azure.service_fabric.services (
applicationName,
clusterName,
resourceGroupName,
serviceName,
subscriptionId,
properties,
location,
tags,
systemData
)
SELECT
'{{ applicationName }}',
'{{ clusterName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}',
'{{ systemData }}'
;

UPDATE example

Updates a services resource.

/*+ update */
UPDATE azure.service_fabric.services
SET
properties = '{{ properties }}',
location = '{{ location }}',
tags = '{{ tags }}',
systemData = '{{ systemData }}'
WHERE
applicationName = '{{ applicationName }}'
AND clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified services resource.

/*+ delete */
DELETE FROM azure.service_fabric.services
WHERE applicationName = '{{ applicationName }}'
AND clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';