Skip to main content

outputs

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

Overview

Nameoutputs
TypeResource
Idazure.stream_analytics.outputs

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
datasourcetextfield from the properties object
diagnosticstextfield from the properties object
etagtextfield from the properties object
jobNametextfield from the properties object
outputNametextfield from the properties object
resourceGroupNametextfield from the properties object
serializationtextfield from the properties object
size_windowtextfield from the properties object
subscriptionIdtextfield from the properties object
time_windowtextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTjobName, outputName, resourceGroupName, subscriptionIdGets details about the specified output.
list_by_streaming_jobSELECTjobName, resourceGroupName, subscriptionIdLists all of the outputs under the specified streaming job.
create_or_replaceINSERTjobName, outputName, resourceGroupName, subscriptionIdCreates an output or replaces an already existing output under an existing streaming job.
deleteDELETEjobName, outputName, resourceGroupName, subscriptionIdDeletes an output from the streaming job.
updateUPDATEjobName, outputName, resourceGroupName, subscriptionIdUpdates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition.
testEXECjobName, outputName, resourceGroupName, subscriptionIdTests whether an output’s datasource is reachable and usable by the Azure Stream Analytics service.

SELECT examples

Lists all of the outputs under the specified streaming job.

SELECT
id,
name,
datasource,
diagnostics,
etag,
jobName,
outputName,
resourceGroupName,
serialization,
size_window,
subscriptionId,
time_window,
type
FROM azure.stream_analytics.vw_outputs
WHERE jobName = '{{ jobName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a outputs resource.

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

DELETE example

Deletes the specified outputs resource.

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