Skip to main content

services

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

Overview

Nameservices
TypeResource
Idazure.service_fabric_managed_clusters.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
locationtextResource 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
scaling_policiestextfield 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 managed application resource.
list_by_applicationsSELECTapplicationName, clusterName, resourceGroupName, subscriptionIdGets all service resources created or in the process of being created in the Service Fabric managed application resource.
create_or_updateINSERTapplicationName, clusterName, resourceGroupName, serviceName, subscriptionIdCreate or update a Service Fabric managed service resource with the specified name.
deleteDELETEapplicationName, clusterName, resourceGroupName, serviceName, subscriptionIdDelete a Service Fabric managed service resource with the specified name.
updateUPDATEapplicationName, clusterName, resourceGroupName, serviceName, subscriptionIdUpdates the tags of a service resource of a given managed cluster.

SELECT examples

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

SELECT
id,
name,
applicationName,
clusterName,
correlation_scheme,
default_move_cost,
location,
partition_description,
placement_constraints,
provisioning_state,
resourceGroupName,
scaling_policies,
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_managed_clusters.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_managed_clusters.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_managed_clusters.services
SET
tags = '{{ tags }}'
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_managed_clusters.services
WHERE applicationName = '{{ applicationName }}'
AND clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';