streaming_jobs
Creates, updates, deletes, gets or lists a streaming_jobs resource.
Overview
| Name | streaming_jobs |
| Type | Resource |
| Id | azure.stream_analytics.streaming_jobs |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_resource_group
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
cluster | object | The cluster which streaming jobs will run on. |
compatibilityLevel | string | Controls certain runtime behaviors of the streaming job. Known values are: "1.0" and "1.2". |
contentStoragePolicy | string | Valid values are JobStorageAccount and SystemAccount. If set to JobStorageAccount, this requires the user to also specify jobStorageAccount property. . Known values are: "SystemAccount" and "JobStorageAccount". |
createdDate | string (date-time) | Value is an ISO-8601 formatted UTC timestamp indicating when the streaming job was created. |
dataLocale | string | The data locale of the stream analytics job. Value should be the name of a supported .NET Culture from the set https://msdn.microsoft.com/en-us/library/system.globalization.culturetypes(v=vs.110).aspx. Defaults to 'en-US' if none specified. |
etag | string | The current entity tag for the streaming job. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. |
eventsLateArrivalMaxDelayInSeconds | integer | The maximum tolerable delay in seconds where events arriving late could be included. Supported range is -1 to 1814399 (20.23:59:59 days) and -1 is used to specify wait indefinitely. If the property is absent, it is interpreted to have a value of -1. |
eventsOutOfOrderMaxDelayInSeconds | integer | The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in order. |
eventsOutOfOrderPolicy | string | Indicates the policy to apply to events that arrive out of order in the input event stream. Known values are: "Adjust" and "Drop". |
externals | object | The storage account where the custom code artifacts are located. |
functions | array | A list of one or more functions for the streaming job. The name property for each function is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual transformation. |
identity | object | Describes the managed identity assigned to this job that can be used to authenticate with inputs and outputs. |
inputs | array | A list of one or more inputs to the streaming job. The name property for each input is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual input. |
jobId | string | A GUID uniquely identifying the streaming job. This GUID is generated upon creation of the streaming job. |
jobState | string | Describes the state of the streaming job. |
jobStorageAccount | object | The properties that are associated with an Azure Storage account with MSI. |
jobType | string | Describes the type of the job. Valid modes are Cloud and 'Edge'. Known values are: "Cloud" and "Edge". |
lastOutputEventTime | string (date-time) | Value is either an ISO-8601 formatted timestamp indicating the last output event time of the streaming job or null indicating that output has not yet been produced. In case of multiple outputs or multiple streams, this shows the latest value in that set. |
location | string | The geo-location where the resource lives. |
outputErrorPolicy | string | Indicates the policy to apply to events that arrive at the output and cannot be written to the external storage due to being malformed (missing column values, column values of wrong type or size). Known values are: "Stop" and "Drop". |
outputStartMode | string | This property should only be utilized when it is desired that the job be started immediately upon creation. Value may be JobStartTime, CustomTime, or LastOutputEventTime to indicate whether the starting point of the output event stream should start whenever the job is started, start at a custom user time stamp specified via the outputStartTime property, or start from the last event output time. Known values are: "JobStartTime", "CustomTime", and "LastOutputEventTime". |
outputStartTime | string (date-time) | Value is either an ISO-8601 formatted time stamp that indicates the starting point of the output event stream, or null to indicate that the output event stream will start whenever the streaming job is started. This property must have a value if outputStartMode is set to CustomTime. |
outputs | array | A list of one or more outputs for the streaming job. The name property for each output is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual output. |
provisioningState | string | Describes the provisioning status of the streaming job. |
sku | object | Describes the SKU of the streaming job. Required on PUT (CreateOrReplace) requests. |
tags | object | Resource tags. |
transformation | object | Indicates the query and the number of streaming units to use for the streaming job. The name property of the transformation is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual transformation. |
type | string | The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
cluster | object | The cluster which streaming jobs will run on. |
compatibilityLevel | string | Controls certain runtime behaviors of the streaming job. Known values are: "1.0" and "1.2". |
contentStoragePolicy | string | Valid values are JobStorageAccount and SystemAccount. If set to JobStorageAccount, this requires the user to also specify jobStorageAccount property. . Known values are: "SystemAccount" and "JobStorageAccount". |
createdDate | string (date-time) | Value is an ISO-8601 formatted UTC timestamp indicating when the streaming job was created. |
dataLocale | string | The data locale of the stream analytics job. Value should be the name of a supported .NET Culture from the set https://msdn.microsoft.com/en-us/library/system.globalization.culturetypes(v=vs.110).aspx. Defaults to 'en-US' if none specified. |
etag | string | The current entity tag for the streaming job. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. |
eventsLateArrivalMaxDelayInSeconds | integer | The maximum tolerable delay in seconds where events arriving late could be included. Supported range is -1 to 1814399 (20.23:59:59 days) and -1 is used to specify wait indefinitely. If the property is absent, it is interpreted to have a value of -1. |
eventsOutOfOrderMaxDelayInSeconds | integer | The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in order. |
eventsOutOfOrderPolicy | string | Indicates the policy to apply to events that arrive out of order in the input event stream. Known values are: "Adjust" and "Drop". |
externals | object | The storage account where the custom code artifacts are located. |
functions | array | A list of one or more functions for the streaming job. The name property for each function is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual transformation. |
identity | object | Describes the managed identity assigned to this job that can be used to authenticate with inputs and outputs. |
inputs | array | A list of one or more inputs to the streaming job. The name property for each input is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual input. |
jobId | string | A GUID uniquely identifying the streaming job. This GUID is generated upon creation of the streaming job. |
jobState | string | Describes the state of the streaming job. |
jobStorageAccount | object | The properties that are associated with an Azure Storage account with MSI. |
jobType | string | Describes the type of the job. Valid modes are Cloud and 'Edge'. Known values are: "Cloud" and "Edge". |
lastOutputEventTime | string (date-time) | Value is either an ISO-8601 formatted timestamp indicating the last output event time of the streaming job or null indicating that output has not yet been produced. In case of multiple outputs or multiple streams, this shows the latest value in that set. |
location | string | The geo-location where the resource lives. |
outputErrorPolicy | string | Indicates the policy to apply to events that arrive at the output and cannot be written to the external storage due to being malformed (missing column values, column values of wrong type or size). Known values are: "Stop" and "Drop". |
outputStartMode | string | This property should only be utilized when it is desired that the job be started immediately upon creation. Value may be JobStartTime, CustomTime, or LastOutputEventTime to indicate whether the starting point of the output event stream should start whenever the job is started, start at a custom user time stamp specified via the outputStartTime property, or start from the last event output time. Known values are: "JobStartTime", "CustomTime", and "LastOutputEventTime". |
outputStartTime | string (date-time) | Value is either an ISO-8601 formatted time stamp that indicates the starting point of the output event stream, or null to indicate that the output event stream will start whenever the streaming job is started. This property must have a value if outputStartMode is set to CustomTime. |
outputs | array | A list of one or more outputs for the streaming job. The name property for each output is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual output. |
provisioningState | string | Describes the provisioning status of the streaming job. |
sku | object | Describes the SKU of the streaming job. Required on PUT (CreateOrReplace) requests. |
tags | object | Resource tags. |
transformation | object | Indicates the query and the number of streaming units to use for the streaming job. The name property of the transformation is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual transformation. |
type | string | The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
cluster | object | The cluster which streaming jobs will run on. |
compatibilityLevel | string | Controls certain runtime behaviors of the streaming job. Known values are: "1.0" and "1.2". |
contentStoragePolicy | string | Valid values are JobStorageAccount and SystemAccount. If set to JobStorageAccount, this requires the user to also specify jobStorageAccount property. . Known values are: "SystemAccount" and "JobStorageAccount". |
createdDate | string (date-time) | Value is an ISO-8601 formatted UTC timestamp indicating when the streaming job was created. |
dataLocale | string | The data locale of the stream analytics job. Value should be the name of a supported .NET Culture from the set https://msdn.microsoft.com/en-us/library/system.globalization.culturetypes(v=vs.110).aspx. Defaults to 'en-US' if none specified. |
etag | string | The current entity tag for the streaming job. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. |
eventsLateArrivalMaxDelayInSeconds | integer | The maximum tolerable delay in seconds where events arriving late could be included. Supported range is -1 to 1814399 (20.23:59:59 days) and -1 is used to specify wait indefinitely. If the property is absent, it is interpreted to have a value of -1. |
eventsOutOfOrderMaxDelayInSeconds | integer | The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in order. |
eventsOutOfOrderPolicy | string | Indicates the policy to apply to events that arrive out of order in the input event stream. Known values are: "Adjust" and "Drop". |
externals | object | The storage account where the custom code artifacts are located. |
functions | array | A list of one or more functions for the streaming job. The name property for each function is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual transformation. |
identity | object | Describes the managed identity assigned to this job that can be used to authenticate with inputs and outputs. |
inputs | array | A list of one or more inputs to the streaming job. The name property for each input is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual input. |
jobId | string | A GUID uniquely identifying the streaming job. This GUID is generated upon creation of the streaming job. |
jobState | string | Describes the state of the streaming job. |
jobStorageAccount | object | The properties that are associated with an Azure Storage account with MSI. |
jobType | string | Describes the type of the job. Valid modes are Cloud and 'Edge'. Known values are: "Cloud" and "Edge". |
lastOutputEventTime | string (date-time) | Value is either an ISO-8601 formatted timestamp indicating the last output event time of the streaming job or null indicating that output has not yet been produced. In case of multiple outputs or multiple streams, this shows the latest value in that set. |
location | string | The geo-location where the resource lives. |
outputErrorPolicy | string | Indicates the policy to apply to events that arrive at the output and cannot be written to the external storage due to being malformed (missing column values, column values of wrong type or size). Known values are: "Stop" and "Drop". |
outputStartMode | string | This property should only be utilized when it is desired that the job be started immediately upon creation. Value may be JobStartTime, CustomTime, or LastOutputEventTime to indicate whether the starting point of the output event stream should start whenever the job is started, start at a custom user time stamp specified via the outputStartTime property, or start from the last event output time. Known values are: "JobStartTime", "CustomTime", and "LastOutputEventTime". |
outputStartTime | string (date-time) | Value is either an ISO-8601 formatted time stamp that indicates the starting point of the output event stream, or null to indicate that the output event stream will start whenever the streaming job is started. This property must have a value if outputStartMode is set to CustomTime. |
outputs | array | A list of one or more outputs for the streaming job. The name property for each output is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual output. |
provisioningState | string | Describes the provisioning status of the streaming job. |
sku | object | Describes the SKU of the streaming job. Required on PUT (CreateOrReplace) requests. |
tags | object | Resource tags. |
transformation | object | Indicates the query and the number of streaming units to use for the streaming job. The name property of the transformation is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual transformation. |
type | string | The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, job_name, subscription_id | $expand | Gets details about the specified streaming job. |
list_by_resource_group | select | resource_group_name, subscription_id | $expand | Lists all of the streaming jobs in the specified resource group. |
list | select | subscription_id | $expand | Lists all of the streaming jobs in the given subscription. |
create_or_replace | insert | resource_group_name, job_name, subscription_id | If-Match, If-None-Match | Creates a streaming job or replaces an already existing streaming job. |
update | update | resource_group_name, job_name, subscription_id | If-Match | 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. |
create_or_replace | replace | resource_group_name, job_name, subscription_id | If-Match, If-None-Match | Creates a streaming job or replaces an already existing streaming job. |
delete | delete | resource_group_name, job_name, subscription_id | Deletes a streaming job. | |
start | exec | resource_group_name, job_name, subscription_id | Starts a streaming job. Once a job is started it will start processing input events and produce output. | |
stop | exec | resource_group_name, job_name, subscription_id | Stops a running streaming job. This will cause a running streaming job to stop processing input events and producing output. | |
scale | exec | resource_group_name, job_name, subscription_id | Scales 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.
| Name | Datatype | Description |
|---|---|---|
job_name | string | The name of the streaming job. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string | |
$expand | string | The $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'. Default value is None. |
If-Match | string | The 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. Default value is None. |
If-None-Match | string | Set 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. Default value is None. |
SELECT examples
- get
- list_by_resource_group
- list
Gets details about the specified streaming job.
SELECT
id,
name,
cluster,
compatibilityLevel,
contentStoragePolicy,
createdDate,
dataLocale,
etag,
eventsLateArrivalMaxDelayInSeconds,
eventsOutOfOrderMaxDelayInSeconds,
eventsOutOfOrderPolicy,
externals,
functions,
identity,
inputs,
jobId,
jobState,
jobStorageAccount,
jobType,
lastOutputEventTime,
location,
outputErrorPolicy,
outputStartMode,
outputStartTime,
outputs,
provisioningState,
sku,
tags,
transformation,
type
FROM azure.stream_analytics.streaming_jobs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND job_name = '{{ job_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;
Lists all of the streaming jobs in the specified resource group.
SELECT
id,
name,
cluster,
compatibilityLevel,
contentStoragePolicy,
createdDate,
dataLocale,
etag,
eventsLateArrivalMaxDelayInSeconds,
eventsOutOfOrderMaxDelayInSeconds,
eventsOutOfOrderPolicy,
externals,
functions,
identity,
inputs,
jobId,
jobState,
jobStorageAccount,
jobType,
lastOutputEventTime,
location,
outputErrorPolicy,
outputStartMode,
outputStartTime,
outputs,
provisioningState,
sku,
tags,
transformation,
type
FROM azure.stream_analytics.streaming_jobs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;
Lists all of the streaming jobs in the given subscription.
SELECT
id,
name,
cluster,
compatibilityLevel,
contentStoragePolicy,
createdDate,
dataLocale,
etag,
eventsLateArrivalMaxDelayInSeconds,
eventsOutOfOrderMaxDelayInSeconds,
eventsOutOfOrderPolicy,
externals,
functions,
identity,
inputs,
jobId,
jobState,
jobStorageAccount,
jobType,
lastOutputEventTime,
location,
outputErrorPolicy,
outputStartMode,
outputStartTime,
outputs,
provisioningState,
sku,
tags,
transformation,
type
FROM azure.stream_analytics.streaming_jobs
WHERE subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;
INSERT examples
- create_or_replace
- Manifest
Creates a streaming job or replaces an already existing streaming job.
INSERT INTO azure.stream_analytics.streaming_jobs (
tags,
location,
sku,
identity,
properties,
resource_group_name,
job_name,
subscription_id,
If-Match,
If-None-Match
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ sku }}',
'{{ identity }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ job_name }}',
'{{ subscription_id }}',
'{{ If-Match }}',
'{{ If-None-Match }}'
RETURNING
id,
name,
identity,
location,
properties,
sku,
tags,
type
;
# Description fields are for documentation purposes
- name: streaming_jobs
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the streaming_jobs resource.
- name: job_name
value: "{{ job_name }}"
description: Required parameter for the streaming_jobs resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the streaming_jobs resource.
- name: tags
value: "{{ tags }}"
description: |
Resource tags.
- name: location
value: "{{ location }}"
description: |
The geo-location where the resource lives.
- name: sku
description: |
Describes the SKU of the streaming job. Required on PUT (CreateOrReplace) requests.
value:
name: "{{ name }}"
capacity: {{ capacity }}
- name: identity
description: |
Describes the managed identity assigned to this job that can be used to authenticate with inputs and outputs.
value:
tenantId: "{{ tenantId }}"
principalId: "{{ principalId }}"
type: "{{ type }}"
userAssignedIdentities: "{{ userAssignedIdentities }}"
- name: properties
value:
sku:
name: "{{ name }}"
capacity: {{ capacity }}
jobType: "{{ jobType }}"
outputStartMode: "{{ outputStartMode }}"
outputStartTime: "{{ outputStartTime }}"
eventsOutOfOrderPolicy: "{{ eventsOutOfOrderPolicy }}"
outputErrorPolicy: "{{ outputErrorPolicy }}"
eventsOutOfOrderMaxDelayInSeconds: {{ eventsOutOfOrderMaxDelayInSeconds }}
eventsLateArrivalMaxDelayInSeconds: {{ eventsLateArrivalMaxDelayInSeconds }}
dataLocale: "{{ dataLocale }}"
compatibilityLevel: "{{ compatibilityLevel }}"
inputs:
- id: "{{ id }}"
name: "{{ name }}"
type: "{{ type }}"
properties:
type: "{{ type }}"
serialization:
type: "{{ type }}"
diagnostics:
conditions:
- since: "{{ since }}"
code: "{{ code }}"
message: "{{ message }}"
etag: "{{ etag }}"
compression:
type: "{{ type }}"
partitionKey: "{{ partitionKey }}"
watermarkSettings:
watermarkMode: "{{ watermarkMode }}"
transformation:
id: "{{ id }}"
name: "{{ name }}"
type: "{{ type }}"
properties:
streamingUnits: {{ streamingUnits }}
validStreamingUnits:
- {{ validStreamingUnits }}
query: "{{ query }}"
etag: "{{ etag }}"
outputs:
- id: "{{ id }}"
name: "{{ name }}"
type: "{{ type }}"
properties:
datasource:
type: "{{ type }}"
timeWindow: "{{ timeWindow }}"
sizeWindow: {{ sizeWindow }}
serialization:
type: "{{ type }}"
diagnostics:
conditions:
- since: "{{ since }}"
code: "{{ code }}"
message: "{{ message }}"
etag: "{{ etag }}"
lastOutputEventTimestamps:
- lastOutputEventTime: "{{ lastOutputEventTime }}"
lastUpdateTime: "{{ lastUpdateTime }}"
watermarkSettings:
watermarkMode: "{{ watermarkMode }}"
maxWatermarkDifferenceAcrossPartitions: "{{ maxWatermarkDifferenceAcrossPartitions }}"
functions:
- id: "{{ id }}"
name: "{{ name }}"
type: "{{ type }}"
properties:
type: "{{ type }}"
etag: "{{ etag }}"
properties:
inputs:
- dataType: "{{ dataType }}"
isConfigurationParameter: {{ isConfigurationParameter }}
output:
dataType: "{{ dataType }}"
binding:
type: "{{ type }}"
jobStorageAccount:
accountName: "{{ accountName }}"
accountKey: "{{ accountKey }}"
authenticationMode: "{{ authenticationMode }}"
contentStoragePolicy: "{{ contentStoragePolicy }}"
externals:
storageAccount:
accountName: "{{ accountName }}"
accountKey: "{{ accountKey }}"
authenticationMode: "{{ authenticationMode }}"
container: "{{ container }}"
path: "{{ path }}"
refreshConfiguration:
pathPattern: "{{ pathPattern }}"
dateFormat: "{{ dateFormat }}"
timeFormat: "{{ timeFormat }}"
refreshInterval: "{{ refreshInterval }}"
refreshType: "{{ refreshType }}"
cluster:
id: "{{ id }}"
- name: If-Match
value: "{{ If-Match }}"
description: The 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. Default value is None.
description: The 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. Default value is None.
- name: If-None-Match
value: "{{ If-None-Match }}"
description: Set 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. Default value is None.
description: Set 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. Default value is None.
UPDATE examples
- update
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
tags = '{{ tags }}',
location = '{{ location }}',
sku = '{{ sku }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND job_name = '{{ job_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
id,
name,
identity,
location,
properties,
sku,
tags,
type;
REPLACE examples
- create_or_replace
Creates a streaming job or replaces an already existing streaming job.
REPLACE azure.stream_analytics.streaming_jobs
SET
tags = '{{ tags }}',
location = '{{ location }}',
sku = '{{ sku }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND job_name = '{{ job_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND If-Match = '{{ If-Match}}'
AND If-None-Match = '{{ If-None-Match}}'
RETURNING
id,
name,
identity,
location,
properties,
sku,
tags,
type;
DELETE examples
- delete
Deletes a streaming job.
DELETE FROM azure.stream_analytics.streaming_jobs
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND job_name = '{{ job_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;
Lifecycle Methods
- start
- stop
- scale
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
@resource_group_name='{{ resource_group_name }}' --required,
@job_name='{{ job_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"outputStartMode": "{{ outputStartMode }}",
"outputStartTime": "{{ outputStartTime }}"
}'
;
Stops a running streaming job. This will cause a running streaming job to stop processing input events and producing output.
EXEC azure.stream_analytics.streaming_jobs.stop
@resource_group_name='{{ resource_group_name }}' --required,
@job_name='{{ job_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Scales a streaming job when the job is running.
EXEC azure.stream_analytics.streaming_jobs.scale
@resource_group_name='{{ resource_group_name }}' --required,
@job_name='{{ job_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"streamingUnits": {{ streamingUnits }}
}'
;