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

The following fields are returned by SELECT queries:

Successfully retrieved the specified streaming job.

NameDatatypeDescription
identityobjectDescribes the system-assigned managed identity assigned to this job that can be used to authenticate with inputs and outputs.
locationstringThe geo-location where the resource lives
propertiesobjectThe properties that are associated with a streaming job. Required on PUT (CreateOrReplace) requests.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, jobName$expandGets details about the specified streaming job.
list_by_resource_groupselectsubscriptionId, resourceGroupName$expandLists all of the streaming jobs in the specified resource group.
listselectsubscriptionId$expandLists all of the streaming jobs in the given subscription.
create_or_replaceinsertsubscriptionId, resourceGroupName, jobNameIf-Match, If-None-MatchCreates a streaming job or replaces an already existing streaming job.
updateupdatesubscriptionId, resourceGroupName, jobNameIf-MatchUpdates 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.
deletedeletesubscriptionId, resourceGroupName, jobNameDeletes a streaming job.
startexecsubscriptionId, resourceGroupName, jobNameStarts a streaming job. Once a job is started it will start processing input events and produce output.
stopexecsubscriptionId, resourceGroupName, jobNameStops a running streaming job. This will cause a running streaming job to stop processing input events and producing output.
scaleexecsubscriptionId, resourceGroupName, jobNameScales a streaming job when the job is running.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
jobNamestringThe name of the streaming job.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
$expandstringThe $expand OData query parameter. This is a comma-separated list of additional streaming job properties to include in the response, beyond the default set returned when this parameter is absent. The default set is all streaming job properties other than 'inputs', 'transformation', 'outputs', and 'functions'.
If-MatchstringThe ETag of the streaming job. Omit this value to always overwrite the current record set. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.
If-None-MatchstringSet to '*' to allow a new streaming job to be created, but to prevent updating an existing record set. Other values will result in a 412 Pre-condition Failed response.

SELECT examples

Gets details about the specified streaming job.

SELECT
identity,
location,
properties,
tags
FROM azure.stream_analytics.streaming_jobs
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND jobName = '{{ jobName }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Creates a streaming job or replaces an already existing streaming job.

INSERT INTO azure.stream_analytics.streaming_jobs (
data__tags,
data__location,
data__properties,
data__identity,
subscriptionId,
resourceGroupName,
jobName,
If-Match,
If-None-Match
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ jobName }}',
'{{ If-Match }}',
'{{ If-None-Match }}'
RETURNING
identity,
location,
properties,
tags
;

UPDATE examples

Updates 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.

UPDATE azure.stream_analytics.streaming_jobs
SET
data__tags = '{{ tags }}',
data__location = '{{ location }}',
data__properties = '{{ properties }}',
data__identity = '{{ identity }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND jobName = '{{ jobName }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
identity,
location,
properties,
tags;

DELETE examples

Deletes a streaming job.

DELETE FROM azure.stream_analytics.streaming_jobs
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND jobName = '{{ jobName }}' --required
;

Lifecycle Methods

Starts a streaming job. Once a job is started it will start processing input events and produce output.

EXEC azure.stream_analytics.streaming_jobs.start 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@jobName='{{ jobName }}' --required
@@json=
'{
"outputStartMode": "{{ outputStartMode }}",
"outputStartTime": "{{ outputStartTime }}"
}'
;