Skip to main content

transformations

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

Overview

Nametransformations
TypeResource
Idazure.stream_analytics.transformations

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
etagtextfield from the properties object
jobNametextfield from the properties object
querytextfield from the properties object
resourceGroupNametextfield from the properties object
streaming_unitstextfield from the properties object
subscriptionIdtextfield from the properties object
transformationNametextfield from the properties object
typetextResource type
valid_streaming_unitstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTjobName, resourceGroupName, subscriptionId, transformationNameGets details about the specified transformation.
create_or_replaceINSERTjobName, resourceGroupName, subscriptionId, transformationNameCreates a transformation or replaces an already existing transformation under an existing streaming job.
updateUPDATEjobName, resourceGroupName, subscriptionId, transformationNameUpdates an existing transformation under an existing streaming job. This can be used to partially update (ie. update one or two properties) a transformation without affecting the rest the job or transformation definition.

SELECT examples

Gets details about the specified transformation.

SELECT
id,
name,
etag,
jobName,
query,
resourceGroupName,
streaming_units,
subscriptionId,
transformationName,
type,
valid_streaming_units
FROM azure.stream_analytics.vw_transformations
WHERE jobName = '{{ jobName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND transformationName = '{{ transformationName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.stream_analytics.transformations (
jobName,
resourceGroupName,
subscriptionId,
transformationName,
name,
properties
)
SELECT
'{{ jobName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ transformationName }}',
'{{ name }}',
'{{ properties }}'
;

UPDATE example

Updates a transformations resource.

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