Skip to main content

function_secrets

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

Overview

Namefunction_secrets
TypeResource
Idazure.app_service.function_secrets

Fields

NameDatatypeDescription
keystringSecret key.
trigger_urlstringTrigger URL.

Methods

NameAccessible byRequired ParamsDescription
listSELECTfunctionName, name, resourceGroupName, subscriptionIdDescription for Get function secrets for a function in a web site, or a deployment slot.
create_or_updateINSERTfunctionName, keyName, name, resourceGroupName, subscriptionIdDescription for Add or update a function secret.
deleteDELETEfunctionName, keyName, name, resourceGroupName, subscriptionIdDescription for Delete a function secret.

SELECT examples

Description for Get function secrets for a function in a web site, or a deployment slot.

SELECT
key,
trigger_url
FROM azure.app_service.function_secrets
WHERE functionName = '{{ functionName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.app_service.function_secrets (
functionName,
keyName,
name,
resourceGroupName,
subscriptionId,
name,
value
)
SELECT
'{{ functionName }}',
'{{ keyName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ name }}',
'{{ value }}'
;

DELETE example

Deletes the specified function_secrets resource.

/*+ delete */
DELETE FROM azure.app_service.function_secrets
WHERE functionName = '{{ functionName }}'
AND keyName = '{{ keyName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';