Skip to main content

configuration_services

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

Overview

Nameconfiguration_services
TypeResource
Idazure.spring_apps.configuration_services

Fields

The following fields are returned by SELECT queries:

Success. The response describes the corresponding Application Configuration Service.

NameDatatypeDescription
propertiesobjectApplication Configuration Service properties payload

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, serviceName, configurationServiceNameGet the Application Configuration Service and its properties.
listselectsubscriptionId, resourceGroupName, serviceNameHandles requests to list all resources in a Service.
create_or_updateinsertsubscriptionId, resourceGroupName, serviceName, configurationServiceNameCreate the default Application Configuration Service or update the existing Application Configuration Service.
deletedeletesubscriptionId, resourceGroupName, serviceName, configurationServiceNameDisable the default Application Configuration Service.
validateexecsubscriptionId, resourceGroupName, serviceName, configurationServiceNameCheck if the Application Configuration Service settings are valid.
validate_resourceexecsubscriptionId, resourceGroupName, serviceName, configurationServiceNameCheck if the Application Configuration Service resource is valid.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
configurationServiceNamestringThe name of Application Configuration Service.
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serviceNamestringThe name of the Service resource.
subscriptionIdstringGets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Get the Application Configuration Service and its properties.

SELECT
properties
FROM azure.spring_apps.configuration_services
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND configurationServiceName = '{{ configurationServiceName }}' -- required
;

INSERT examples

Create the default Application Configuration Service or update the existing Application Configuration Service.

INSERT INTO azure.spring_apps.configuration_services (
data__properties,
subscriptionId,
resourceGroupName,
serviceName,
configurationServiceName
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ configurationServiceName }}'
RETURNING
properties
;

DELETE examples

Disable the default Application Configuration Service.

DELETE FROM azure.spring_apps.configuration_services
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND configurationServiceName = '{{ configurationServiceName }}' --required
;

Lifecycle Methods

Check if the Application Configuration Service settings are valid.

EXEC azure.spring_apps.configuration_services.validate 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@serviceName='{{ serviceName }}' --required,
@configurationServiceName='{{ configurationServiceName }}' --required
@@json=
'{
"gitProperty": "{{ gitProperty }}",
"refreshIntervalInSeconds": {{ refreshIntervalInSeconds }}
}'
;