Skip to main content

services

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

Overview

Nameservices
TypeResource
Idazure.spring_apps.services

Fields

NameDatatypeDescription
fqdntextfield from the properties object
identitytextManaged service identity (either system assigned, or none)
infra_resource_grouptextfield from the properties object
locationtextThe GEO location of the resource.
maintenance_schedule_configurationtextfield from the properties object
managed_environment_idtextfield from the properties object
marketplace_resourcetextfield from the properties object
network_profiletextfield from the properties object
power_statetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
service_idtextfield from the properties object
skutextSku of Azure Spring Apps
subscriptionIdtextfield from the properties object
tagstextTags of the service which is a list of key value pairs that describe the resource.
versiontextfield from the properties object
vnet_addonstextfield from the properties object
zone_redundanttextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, serviceName, subscriptionIdGet a Service and its properties.
listSELECTresourceGroupName, subscriptionIdHandles requests to list all resources in a resource group.
list_by_subscriptionSELECTsubscriptionIdHandles requests to list all resources in a subscription.
create_or_updateINSERTresourceGroupName, serviceName, subscriptionIdCreate a new Service or update an exiting Service.
deleteDELETEresourceGroupName, serviceName, subscriptionIdOperation to delete a Service.
updateUPDATEresourceGroupName, serviceName, subscriptionIdOperation to update an exiting Service.
check_name_availabilityEXEClocation, subscriptionId, data__name, data__typeChecks that the resource name is valid and is not already in use.
disable_apm_globallyEXECresourceGroupName, serviceName, subscriptionId, data__resourceIdDisable an APM globally.
disable_test_endpointEXECresourceGroupName, serviceName, subscriptionIdDisable test endpoint functionality for a Service.
enable_apm_globallyEXECresourceGroupName, serviceName, subscriptionId, data__resourceIdEnable an APM globally.
enable_test_endpointEXECresourceGroupName, serviceName, subscriptionIdEnable test endpoint functionality for a Service.
flush_vnet_dns_settingEXECresourceGroupName, serviceName, subscriptionIdFlush Virtual Network DNS settings for a VNET injected Service.
regenerate_test_keyEXECresourceGroupName, serviceName, subscriptionId, data__keyTypeRegenerate a test key for a Service.
startEXECresourceGroupName, serviceName, subscriptionIdStart a Service.
stopEXECresourceGroupName, serviceName, subscriptionIdStop a Service.

SELECT examples

Handles requests to list all resources in a subscription.

SELECT
fqdn,
identity,
infra_resource_group,
location,
maintenance_schedule_configuration,
managed_environment_id,
marketplace_resource,
network_profile,
power_state,
provisioning_state,
resourceGroupName,
serviceName,
service_id,
sku,
subscriptionId,
tags,
version,
vnet_addons,
zone_redundant
FROM azure.spring_apps.vw_services
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.spring_apps.services (
resourceGroupName,
serviceName,
subscriptionId,
location,
tags,
properties,
identity,
sku
)
SELECT
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ identity }}',
'{{ sku }}'
;

UPDATE example

Updates a services resource.

/*+ update */
UPDATE azure.spring_apps.services
SET
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}',
identity = '{{ identity }}',
sku = '{{ sku }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified services resource.

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