Skip to main content

functions

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

Overview

Namefunctions
TypeResource
Idazure.app_service.functions

Fields

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

Methods

NameAccessible byRequired ParamsDescription
getSELECTfunctionName, name, resourceGroupName, subscriptionIdDescription for Get function information by its ID for web site, or a deployment slot.
listSELECTname, resourceGroupName, subscriptionIdDescription for List the functions for a web site, or a deployment slot.
createINSERTfunctionName, name, resourceGroupName, subscriptionIdDescription for Create function for web site, or a deployment slot.
deleteDELETEfunctionName, name, resourceGroupName, subscriptionIdDescription for Delete a function for web site, or a deployment slot.

SELECT examples

Description for List the functions for a web site, or a deployment slot.

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

INSERT example

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

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

DELETE example

Deletes the specified functions resource.

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