Skip to main content

streaming_jobs

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

Overview

Namestreaming_jobs
TypeResource
Idazure.stream_analytics.streaming_jobs

Fields

NameDatatypeDescription
clustertextfield from the properties object
compatibility_leveltextfield from the properties object
content_storage_policytextfield from the properties object
created_datetextfield from the properties object
data_localetextfield from the properties object
etagtextfield from the properties object
events_late_arrival_max_delay_in_secondstextfield from the properties object
events_out_of_order_max_delay_in_secondstextfield from the properties object
events_out_of_order_policytextfield from the properties object
functionstextfield from the properties object
identitytextDescribes how identity is verified
inputstextfield from the properties object
jobNametextfield from the properties object
job_idtextfield from the properties object
job_statetextfield from the properties object
job_storage_accounttextfield from the properties object
job_typetextfield from the properties object
last_output_event_timetextfield from the properties object
locationtextThe geo-location where the resource lives
output_error_policytextfield from the properties object
output_start_modetextfield from the properties object
output_start_timetextfield from the properties object
outputstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
transformationtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTjobName, resourceGroupName, subscriptionIdGets details about the specified streaming job.
listSELECTsubscriptionIdLists all of the streaming jobs in the given subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all of the streaming jobs in the specified resource group.
create_or_replaceINSERTjobName, resourceGroupName, subscriptionIdCreates a streaming job or replaces an already existing streaming job.
deleteDELETEjobName, resourceGroupName, subscriptionIdDeletes a streaming job.
updateUPDATEjobName, resourceGroupName, subscriptionIdUpdates an existing streaming job. This can be used to partially update (ie. update one or two properties) a streaming job without affecting the rest the job definition.
scaleEXECjobName, resourceGroupName, subscriptionIdScales a streaming job when the job is running.
startEXECjobName, resourceGroupName, subscriptionIdStarts a streaming job. Once a job is started it will start processing input events and produce output.
stopEXECjobName, resourceGroupName, subscriptionIdStops a running streaming job. This will cause a running streaming job to stop processing input events and producing output.

SELECT examples

Lists all of the streaming jobs in the given subscription.

SELECT
cluster,
compatibility_level,
content_storage_policy,
created_date,
data_locale,
etag,
events_late_arrival_max_delay_in_seconds,
events_out_of_order_max_delay_in_seconds,
events_out_of_order_policy,
functions,
identity,
inputs,
jobName,
job_id,
job_state,
job_storage_account,
job_type,
last_output_event_time,
location,
output_error_policy,
output_start_mode,
output_start_time,
outputs,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
tags,
transformation
FROM azure.stream_analytics.vw_streaming_jobs
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.stream_analytics.streaming_jobs (
jobName,
resourceGroupName,
subscriptionId,
tags,
location,
properties,
identity
)
SELECT
'{{ jobName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}'
;

UPDATE example

Updates a streaming_jobs resource.

/*+ update */
UPDATE azure.stream_analytics.streaming_jobs
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
jobName = '{{ jobName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified streaming_jobs resource.

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