Skip to main content

functions

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

Overview

Namefunctions
TypeResource
Idazure.stream_analytics.functions

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
etagtextfield from the properties object
functionNametextfield from the properties object
jobNametextfield from the properties object
propertiestextThe properties that are associated with a function.
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTfunctionName, jobName, resourceGroupName, subscriptionIdGets details about the specified function.
list_by_streaming_jobSELECTjobName, resourceGroupName, subscriptionIdLists all of the functions under the specified streaming job.
create_or_replaceINSERTfunctionName, jobName, resourceGroupName, subscriptionIdCreates a function or replaces an already existing function under an existing streaming job.
deleteDELETEfunctionName, jobName, resourceGroupName, subscriptionIdDeletes a function from the streaming job.
updateUPDATEfunctionName, jobName, resourceGroupName, subscriptionIdUpdates an existing function under an existing streaming job. This can be used to partially update (ie. update one or two properties) a function without affecting the rest the job or function definition.
retrieve_default_definitionEXECfunctionName, jobName, resourceGroupName, subscriptionId, data__bindingTypeRetrieves the default definition of a function based on the parameters specified.
testEXECfunctionName, jobName, resourceGroupName, subscriptionIdTests if the information provided for a function is valid. This can range from testing the connection to the underlying web service behind the function or making sure the function code provided is syntactically correct.

SELECT examples

Lists all of the functions under the specified streaming job.

SELECT
id,
name,
etag,
functionName,
jobName,
properties,
resourceGroupName,
subscriptionId,
type
FROM azure.stream_analytics.vw_functions
WHERE jobName = '{{ jobName }}'
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.stream_analytics.functions (
functionName,
jobName,
resourceGroupName,
subscriptionId,
name,
properties
)
SELECT
'{{ functionName }}',
'{{ jobName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ name }}',
'{{ properties }}'
;

UPDATE example

Updates a functions resource.

/*+ update */
UPDATE azure.stream_analytics.functions
SET
name = '{{ name }}',
properties = '{{ properties }}'
WHERE
functionName = '{{ functionName }}'
AND jobName = '{{ jobName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified functions resource.

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