az stream-analytics input

Commands to manage stream-analytics input.

Commands

az stream-analytics input create

Create an input or replaces an already existing input under an existing streaming job.

az stream-analytics input delete

Delete an input from the streaming job.

az stream-analytics input list

List all of the inputs under the specified streaming job.

az stream-analytics input show

Get details about the specified input.

az stream-analytics input test

Test an input.

az stream-analytics input create

Create an input or replaces an already existing input under an existing streaming job.

az stream-analytics input create --datasource
                                 --job-name
                                 --name
                                 --resource-group
                                 --serialization
                                 --type {Reference, Stream}

Examples

Create an input

az stream-analytics input create --resource-group MyResourceGroup --job-name MyJobName \
--name MyInputName --type Stream --datasource @datasource.json --serialization \
@serialization.json
 (below is an example of Blob Storage for "datasource.json")
 {
     "type": "Microsoft.Storage/Blob",
     "properties": {
         "storageAccounts": [
             {
                 "accountName": "someAccountName",
                 "accountKey": "someAccountKey=="
             }
         ],
         "container": "state",
         "pathPattern": "{date}/{time}",
         "dateFormat": "yyyy/MM/dd",
         "timeFormat": "HH",
         "sourcePartitionCount": 16
     }
 }
 (below is an example of Event Hub for "datasource.json")
 {
     "type": "Microsoft.ServiceBus/EventHub",
     "properties": {
         "serviceBusNamespace": "sdktest",
         "sharedAccessPolicyName": "RootManageSharedAccessKey",
         "sharedAccessPolicyKey": "someSharedAccessPolicyKey==",
         "eventHubName": "sdkeventhub",
         "consumerGroupName": "sdkconsumergroup"
     }
 }
 (below is an example of Iot Hub for "datasource.json")
 {
     "type": "Microsoft.Devices/IotHubs",
     "properties": {
         "iotHubNamespace": "iothub",
         "sharedAccessPolicyName": "owner",
         "sharedAccessPolicyKey": "sharedAccessPolicyKey=",
         "consumerGroupName": "sdkconsumergroup",
         "endpoint": "messages/events"
     }
 }
 (below is an example of Csv for "serialization.json")
 {
     "type": "Csv",
     "properties": {
         "fieldDelimiter": ",",
         "encoding": "UTF8"
     }
 }
 (below is an example of Json for "serialization.json")
 {
     "type": "Json",
     "properties": {
         "encoding": "UTF8"
     }
 }
 (below is an example of Avro for "serialization.json")
 {
     "type": "Avro"
 }

Required Parameters

--datasource

The datasource of the input.

--job-name

The name of the streaming job.

--name -n

The name of the input.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--serialization

The serialization of the input.

--type

The type of the input.

accepted values: Reference, Stream

az stream-analytics input delete

Delete an input from the streaming job.

az stream-analytics input delete --job-name
                                 --name
                                 --resource-group

Examples

Delete an input

az stream-analytics input delete --resource-group MyResourceGroup --job-name MyJobName --name MyInputName

Required Parameters

--job-name

The name of the streaming job.

--name -n

The name of the input.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az stream-analytics input list

List all of the inputs under the specified streaming job.

az stream-analytics input list --job-name
                               --resource-group

Examples

List all inputs in a streaming job

az stream-analytics input list --resource-group MyResourceGroup --job-name MyJobName

Required Parameters

--job-name

The name of the streaming job.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az stream-analytics input show

Get details about the specified input.

az stream-analytics input show --job-name
                               --name
                               --resource-group

Examples

Get details about specified input

az stream-analytics input show --resource-group MyResourceGroup --job-name MyJobName --name MyInputName

Required Parameters

--job-name

The name of the streaming job.

--name -n

The name of the input.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az stream-analytics input test

Test an input.

az stream-analytics input test --job-name
                               --name
                               --resource-group
                               [--no-wait]

Examples

Test the connection for an input

az stream-analytics input test --resource-group MyResourceGroup --job-name MyJobName --name MyInputName

Required Parameters

--job-name

The name of the streaming job.

--name -n

The name of the input.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.