Skip to main content

function_secret_slots

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

Overview

Namefunction_secret_slots
TypeResource
Idazure.app_service.function_secret_slots

Fields

NameDatatypeDescription
keystringSecret key.
trigger_urlstringTrigger URL.

Methods

NameAccessible byRequired ParamsDescription
listSELECTfunctionName, name, resourceGroupName, slot, subscriptionIdDescription for Get function secrets for a function in a web site, or a deployment slot.
create_or_updateINSERTfunctionName, keyName, name, resourceGroupName, slot, subscriptionIdDescription for Add or update a function secret.
deleteDELETEfunctionName, keyName, name, resourceGroupName, slot, 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_secret_slots
WHERE functionName = '{{ functionName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND slot = '{{ slot }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified function_secret_slots resource.

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