Skip to main content

build_database_connections

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

Overview

Namebuild_database_connections
TypeResource
Idazure.app_service.build_database_connections

Fields

NameDatatypeDescription
idstringResource Id.
namestringResource Name.
kindstringKind of resource.
propertiesobjectDatabaseConnection resource specific properties
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatabaseConnectionName, environmentName, name, resourceGroupName, subscriptionId
create_or_updateINSERTdatabaseConnectionName, environmentName, name, resourceGroupName, subscriptionIdDescription for Create or update a database connection for a static site build
deleteDELETEdatabaseConnectionName, environmentName, name, resourceGroupName, subscriptionId
updateUPDATEdatabaseConnectionName, environmentName, name, resourceGroupName, subscriptionIdDescription for Create or update a database connection for a static site build

SELECT examples

SELECT
id,
name,
kind,
properties,
type
FROM azure.app_service.build_database_connections
WHERE databaseConnectionName = '{{ databaseConnectionName }}'
AND environmentName = '{{ environmentName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.app_service.build_database_connections (
databaseConnectionName,
environmentName,
name,
resourceGroupName,
subscriptionId,
kind,
properties
)
SELECT
'{{ databaseConnectionName }}',
'{{ environmentName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ properties }}'
;

UPDATE example

Updates a build_database_connections resource.

/*+ update */
UPDATE azure.app_service.build_database_connections
SET
properties = '{{ properties }}'
WHERE
databaseConnectionName = '{{ databaseConnectionName }}'
AND environmentName = '{{ environmentName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified build_database_connections resource.

/*+ delete */
DELETE FROM azure.app_service.build_database_connections
WHERE databaseConnectionName = '{{ databaseConnectionName }}'
AND environmentName = '{{ environmentName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';