Microsoft.StreamAnalytics streamingjobs/inputs
Bicep resource definition
The streamingjobs/inputs resource type can be deployed to:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.StreamAnalytics/streamingjobs/inputs resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.StreamAnalytics/streamingjobs/inputs@2021-10-01-preview' = {
name: 'string'
parent: resourceSymbolicName
properties: {
compression: {
type: 'string'
}
partitionKey: 'string'
serialization: {
type: 'string'
// For remaining properties, see Serialization objects
}
watermarkSettings: {
watermarkMode: 'string'
}
type: 'string'
// For remaining properties, see InputProperties objects
}
}
InputProperties objects
Set the type property to specify the type of object.
For Reference, use:
type: 'Reference'
datasource: {
type: 'string'
// For remaining properties, see ReferenceInputDataSource objects
}
For Stream, use:
type: 'Stream'
datasource: {
type: 'string'
// For remaining properties, see StreamInputDataSource objects
}
Serialization objects
Set the type property to specify the type of object.
For Avro, use:
type: 'Avro'
properties: any()
For Csv, use:
type: 'Csv'
properties: {
encoding: 'UTF8'
fieldDelimiter: 'string'
}
For CustomClr, use:
type: 'CustomClr'
properties: {
serializationClassName: 'string'
serializationDllPath: 'string'
}
For Json, use:
type: 'Json'
properties: {
encoding: 'UTF8'
format: 'string'
}
For Parquet, use:
type: 'Parquet'
properties: any()
ReferenceInputDataSource objects
Set the type property to specify the type of object.
For File, use:
type: 'File'
properties: {
path: 'string'
}
For Microsoft.Sql/Server/Database, use:
type: 'Microsoft.Sql/Server/Database'
properties: {
authenticationMode: 'string'
database: 'string'
deltaSnapshotQuery: 'string'
fullSnapshotQuery: 'string'
password: 'string'
refreshRate: 'string'
refreshType: 'string'
server: 'string'
user: 'string'
}
For Microsoft.Storage/Blob, use:
type: 'Microsoft.Storage/Blob'
properties: {
authenticationMode: 'string'
blobName: 'string'
container: 'string'
dateFormat: 'string'
deltaPathPattern: 'string'
deltaSnapshotRefreshRate: 'string'
fullSnapshotRefreshRate: 'string'
pathPattern: 'string'
sourcePartitionCount: int
storageAccounts: [
{
accountKey: 'string'
accountName: 'string'
authenticationMode: 'string'
}
]
timeFormat: 'string'
}
For Raw, use:
type: 'Raw'
properties: {
payload: 'string'
payloadUri: 'string'
}
StreamInputDataSource objects
Set the type property to specify the type of object.
For GatewayMessageBus, use:
type: 'GatewayMessageBus'
properties: {
topic: 'string'
}
For Microsoft.Devices/IotHubs, use:
type: 'Microsoft.Devices/IotHubs'
properties: {
consumerGroupName: 'string'
endpoint: 'string'
iotHubNamespace: 'string'
sharedAccessPolicyKey: 'string'
sharedAccessPolicyName: 'string'
}
For Microsoft.EventGrid/EventSubscriptions, use:
type: 'Microsoft.EventGrid/EventSubscriptions'
properties: {
eventTypes: [
'string'
]
schema: 'string'
storageAccounts: [
{
accountKey: 'string'
accountName: 'string'
authenticationMode: 'string'
}
]
subscriber: {
properties: {
authenticationMode: 'string'
consumerGroupName: 'string'
eventHubName: 'string'
partitionCount: int
prefetchCount: int
serviceBusNamespace: 'string'
sharedAccessPolicyKey: 'string'
sharedAccessPolicyName: 'string'
}
type: 'string'
}
}
For Microsoft.EventHub/EventHub, use:
type: 'Microsoft.EventHub/EventHub'
properties: {
authenticationMode: 'string'
consumerGroupName: 'string'
eventHubName: 'string'
partitionCount: int
prefetchCount: int
serviceBusNamespace: 'string'
sharedAccessPolicyKey: 'string'
sharedAccessPolicyName: 'string'
}
For Microsoft.ServiceBus/EventHub, use:
type: 'Microsoft.ServiceBus/EventHub'
properties: {
authenticationMode: 'string'
consumerGroupName: 'string'
eventHubName: 'string'
partitionCount: int
prefetchCount: int
serviceBusNamespace: 'string'
sharedAccessPolicyKey: 'string'
sharedAccessPolicyName: 'string'
}
For Microsoft.Storage/Blob, use:
type: 'Microsoft.Storage/Blob'
properties: {
authenticationMode: 'string'
container: 'string'
dateFormat: 'string'
pathPattern: 'string'
sourcePartitionCount: int
storageAccounts: [
{
accountKey: 'string'
accountName: 'string'
authenticationMode: 'string'
}
]
timeFormat: 'string'
}
For Raw, use:
type: 'Raw'
properties: {
payload: 'string'
payloadUri: 'string'
}
Property values
streamingjobs/inputs
Name | Description | Value |
---|---|---|
name | The resource name See how to set names and types for child resources in Bicep. |
string (required) Character limit: 3-63 Valid characters: Alphanumerics, hyphens, and underscores. |
parent | In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource. For more information, see Child resource outside parent resource. |
Symbolic name for resource of type: streamingjobs |
properties | The properties that are associated with an input. Required on PUT (CreateOrReplace) requests. | InputProperties |
InputProperties
Name | Description | Value |
---|---|---|
compression | Describes how input data is compressed | Compression |
partitionKey | partitionKey Describes a key in the input data which is used for partitioning the input data | string |
serialization | Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace) requests. | Serialization |
watermarkSettings | Settings which determine whether to read watermark events. | InputWatermarkProperties |
type | Set the object type | Reference Stream (required) |
Compression
Name | Description | Value |
---|---|---|
type | Indicates the type of compression that the input uses. Required on PUT (CreateOrReplace) requests. | 'Deflate' 'GZip' 'None' (required) |
Serialization
Name | Description | Value |
---|---|---|
type | Set the object type | Avro Csv CustomClr Json Parquet (required) |
AvroSerialization
Name | Description | Value |
---|---|---|
type | Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests. | 'Avro' (required) |
properties | The properties that are associated with the Avro serialization type. Required on PUT (CreateOrReplace) requests. | For Bicep, you can use the any() function. |
CsvSerialization
Name | Description | Value |
---|---|---|
type | Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests. | 'Csv' (required) |
properties | The properties that are associated with the CSV serialization type. Required on PUT (CreateOrReplace) requests. | CsvSerializationProperties |
CsvSerializationProperties
Name | Description | Value |
---|---|---|
encoding | Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. Required on PUT (CreateOrReplace) requests. | 'UTF8' |
fieldDelimiter | Specifies the delimiter that will be used to separate comma-separated value (CSV) records. See /rest/api/streamanalytics/stream-analytics-input or /rest/api/streamanalytics/stream-analytics-output for a list of supported values. Required on PUT (CreateOrReplace) requests. | string |
CustomClrSerialization
Name | Description | Value |
---|---|---|
type | Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests. | 'CustomClr' (required) |
properties | The properties that are associated with the CustomClr serialization type. Required on PUT (CreateOrReplace) requests. | CustomClrSerializationProperties |
CustomClrSerializationProperties
Name | Description | Value |
---|---|---|
serializationClassName | The serialization class name. | string |
serializationDllPath | The serialization library path. | string |
JsonSerialization
Name | Description | Value |
---|---|---|
type | Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests. | 'Json' (required) |
properties | The properties that are associated with the JSON serialization type. Required on PUT (CreateOrReplace) requests. | JsonSerializationProperties |
JsonSerializationProperties
Name | Description | Value |
---|---|---|
encoding | Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. Required on PUT (CreateOrReplace) requests. | 'UTF8' |
format | This property only applies to JSON serialization of outputs only. It is not applicable to inputs. This property specifies the format of the JSON the output will be written in. The currently supported values are 'lineSeparated' indicating the output will be formatted by having each JSON object separated by a new line and 'array' indicating the output will be formatted as an array of JSON objects. Default value is 'lineSeparated' if left null. | 'Array' 'LineSeparated' |
ParquetSerialization
Name | Description | Value |
---|---|---|
type | Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests. | 'Parquet' (required) |
properties | The properties that are associated with the Parquet serialization type. Required on PUT (CreateOrReplace) requests. | For Bicep, you can use the any() function. |
InputWatermarkProperties
Name | Description | Value |
---|---|---|
watermarkMode | The input watermark mode. | 'None' 'ReadWatermark' |
ReferenceInputProperties
Name | Description | Value |
---|---|---|
type | Indicates whether the input is a source of reference data or stream data. Required on PUT (CreateOrReplace) requests. | 'Reference' (required) |
datasource | Describes an input data source that contains reference data. Required on PUT (CreateOrReplace) requests. | ReferenceInputDataSource |
ReferenceInputDataSource
Name | Description | Value |
---|---|---|
type | Set the object type | File Microsoft.Sql/Server/Database Microsoft.Storage/Blob Raw (required) |
FileReferenceInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests. | 'File' (required) |
properties | The properties that are associated with a file input containing reference data. Required on PUT (CreateOrReplace) requests. | FileReferenceInputDataSourceProperties |
FileReferenceInputDataSourceProperties
Name | Description | Value |
---|---|---|
path | The path of the file. | string |
AzureSqlReferenceInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests. | 'Microsoft.Sql/Server/Database' (required) |
properties | The properties that are associated with SQL DB input containing reference data. Required on PUT (CreateOrReplace) requests. | AzureSqlReferenceInputDataSourceProperties |
AzureSqlReferenceInputDataSourceProperties
Name | Description | Value |
---|---|---|
authenticationMode | Authentication Mode. | 'ConnectionString' 'Msi' 'UserToken' |
database | This element is associated with the datasource element. This is the name of the database that output will be written to. | string |
deltaSnapshotQuery | This element is associated with the datasource element. This query is used to fetch incremental changes from the SQL database. To use this option, we recommend using temporal tables in Azure SQL Database. | string |
fullSnapshotQuery | This element is associated with the datasource element. This query is used to fetch data from the sql database. | string |
password | This element is associated with the datasource element. This is the password that will be used to connect to the SQL Database instance. | string |
refreshRate | This element is associated with the datasource element. This indicates how frequently the data will be fetched from the database. It is of DateTime format. | string |
refreshType | Indicates the type of data refresh option. | 'RefreshPeriodicallyWithDelta' 'RefreshPeriodicallyWithFull' 'Static' |
server | This element is associated with the datasource element. This is the name of the server that contains the database that will be written to. | string |
user | This element is associated with the datasource element. This is the user name that will be used to connect to the SQL Database instance. | string |
BlobReferenceInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests. | 'Microsoft.Storage/Blob' (required) |
properties | The properties that are associated with a blob input containing reference data. Required on PUT (CreateOrReplace) requests. | BlobReferenceInputDataSourceProperties |
BlobReferenceInputDataSourceProperties
Name | Description | Value |
---|---|---|
authenticationMode | Authentication Mode. | 'ConnectionString' 'Msi' 'UserToken' |
blobName | The name of the blob input. | string |
container | The name of a container within the associated Storage account. This container contains either the blob(s) to be read from or written to. Required on PUT (CreateOrReplace) requests. | string |
dateFormat | The date format. Wherever {date} appears in pathPattern, the value of this property is used as the date format instead. | string |
deltaPathPattern | The path pattern of the delta snapshot. | string |
deltaSnapshotRefreshRate | The interval that the user generates a delta snapshot of this reference blob input data source. | string |
fullSnapshotRefreshRate | The refresh interval of the blob input data source. | string |
pathPattern | The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine whether or not they should be included as input or output to the job. See /rest/api/streamanalytics/stream-analytics-input or /rest/api/streamanalytics/stream-analytics-output for a more detailed explanation and example. | string |
sourcePartitionCount | The partition count of the blob input data source. Range 1 - 256. | int |
storageAccounts | A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. | StorageAccount[] |
timeFormat | The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead. | string |
StorageAccount
Name | Description | Value |
---|---|---|
accountKey | The account key for the Azure Storage account. Required on PUT (CreateOrReplace) requests. | string |
accountName | The name of the Azure Storage account. Required on PUT (CreateOrReplace) requests. | string |
authenticationMode | Authentication Mode. | 'ConnectionString' 'Msi' 'UserToken' |
RawReferenceInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests. | 'Raw' (required) |
properties | The properties that are associated with a raw input containing reference data. Required on PUT (CreateOrReplace) requests. | RawInputDatasourceProperties |
RawInputDatasourceProperties
Name | Description | Value |
---|---|---|
payload | The JSON serialized content of the input data. Either payload or payloadUri must be set, but not both. | string |
payloadUri | The SAS URL to a blob containing the JSON serialized content of the input data. Either payload or payloadUri must be set, but not both. | string |
StreamInputProperties
Name | Description | Value |
---|---|---|
type | Indicates whether the input is a source of reference data or stream data. Required on PUT (CreateOrReplace) requests. | 'Stream' (required) |
datasource | Describes an input data source that contains stream data. Required on PUT (CreateOrReplace) requests. | StreamInputDataSource |
StreamInputDataSource
Name | Description | Value |
---|---|---|
type | Set the object type | GatewayMessageBus Microsoft.Devices/IotHubs Microsoft.EventGrid/EventSubscriptions Microsoft.EventHub/EventHub Microsoft.ServiceBus/EventHub Microsoft.Storage/Blob Raw (required) |
GatewayMessageBusStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | 'GatewayMessageBus' (required) |
properties | The properties that are associated with a gateway message bus input containing stream data. | GatewayMessageBusStreamInputDataSourceProperties |
GatewayMessageBusStreamInputDataSourceProperties
Name | Description | Value |
---|---|---|
topic | The name of the Service Bus topic. | string |
IoTHubStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | 'Microsoft.Devices/IotHubs' (required) |
properties | The properties that are associated with an IoT Hub input containing stream data. Required on PUT (CreateOrReplace) requests. | IoTHubStreamInputDataSourceProperties |
IoTHubStreamInputDataSourceProperties
Name | Description | Value |
---|---|---|
consumerGroupName | The name of an IoT Hub Consumer Group that should be used to read events from the IoT Hub. If not specified, the input uses the Iot Hub’s default consumer group. | string |
endpoint | The IoT Hub endpoint to connect to (ie. messages/events, messages/operationsMonitoringEvents, etc.). | string |
iotHubNamespace | The name or the URI of the IoT Hub. Required on PUT (CreateOrReplace) requests. | string |
sharedAccessPolicyKey | The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests. | string |
sharedAccessPolicyName | The shared access policy name for the IoT Hub. This policy must contain at least the Service connect permission. Required on PUT (CreateOrReplace) requests. | string |
EventGridStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | 'Microsoft.EventGrid/EventSubscriptions' (required) |
properties | The properties that are associated with an event grid input containing stream data. | EventGridStreamInputDataSourceProperties |
EventGridStreamInputDataSourceProperties
Name | Description | Value |
---|---|---|
eventTypes | List of Event Types that are supported by the Event Grid adapter. | string[] |
schema | Indicates the Event Grid schema type. | 'CloudEventSchema' 'EventGridEventSchema' |
storageAccounts | A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. | StorageAccount[] |
subscriber | Subscribers for the Event Grid. Currently only EventHub Subscriber is supported. | EventHubV2StreamInputDataSource |
EventHubV2StreamInputDataSource
Name | Description | Value |
---|---|---|
properties | The properties that are associated with an Event Hub input containing stream data. Required on PUT (CreateOrReplace) requests. | EventHubStreamInputDataSourceProperties |
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | string (required) |
EventHubStreamInputDataSourceProperties
Name | Description | Value |
---|---|---|
authenticationMode | Authentication Mode. | 'ConnectionString' 'Msi' 'UserToken' |
consumerGroupName | The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not specified, the input uses the Event Hub’s default consumer group. | string |
eventHubName | The name of the Event Hub. Required on PUT (CreateOrReplace) requests. | string |
partitionCount | The partition count of the event hub data source. Range 1 - 256. | int |
prefetchCount | The number of messages that the message receiver can simultaneously request. | int |
serviceBusNamespace | The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests. | string |
sharedAccessPolicyKey | The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests. | string |
sharedAccessPolicyName | The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests. | string |
EventHubStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | 'Microsoft.ServiceBus/EventHub' (required) |
properties | The properties that are associated with an Event Hub input containing stream data. Required on PUT (CreateOrReplace) requests. | EventHubStreamInputDataSourceProperties |
BlobStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | 'Microsoft.Storage/Blob' (required) |
properties | The properties that are associated with a blob input containing stream data. Required on PUT (CreateOrReplace) requests. | BlobStreamInputDataSourceProperties |
BlobStreamInputDataSourceProperties
Name | Description | Value |
---|---|---|
authenticationMode | Authentication Mode. | 'ConnectionString' 'Msi' 'UserToken' |
container | The name of a container within the associated Storage account. This container contains either the blob(s) to be read from or written to. Required on PUT (CreateOrReplace) requests. | string |
dateFormat | The date format. Wherever {date} appears in pathPattern, the value of this property is used as the date format instead. | string |
pathPattern | The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine whether or not they should be included as input or output to the job. See /rest/api/streamanalytics/stream-analytics-input or /rest/api/streamanalytics/stream-analytics-output for a more detailed explanation and example. | string |
sourcePartitionCount | The partition count of the blob input data source. Range 1 - 1024. | int |
storageAccounts | A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. | StorageAccount[] |
timeFormat | The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead. | string |
RawStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | 'Raw' (required) |
properties | The properties that are associated with a raw input. Required on PUT (CreateOrReplace) requests. | RawInputDatasourceProperties |
ARM template resource definition
The streamingjobs/inputs resource type can be deployed to:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.StreamAnalytics/streamingjobs/inputs resource, add the following JSON to your template.
{
"type": "Microsoft.StreamAnalytics/streamingjobs/inputs",
"apiVersion": "2021-10-01-preview",
"name": "string",
"properties": {
"compression": {
"type": "string"
},
"partitionKey": "string",
"serialization": {
"type": "string"
// For remaining properties, see Serialization objects
},
"watermarkSettings": {
"watermarkMode": "string"
},
"type": "string"
// For remaining properties, see InputProperties objects
}
}
InputProperties objects
Set the type property to specify the type of object.
For Reference, use:
"type": "Reference",
"datasource": {
"type": "string"
// For remaining properties, see ReferenceInputDataSource objects
}
For Stream, use:
"type": "Stream",
"datasource": {
"type": "string"
// For remaining properties, see StreamInputDataSource objects
}
Serialization objects
Set the type property to specify the type of object.
For Avro, use:
"type": "Avro",
"properties": {}
For Csv, use:
"type": "Csv",
"properties": {
"encoding": "UTF8",
"fieldDelimiter": "string"
}
For CustomClr, use:
"type": "CustomClr",
"properties": {
"serializationClassName": "string",
"serializationDllPath": "string"
}
For Json, use:
"type": "Json",
"properties": {
"encoding": "UTF8",
"format": "string"
}
For Parquet, use:
"type": "Parquet",
"properties": {}
ReferenceInputDataSource objects
Set the type property to specify the type of object.
For File, use:
"type": "File",
"properties": {
"path": "string"
}
For Microsoft.Sql/Server/Database, use:
"type": "Microsoft.Sql/Server/Database",
"properties": {
"authenticationMode": "string",
"database": "string",
"deltaSnapshotQuery": "string",
"fullSnapshotQuery": "string",
"password": "string",
"refreshRate": "string",
"refreshType": "string",
"server": "string",
"user": "string"
}
For Microsoft.Storage/Blob, use:
"type": "Microsoft.Storage/Blob",
"properties": {
"authenticationMode": "string",
"blobName": "string",
"container": "string",
"dateFormat": "string",
"deltaPathPattern": "string",
"deltaSnapshotRefreshRate": "string",
"fullSnapshotRefreshRate": "string",
"pathPattern": "string",
"sourcePartitionCount": "int",
"storageAccounts": [
{
"accountKey": "string",
"accountName": "string",
"authenticationMode": "string"
}
],
"timeFormat": "string"
}
For Raw, use:
"type": "Raw",
"properties": {
"payload": "string",
"payloadUri": "string"
}
StreamInputDataSource objects
Set the type property to specify the type of object.
For GatewayMessageBus, use:
"type": "GatewayMessageBus",
"properties": {
"topic": "string"
}
For Microsoft.Devices/IotHubs, use:
"type": "Microsoft.Devices/IotHubs",
"properties": {
"consumerGroupName": "string",
"endpoint": "string",
"iotHubNamespace": "string",
"sharedAccessPolicyKey": "string",
"sharedAccessPolicyName": "string"
}
For Microsoft.EventGrid/EventSubscriptions, use:
"type": "Microsoft.EventGrid/EventSubscriptions",
"properties": {
"eventTypes": [ "string" ],
"schema": "string",
"storageAccounts": [
{
"accountKey": "string",
"accountName": "string",
"authenticationMode": "string"
}
],
"subscriber": {
"properties": {
"authenticationMode": "string",
"consumerGroupName": "string",
"eventHubName": "string",
"partitionCount": "int",
"prefetchCount": "int",
"serviceBusNamespace": "string",
"sharedAccessPolicyKey": "string",
"sharedAccessPolicyName": "string"
},
"type": "string"
}
}
For Microsoft.EventHub/EventHub, use:
"type": "Microsoft.EventHub/EventHub",
"properties": {
"authenticationMode": "string",
"consumerGroupName": "string",
"eventHubName": "string",
"partitionCount": "int",
"prefetchCount": "int",
"serviceBusNamespace": "string",
"sharedAccessPolicyKey": "string",
"sharedAccessPolicyName": "string"
}
For Microsoft.ServiceBus/EventHub, use:
"type": "Microsoft.ServiceBus/EventHub",
"properties": {
"authenticationMode": "string",
"consumerGroupName": "string",
"eventHubName": "string",
"partitionCount": "int",
"prefetchCount": "int",
"serviceBusNamespace": "string",
"sharedAccessPolicyKey": "string",
"sharedAccessPolicyName": "string"
}
For Microsoft.Storage/Blob, use:
"type": "Microsoft.Storage/Blob",
"properties": {
"authenticationMode": "string",
"container": "string",
"dateFormat": "string",
"pathPattern": "string",
"sourcePartitionCount": "int",
"storageAccounts": [
{
"accountKey": "string",
"accountName": "string",
"authenticationMode": "string"
}
],
"timeFormat": "string"
}
For Raw, use:
"type": "Raw",
"properties": {
"payload": "string",
"payloadUri": "string"
}
Property values
streamingjobs/inputs
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.StreamAnalytics/streamingjobs/inputs' |
apiVersion | The resource api version | '2021-10-01-preview' |
name | The resource name See how to set names and types for child resources in JSON ARM templates. |
string (required) Character limit: 3-63 Valid characters: Alphanumerics, hyphens, and underscores. |
properties | The properties that are associated with an input. Required on PUT (CreateOrReplace) requests. | InputProperties |
InputProperties
Name | Description | Value |
---|---|---|
compression | Describes how input data is compressed | Compression |
partitionKey | partitionKey Describes a key in the input data which is used for partitioning the input data | string |
serialization | Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace) requests. | Serialization |
watermarkSettings | Settings which determine whether to read watermark events. | InputWatermarkProperties |
type | Set the object type | Reference Stream (required) |
Compression
Name | Description | Value |
---|---|---|
type | Indicates the type of compression that the input uses. Required on PUT (CreateOrReplace) requests. | 'Deflate' 'GZip' 'None' (required) |
Serialization
Name | Description | Value |
---|---|---|
type | Set the object type | Avro Csv CustomClr Json Parquet (required) |
AvroSerialization
Name | Description | Value |
---|---|---|
type | Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests. | 'Avro' (required) |
properties | The properties that are associated with the Avro serialization type. Required on PUT (CreateOrReplace) requests. |
CsvSerialization
Name | Description | Value |
---|---|---|
type | Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests. | 'Csv' (required) |
properties | The properties that are associated with the CSV serialization type. Required on PUT (CreateOrReplace) requests. | CsvSerializationProperties |
CsvSerializationProperties
Name | Description | Value |
---|---|---|
encoding | Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. Required on PUT (CreateOrReplace) requests. | 'UTF8' |
fieldDelimiter | Specifies the delimiter that will be used to separate comma-separated value (CSV) records. See /rest/api/streamanalytics/stream-analytics-input or /rest/api/streamanalytics/stream-analytics-output for a list of supported values. Required on PUT (CreateOrReplace) requests. | string |
CustomClrSerialization
Name | Description | Value |
---|---|---|
type | Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests. | 'CustomClr' (required) |
properties | The properties that are associated with the CustomClr serialization type. Required on PUT (CreateOrReplace) requests. | CustomClrSerializationProperties |
CustomClrSerializationProperties
Name | Description | Value |
---|---|---|
serializationClassName | The serialization class name. | string |
serializationDllPath | The serialization library path. | string |
JsonSerialization
Name | Description | Value |
---|---|---|
type | Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests. | 'Json' (required) |
properties | The properties that are associated with the JSON serialization type. Required on PUT (CreateOrReplace) requests. | JsonSerializationProperties |
JsonSerializationProperties
Name | Description | Value |
---|---|---|
encoding | Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. Required on PUT (CreateOrReplace) requests. | 'UTF8' |
format | This property only applies to JSON serialization of outputs only. It is not applicable to inputs. This property specifies the format of the JSON the output will be written in. The currently supported values are 'lineSeparated' indicating the output will be formatted by having each JSON object separated by a new line and 'array' indicating the output will be formatted as an array of JSON objects. Default value is 'lineSeparated' if left null. | 'Array' 'LineSeparated' |
ParquetSerialization
Name | Description | Value |
---|---|---|
type | Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests. | 'Parquet' (required) |
properties | The properties that are associated with the Parquet serialization type. Required on PUT (CreateOrReplace) requests. |
InputWatermarkProperties
Name | Description | Value |
---|---|---|
watermarkMode | The input watermark mode. | 'None' 'ReadWatermark' |
ReferenceInputProperties
Name | Description | Value |
---|---|---|
type | Indicates whether the input is a source of reference data or stream data. Required on PUT (CreateOrReplace) requests. | 'Reference' (required) |
datasource | Describes an input data source that contains reference data. Required on PUT (CreateOrReplace) requests. | ReferenceInputDataSource |
ReferenceInputDataSource
Name | Description | Value |
---|---|---|
type | Set the object type | File Microsoft.Sql/Server/Database Microsoft.Storage/Blob Raw (required) |
FileReferenceInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests. | 'File' (required) |
properties | The properties that are associated with a file input containing reference data. Required on PUT (CreateOrReplace) requests. | FileReferenceInputDataSourceProperties |
FileReferenceInputDataSourceProperties
Name | Description | Value |
---|---|---|
path | The path of the file. | string |
AzureSqlReferenceInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests. | 'Microsoft.Sql/Server/Database' (required) |
properties | The properties that are associated with SQL DB input containing reference data. Required on PUT (CreateOrReplace) requests. | AzureSqlReferenceInputDataSourceProperties |
AzureSqlReferenceInputDataSourceProperties
Name | Description | Value |
---|---|---|
authenticationMode | Authentication Mode. | 'ConnectionString' 'Msi' 'UserToken' |
database | This element is associated with the datasource element. This is the name of the database that output will be written to. | string |
deltaSnapshotQuery | This element is associated with the datasource element. This query is used to fetch incremental changes from the SQL database. To use this option, we recommend using temporal tables in Azure SQL Database. | string |
fullSnapshotQuery | This element is associated with the datasource element. This query is used to fetch data from the sql database. | string |
password | This element is associated with the datasource element. This is the password that will be used to connect to the SQL Database instance. | string |
refreshRate | This element is associated with the datasource element. This indicates how frequently the data will be fetched from the database. It is of DateTime format. | string |
refreshType | Indicates the type of data refresh option. | 'RefreshPeriodicallyWithDelta' 'RefreshPeriodicallyWithFull' 'Static' |
server | This element is associated with the datasource element. This is the name of the server that contains the database that will be written to. | string |
user | This element is associated with the datasource element. This is the user name that will be used to connect to the SQL Database instance. | string |
BlobReferenceInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests. | 'Microsoft.Storage/Blob' (required) |
properties | The properties that are associated with a blob input containing reference data. Required on PUT (CreateOrReplace) requests. | BlobReferenceInputDataSourceProperties |
BlobReferenceInputDataSourceProperties
Name | Description | Value |
---|---|---|
authenticationMode | Authentication Mode. | 'ConnectionString' 'Msi' 'UserToken' |
blobName | The name of the blob input. | string |
container | The name of a container within the associated Storage account. This container contains either the blob(s) to be read from or written to. Required on PUT (CreateOrReplace) requests. | string |
dateFormat | The date format. Wherever {date} appears in pathPattern, the value of this property is used as the date format instead. | string |
deltaPathPattern | The path pattern of the delta snapshot. | string |
deltaSnapshotRefreshRate | The interval that the user generates a delta snapshot of this reference blob input data source. | string |
fullSnapshotRefreshRate | The refresh interval of the blob input data source. | string |
pathPattern | The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine whether or not they should be included as input or output to the job. See /rest/api/streamanalytics/stream-analytics-input or /rest/api/streamanalytics/stream-analytics-output for a more detailed explanation and example. | string |
sourcePartitionCount | The partition count of the blob input data source. Range 1 - 256. | int |
storageAccounts | A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. | StorageAccount[] |
timeFormat | The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead. | string |
StorageAccount
Name | Description | Value |
---|---|---|
accountKey | The account key for the Azure Storage account. Required on PUT (CreateOrReplace) requests. | string |
accountName | The name of the Azure Storage account. Required on PUT (CreateOrReplace) requests. | string |
authenticationMode | Authentication Mode. | 'ConnectionString' 'Msi' 'UserToken' |
RawReferenceInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests. | 'Raw' (required) |
properties | The properties that are associated with a raw input containing reference data. Required on PUT (CreateOrReplace) requests. | RawInputDatasourceProperties |
RawInputDatasourceProperties
Name | Description | Value |
---|---|---|
payload | The JSON serialized content of the input data. Either payload or payloadUri must be set, but not both. | string |
payloadUri | The SAS URL to a blob containing the JSON serialized content of the input data. Either payload or payloadUri must be set, but not both. | string |
StreamInputProperties
Name | Description | Value |
---|---|---|
type | Indicates whether the input is a source of reference data or stream data. Required on PUT (CreateOrReplace) requests. | 'Stream' (required) |
datasource | Describes an input data source that contains stream data. Required on PUT (CreateOrReplace) requests. | StreamInputDataSource |
StreamInputDataSource
Name | Description | Value |
---|---|---|
type | Set the object type | GatewayMessageBus Microsoft.Devices/IotHubs Microsoft.EventGrid/EventSubscriptions Microsoft.EventHub/EventHub Microsoft.ServiceBus/EventHub Microsoft.Storage/Blob Raw (required) |
GatewayMessageBusStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | 'GatewayMessageBus' (required) |
properties | The properties that are associated with a gateway message bus input containing stream data. | GatewayMessageBusStreamInputDataSourceProperties |
GatewayMessageBusStreamInputDataSourceProperties
Name | Description | Value |
---|---|---|
topic | The name of the Service Bus topic. | string |
IoTHubStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | 'Microsoft.Devices/IotHubs' (required) |
properties | The properties that are associated with an IoT Hub input containing stream data. Required on PUT (CreateOrReplace) requests. | IoTHubStreamInputDataSourceProperties |
IoTHubStreamInputDataSourceProperties
Name | Description | Value |
---|---|---|
consumerGroupName | The name of an IoT Hub Consumer Group that should be used to read events from the IoT Hub. If not specified, the input uses the Iot Hub’s default consumer group. | string |
endpoint | The IoT Hub endpoint to connect to (ie. messages/events, messages/operationsMonitoringEvents, etc.). | string |
iotHubNamespace | The name or the URI of the IoT Hub. Required on PUT (CreateOrReplace) requests. | string |
sharedAccessPolicyKey | The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests. | string |
sharedAccessPolicyName | The shared access policy name for the IoT Hub. This policy must contain at least the Service connect permission. Required on PUT (CreateOrReplace) requests. | string |
EventGridStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | 'Microsoft.EventGrid/EventSubscriptions' (required) |
properties | The properties that are associated with an event grid input containing stream data. | EventGridStreamInputDataSourceProperties |
EventGridStreamInputDataSourceProperties
Name | Description | Value |
---|---|---|
eventTypes | List of Event Types that are supported by the Event Grid adapter. | string[] |
schema | Indicates the Event Grid schema type. | 'CloudEventSchema' 'EventGridEventSchema' |
storageAccounts | A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. | StorageAccount[] |
subscriber | Subscribers for the Event Grid. Currently only EventHub Subscriber is supported. | EventHubV2StreamInputDataSource |
EventHubV2StreamInputDataSource
Name | Description | Value |
---|---|---|
properties | The properties that are associated with an Event Hub input containing stream data. Required on PUT (CreateOrReplace) requests. | EventHubStreamInputDataSourceProperties |
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | string (required) |
EventHubStreamInputDataSourceProperties
Name | Description | Value |
---|---|---|
authenticationMode | Authentication Mode. | 'ConnectionString' 'Msi' 'UserToken' |
consumerGroupName | The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not specified, the input uses the Event Hub’s default consumer group. | string |
eventHubName | The name of the Event Hub. Required on PUT (CreateOrReplace) requests. | string |
partitionCount | The partition count of the event hub data source. Range 1 - 256. | int |
prefetchCount | The number of messages that the message receiver can simultaneously request. | int |
serviceBusNamespace | The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests. | string |
sharedAccessPolicyKey | The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests. | string |
sharedAccessPolicyName | The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests. | string |
EventHubStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | 'Microsoft.ServiceBus/EventHub' (required) |
properties | The properties that are associated with an Event Hub input containing stream data. Required on PUT (CreateOrReplace) requests. | EventHubStreamInputDataSourceProperties |
BlobStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | 'Microsoft.Storage/Blob' (required) |
properties | The properties that are associated with a blob input containing stream data. Required on PUT (CreateOrReplace) requests. | BlobStreamInputDataSourceProperties |
BlobStreamInputDataSourceProperties
Name | Description | Value |
---|---|---|
authenticationMode | Authentication Mode. | 'ConnectionString' 'Msi' 'UserToken' |
container | The name of a container within the associated Storage account. This container contains either the blob(s) to be read from or written to. Required on PUT (CreateOrReplace) requests. | string |
dateFormat | The date format. Wherever {date} appears in pathPattern, the value of this property is used as the date format instead. | string |
pathPattern | The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine whether or not they should be included as input or output to the job. See /rest/api/streamanalytics/stream-analytics-input or /rest/api/streamanalytics/stream-analytics-output for a more detailed explanation and example. | string |
sourcePartitionCount | The partition count of the blob input data source. Range 1 - 1024. | int |
storageAccounts | A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. | StorageAccount[] |
timeFormat | The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead. | string |
RawStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | 'Raw' (required) |
properties | The properties that are associated with a raw input. Required on PUT (CreateOrReplace) requests. | RawInputDatasourceProperties |
Terraform (AzAPI provider) resource definition
The streamingjobs/inputs resource type can be deployed to:
- Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.StreamAnalytics/streamingjobs/inputs resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.StreamAnalytics/streamingjobs/inputs@2021-10-01-preview"
name = "string"
parent_id = "string"
body = jsonencode({
properties = {
compression = {
type = "string"
}
partitionKey = "string"
serialization = {
type = "string"
// For remaining properties, see Serialization objects
}
watermarkSettings = {
watermarkMode = "string"
}
type = "string"
// For remaining properties, see InputProperties objects
}
})
}
InputProperties objects
Set the type property to specify the type of object.
For Reference, use:
type = "Reference"
datasource = {
type = "string"
// For remaining properties, see ReferenceInputDataSource objects
}
For Stream, use:
type = "Stream"
datasource = {
type = "string"
// For remaining properties, see StreamInputDataSource objects
}
Serialization objects
Set the type property to specify the type of object.
For Avro, use:
type = "Avro"
For Csv, use:
type = "Csv"
properties = {
encoding = "UTF8"
fieldDelimiter = "string"
}
For CustomClr, use:
type = "CustomClr"
properties = {
serializationClassName = "string"
serializationDllPath = "string"
}
For Json, use:
type = "Json"
properties = {
encoding = "UTF8"
format = "string"
}
For Parquet, use:
type = "Parquet"
ReferenceInputDataSource objects
Set the type property to specify the type of object.
For File, use:
type = "File"
properties = {
path = "string"
}
For Microsoft.Sql/Server/Database, use:
type = "Microsoft.Sql/Server/Database"
properties = {
authenticationMode = "string"
database = "string"
deltaSnapshotQuery = "string"
fullSnapshotQuery = "string"
password = "string"
refreshRate = "string"
refreshType = "string"
server = "string"
user = "string"
}
For Microsoft.Storage/Blob, use:
type = "Microsoft.Storage/Blob"
properties = {
authenticationMode = "string"
blobName = "string"
container = "string"
dateFormat = "string"
deltaPathPattern = "string"
deltaSnapshotRefreshRate = "string"
fullSnapshotRefreshRate = "string"
pathPattern = "string"
sourcePartitionCount = int
storageAccounts = [
{
accountKey = "string"
accountName = "string"
authenticationMode = "string"
}
]
timeFormat = "string"
}
For Raw, use:
type = "Raw"
properties = {
payload = "string"
payloadUri = "string"
}
StreamInputDataSource objects
Set the type property to specify the type of object.
For GatewayMessageBus, use:
type = "GatewayMessageBus"
properties = {
topic = "string"
}
For Microsoft.Devices/IotHubs, use:
type = "Microsoft.Devices/IotHubs"
properties = {
consumerGroupName = "string"
endpoint = "string"
iotHubNamespace = "string"
sharedAccessPolicyKey = "string"
sharedAccessPolicyName = "string"
}
For Microsoft.EventGrid/EventSubscriptions, use:
type = "Microsoft.EventGrid/EventSubscriptions"
properties = {
eventTypes = [
"string"
]
schema = "string"
storageAccounts = [
{
accountKey = "string"
accountName = "string"
authenticationMode = "string"
}
]
subscriber = {
properties = {
authenticationMode = "string"
consumerGroupName = "string"
eventHubName = "string"
partitionCount = int
prefetchCount = int
serviceBusNamespace = "string"
sharedAccessPolicyKey = "string"
sharedAccessPolicyName = "string"
}
type = "string"
}
}
For Microsoft.EventHub/EventHub, use:
type = "Microsoft.EventHub/EventHub"
properties = {
authenticationMode = "string"
consumerGroupName = "string"
eventHubName = "string"
partitionCount = int
prefetchCount = int
serviceBusNamespace = "string"
sharedAccessPolicyKey = "string"
sharedAccessPolicyName = "string"
}
For Microsoft.ServiceBus/EventHub, use:
type = "Microsoft.ServiceBus/EventHub"
properties = {
authenticationMode = "string"
consumerGroupName = "string"
eventHubName = "string"
partitionCount = int
prefetchCount = int
serviceBusNamespace = "string"
sharedAccessPolicyKey = "string"
sharedAccessPolicyName = "string"
}
For Microsoft.Storage/Blob, use:
type = "Microsoft.Storage/Blob"
properties = {
authenticationMode = "string"
container = "string"
dateFormat = "string"
pathPattern = "string"
sourcePartitionCount = int
storageAccounts = [
{
accountKey = "string"
accountName = "string"
authenticationMode = "string"
}
]
timeFormat = "string"
}
For Raw, use:
type = "Raw"
properties = {
payload = "string"
payloadUri = "string"
}
Property values
streamingjobs/inputs
Name | Description | Value |
---|---|---|
type | The resource type | "Microsoft.StreamAnalytics/streamingjobs/inputs@2021-10-01-preview" |
name | The resource name | string (required) Character limit: 3-63 Valid characters: Alphanumerics, hyphens, and underscores. |
parent_id | The ID of the resource that is the parent for this resource. | ID for resource of type: streamingjobs |
properties | The properties that are associated with an input. Required on PUT (CreateOrReplace) requests. | InputProperties |
InputProperties
Name | Description | Value |
---|---|---|
compression | Describes how input data is compressed | Compression |
partitionKey | partitionKey Describes a key in the input data which is used for partitioning the input data | string |
serialization | Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace) requests. | Serialization |
watermarkSettings | Settings which determine whether to read watermark events. | InputWatermarkProperties |
type | Set the object type | Reference Stream (required) |
Compression
Name | Description | Value |
---|---|---|
type | Indicates the type of compression that the input uses. Required on PUT (CreateOrReplace) requests. | "Deflate" "GZip" "None" (required) |
Serialization
Name | Description | Value |
---|---|---|
type | Set the object type | Avro Csv CustomClr Json Parquet (required) |
AvroSerialization
Name | Description | Value |
---|---|---|
type | Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests. | "Avro" (required) |
properties | The properties that are associated with the Avro serialization type. Required on PUT (CreateOrReplace) requests. |
CsvSerialization
Name | Description | Value |
---|---|---|
type | Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests. | "Csv" (required) |
properties | The properties that are associated with the CSV serialization type. Required on PUT (CreateOrReplace) requests. | CsvSerializationProperties |
CsvSerializationProperties
Name | Description | Value |
---|---|---|
encoding | Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. Required on PUT (CreateOrReplace) requests. | "UTF8" |
fieldDelimiter | Specifies the delimiter that will be used to separate comma-separated value (CSV) records. See /rest/api/streamanalytics/stream-analytics-input or /rest/api/streamanalytics/stream-analytics-output for a list of supported values. Required on PUT (CreateOrReplace) requests. | string |
CustomClrSerialization
Name | Description | Value |
---|---|---|
type | Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests. | "CustomClr" (required) |
properties | The properties that are associated with the CustomClr serialization type. Required on PUT (CreateOrReplace) requests. | CustomClrSerializationProperties |
CustomClrSerializationProperties
Name | Description | Value |
---|---|---|
serializationClassName | The serialization class name. | string |
serializationDllPath | The serialization library path. | string |
JsonSerialization
Name | Description | Value |
---|---|---|
type | Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests. | "Json" (required) |
properties | The properties that are associated with the JSON serialization type. Required on PUT (CreateOrReplace) requests. | JsonSerializationProperties |
JsonSerializationProperties
Name | Description | Value |
---|---|---|
encoding | Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. Required on PUT (CreateOrReplace) requests. | "UTF8" |
format | This property only applies to JSON serialization of outputs only. It is not applicable to inputs. This property specifies the format of the JSON the output will be written in. The currently supported values are 'lineSeparated' indicating the output will be formatted by having each JSON object separated by a new line and 'array' indicating the output will be formatted as an array of JSON objects. Default value is 'lineSeparated' if left null. | "Array" "LineSeparated" |
ParquetSerialization
Name | Description | Value |
---|---|---|
type | Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests. | "Parquet" (required) |
properties | The properties that are associated with the Parquet serialization type. Required on PUT (CreateOrReplace) requests. |
InputWatermarkProperties
Name | Description | Value |
---|---|---|
watermarkMode | The input watermark mode. | "None" "ReadWatermark" |
ReferenceInputProperties
Name | Description | Value |
---|---|---|
type | Indicates whether the input is a source of reference data or stream data. Required on PUT (CreateOrReplace) requests. | "Reference" (required) |
datasource | Describes an input data source that contains reference data. Required on PUT (CreateOrReplace) requests. | ReferenceInputDataSource |
ReferenceInputDataSource
Name | Description | Value |
---|---|---|
type | Set the object type | File Microsoft.Sql/Server/Database Microsoft.Storage/Blob Raw (required) |
FileReferenceInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests. | "File" (required) |
properties | The properties that are associated with a file input containing reference data. Required on PUT (CreateOrReplace) requests. | FileReferenceInputDataSourceProperties |
FileReferenceInputDataSourceProperties
Name | Description | Value |
---|---|---|
path | The path of the file. | string |
AzureSqlReferenceInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests. | "Microsoft.Sql/Server/Database" (required) |
properties | The properties that are associated with SQL DB input containing reference data. Required on PUT (CreateOrReplace) requests. | AzureSqlReferenceInputDataSourceProperties |
AzureSqlReferenceInputDataSourceProperties
Name | Description | Value |
---|---|---|
authenticationMode | Authentication Mode. | "ConnectionString" "Msi" "UserToken" |
database | This element is associated with the datasource element. This is the name of the database that output will be written to. | string |
deltaSnapshotQuery | This element is associated with the datasource element. This query is used to fetch incremental changes from the SQL database. To use this option, we recommend using temporal tables in Azure SQL Database. | string |
fullSnapshotQuery | This element is associated with the datasource element. This query is used to fetch data from the sql database. | string |
password | This element is associated with the datasource element. This is the password that will be used to connect to the SQL Database instance. | string |
refreshRate | This element is associated with the datasource element. This indicates how frequently the data will be fetched from the database. It is of DateTime format. | string |
refreshType | Indicates the type of data refresh option. | "RefreshPeriodicallyWithDelta" "RefreshPeriodicallyWithFull" "Static" |
server | This element is associated with the datasource element. This is the name of the server that contains the database that will be written to. | string |
user | This element is associated with the datasource element. This is the user name that will be used to connect to the SQL Database instance. | string |
BlobReferenceInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests. | "Microsoft.Storage/Blob" (required) |
properties | The properties that are associated with a blob input containing reference data. Required on PUT (CreateOrReplace) requests. | BlobReferenceInputDataSourceProperties |
BlobReferenceInputDataSourceProperties
Name | Description | Value |
---|---|---|
authenticationMode | Authentication Mode. | "ConnectionString" "Msi" "UserToken" |
blobName | The name of the blob input. | string |
container | The name of a container within the associated Storage account. This container contains either the blob(s) to be read from or written to. Required on PUT (CreateOrReplace) requests. | string |
dateFormat | The date format. Wherever {date} appears in pathPattern, the value of this property is used as the date format instead. | string |
deltaPathPattern | The path pattern of the delta snapshot. | string |
deltaSnapshotRefreshRate | The interval that the user generates a delta snapshot of this reference blob input data source. | string |
fullSnapshotRefreshRate | The refresh interval of the blob input data source. | string |
pathPattern | The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine whether or not they should be included as input or output to the job. See /rest/api/streamanalytics/stream-analytics-input or /rest/api/streamanalytics/stream-analytics-output for a more detailed explanation and example. | string |
sourcePartitionCount | The partition count of the blob input data source. Range 1 - 256. | int |
storageAccounts | A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. | StorageAccount[] |
timeFormat | The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead. | string |
StorageAccount
Name | Description | Value |
---|---|---|
accountKey | The account key for the Azure Storage account. Required on PUT (CreateOrReplace) requests. | string |
accountName | The name of the Azure Storage account. Required on PUT (CreateOrReplace) requests. | string |
authenticationMode | Authentication Mode. | "ConnectionString" "Msi" "UserToken" |
RawReferenceInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests. | "Raw" (required) |
properties | The properties that are associated with a raw input containing reference data. Required on PUT (CreateOrReplace) requests. | RawInputDatasourceProperties |
RawInputDatasourceProperties
Name | Description | Value |
---|---|---|
payload | The JSON serialized content of the input data. Either payload or payloadUri must be set, but not both. | string |
payloadUri | The SAS URL to a blob containing the JSON serialized content of the input data. Either payload or payloadUri must be set, but not both. | string |
StreamInputProperties
Name | Description | Value |
---|---|---|
type | Indicates whether the input is a source of reference data or stream data. Required on PUT (CreateOrReplace) requests. | "Stream" (required) |
datasource | Describes an input data source that contains stream data. Required on PUT (CreateOrReplace) requests. | StreamInputDataSource |
StreamInputDataSource
Name | Description | Value |
---|---|---|
type | Set the object type | GatewayMessageBus Microsoft.Devices/IotHubs Microsoft.EventGrid/EventSubscriptions Microsoft.EventHub/EventHub Microsoft.ServiceBus/EventHub Microsoft.Storage/Blob Raw (required) |
GatewayMessageBusStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | "GatewayMessageBus" (required) |
properties | The properties that are associated with a gateway message bus input containing stream data. | GatewayMessageBusStreamInputDataSourceProperties |
GatewayMessageBusStreamInputDataSourceProperties
Name | Description | Value |
---|---|---|
topic | The name of the Service Bus topic. | string |
IoTHubStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | "Microsoft.Devices/IotHubs" (required) |
properties | The properties that are associated with an IoT Hub input containing stream data. Required on PUT (CreateOrReplace) requests. | IoTHubStreamInputDataSourceProperties |
IoTHubStreamInputDataSourceProperties
Name | Description | Value |
---|---|---|
consumerGroupName | The name of an IoT Hub Consumer Group that should be used to read events from the IoT Hub. If not specified, the input uses the Iot Hub’s default consumer group. | string |
endpoint | The IoT Hub endpoint to connect to (ie. messages/events, messages/operationsMonitoringEvents, etc.). | string |
iotHubNamespace | The name or the URI of the IoT Hub. Required on PUT (CreateOrReplace) requests. | string |
sharedAccessPolicyKey | The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests. | string |
sharedAccessPolicyName | The shared access policy name for the IoT Hub. This policy must contain at least the Service connect permission. Required on PUT (CreateOrReplace) requests. | string |
EventGridStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | "Microsoft.EventGrid/EventSubscriptions" (required) |
properties | The properties that are associated with an event grid input containing stream data. | EventGridStreamInputDataSourceProperties |
EventGridStreamInputDataSourceProperties
Name | Description | Value |
---|---|---|
eventTypes | List of Event Types that are supported by the Event Grid adapter. | string[] |
schema | Indicates the Event Grid schema type. | "CloudEventSchema" "EventGridEventSchema" |
storageAccounts | A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. | StorageAccount[] |
subscriber | Subscribers for the Event Grid. Currently only EventHub Subscriber is supported. | EventHubV2StreamInputDataSource |
EventHubV2StreamInputDataSource
Name | Description | Value |
---|---|---|
properties | The properties that are associated with an Event Hub input containing stream data. Required on PUT (CreateOrReplace) requests. | EventHubStreamInputDataSourceProperties |
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | string (required) |
EventHubStreamInputDataSourceProperties
Name | Description | Value |
---|---|---|
authenticationMode | Authentication Mode. | "ConnectionString" "Msi" "UserToken" |
consumerGroupName | The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not specified, the input uses the Event Hub’s default consumer group. | string |
eventHubName | The name of the Event Hub. Required on PUT (CreateOrReplace) requests. | string |
partitionCount | The partition count of the event hub data source. Range 1 - 256. | int |
prefetchCount | The number of messages that the message receiver can simultaneously request. | int |
serviceBusNamespace | The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests. | string |
sharedAccessPolicyKey | The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests. | string |
sharedAccessPolicyName | The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests. | string |
EventHubStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | "Microsoft.ServiceBus/EventHub" (required) |
properties | The properties that are associated with an Event Hub input containing stream data. Required on PUT (CreateOrReplace) requests. | EventHubStreamInputDataSourceProperties |
BlobStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | "Microsoft.Storage/Blob" (required) |
properties | The properties that are associated with a blob input containing stream data. Required on PUT (CreateOrReplace) requests. | BlobStreamInputDataSourceProperties |
BlobStreamInputDataSourceProperties
Name | Description | Value |
---|---|---|
authenticationMode | Authentication Mode. | "ConnectionString" "Msi" "UserToken" |
container | The name of a container within the associated Storage account. This container contains either the blob(s) to be read from or written to. Required on PUT (CreateOrReplace) requests. | string |
dateFormat | The date format. Wherever {date} appears in pathPattern, the value of this property is used as the date format instead. | string |
pathPattern | The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine whether or not they should be included as input or output to the job. See /rest/api/streamanalytics/stream-analytics-input or /rest/api/streamanalytics/stream-analytics-output for a more detailed explanation and example. | string |
sourcePartitionCount | The partition count of the blob input data source. Range 1 - 1024. | int |
storageAccounts | A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests. | StorageAccount[] |
timeFormat | The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead. | string |
RawStreamInputDataSource
Name | Description | Value |
---|---|---|
type | Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests. | "Raw" (required) |
properties | The properties that are associated with a raw input. Required on PUT (CreateOrReplace) requests. | RawInputDatasourceProperties |