az stream-analytics output

참고

이 참조는 Azure CLI에 대 한 스트림 분석 확장의 일부 이며 버전 2.3.1 이상 이어야 합니다. Az stream analytics output 명령을 처음 실행할 때 확장이 자동으로 설치 됩니다. 확장에 대해 자세히 알아보세요.

스트림 분석 출력을 관리 하는 명령입니다.

명령

az stream-analytics output create

기존 스트리밍 작업에서 출력을 만들거나 기존 출력을 대체 합니다.

az stream-analytics output delete

스트리밍 작업에서 출력을 삭제 합니다.

az stream-analytics output list

지정 된 스트리밍 작업의 모든 출력을 나열 합니다.

az stream-analytics output show

지정 된 출력에 대 한 세부 정보를 가져옵니다.

az stream-analytics output test

출력을 테스트 합니다.

az stream-analytics output create

기존 스트리밍 작업에서 출력을 만들거나 기존 출력을 대체 합니다.

az stream-analytics output create --datasource
                                  --job-name
                                  --name
                                  --resource-group
                                  [--serialization]

예제

출력 만들기

az stream-analytics output create --resource-group MyResourceGroup --job-name MyJobName \
--name MyOutputName --datasource @datasource.json --serialization @serialization.json
 (below is an example of DataLake for "datasource.json")
 {
     "type": "Microsoft.DataLake/Accounts",
     "properties": {
         "accountName": "someaccount",
         "tenantId": "cea4e98b-c798-49e7-8c40-4a2b3beb47dd",
         "refreshToken": "someRefreshToken==",
         "tokenUserPrincipalName": "bobsmith@contoso.com",
         "tokenUserDisplayName": "Bob Smith",
         "filePathPrefix": "{date}/{time}",
         "dateFormat": "yyyy/MM/dd",
         "timeFormat": "HH"
     }
 }
 (below is an example of SQL Database for "datasource.json")
 {
     "type": "Microsoft.Sql/Server/Database",
     "properties": {
         "server": "someServer",
         "database": "someDatabase",
         "user": "someUser",
         "password": "somePassword",
         "table": "someTable"
     }
 }
 (below is an example of Table Storage for "datasource.json")
 {
     "type": "Microsoft.Storage/Table",
     "properties": {
         "accountName": "someAccountName",
         "accountKey": "accountKey==",
         "table": "samples",
         "partitionKey": "partitionKey",
         "rowKey": "rowKey",
         "columnsToRemove": [
             "column1",
             "column2"
         ],
         "batchSize": 25
     }
 }
 (below is an example of Blob Storage for "datasource.json")
 {
     "type": "Microsoft.Storage/Blob",
     "properties": {
         "storageAccounts": [
             {
                 "accountName": "someAccountName",
                 "accountKey": "accountKey=="
             }
         ],
         "container": "state",
         "pathPattern": "{date}/{time}",
         "dateFormat": "yyyy/MM/dd",
         "timeFormat": "HH"
     }
 }
 (below is an example of DocumentDB for "datasource.json")
 {
     "type": "Microsoft.Storage/DocumentDB",
     "properties": {
         "accountId": "someAccountId",
         "accountKey": "accountKey==",
         "database": "db01",
         "collectionNamePattern": "collection",
         "partitionKey": "key",
         "documentId": "documentId"
     }
 }
 (below is an example of Event Hub for "datasource.json")
 {
     "type": "Microsoft.ServiceBus/EventHub",
     "properties": {
         "serviceBusNamespace": "sdktest",
         "sharedAccessPolicyName": "RootManageSharedAccessKey",
         "sharedAccessPolicyKey": "sharedAccessPolicyKey=",
         "eventHubName": "sdkeventhub",
         "partitionKey": "partitionKey"
     }
 }
 (below is an example of PowerBI for "datasource.json")
 {
     "type": "PowerBI",
     "properties": {
         "dataset": "someDataset",
         "table": "someTable",
         "refreshToken": "someRefreshToken==",
         "tokenUserPrincipalName": "bobsmith@contoso.com",
         "tokenUserDisplayName": "Bob Smith",
         "groupId": "ac40305e-3e8d-43ac-8161-c33799f43e95",
         "groupName": "MyPowerBIGroup"
     }
 }
 (below is an example of Service Bus Queue for "datasource.json")
 {
     "type": "Microsoft.ServiceBus/Queue",
     "properties": {
         "serviceBusNamespace": "sdktest",
         "sharedAccessPolicyName": "RootManageSharedAccessKey",
         "sharedAccessPolicyKey": "sharedAccessPolicyKey=",
         "queueName": "sdkqueue",
         "propertyColumns": [
             "column1",
             "column2"
         ]
     }
 }
 (below is an example of Service Bus Topic for "datasource.json")
 {
     "type": "Microsoft.ServiceBus/Topic",
     "properties": {
         "serviceBusNamespace": "sdktest",
         "sharedAccessPolicyName": "RootManageSharedAccessKey",
         "sharedAccessPolicyKey": "sharedAccessPolicyKey=",
         "topicName": "sdktopic",
         "propertyColumns": [
             "column1",
             "column2"
         ]
     }
 }
 (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",
         "format": "Array"
     }
 }
 (below is an example of Avro for "serialization.json")
 {
     "type": "Avro"
 }

필수 매개 변수

--datasource

출력의 데이터 원본입니다.

--job-name

스트리밍 작업의 이름입니다.

--name -n

출력의 이름입니다.

--resource-group -g

리소스 그룹의 이름입니다. az configure --defaults group=<name>을 사용하여 기본 그룹을 구성할 수 있습니다.

선택적 매개 변수

--serialization

출력의 직렬화입니다.

az stream-analytics output delete

스트리밍 작업에서 출력을 삭제 합니다.

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

예제

출력 삭제

az stream-analytics output delete --resource-group MyResourceGroup --job-name MyJobName --name \
MyOutputName

필수 매개 변수

--job-name

스트리밍 작업의 이름입니다.

--name -n

출력의 이름입니다.

--resource-group -g

리소스 그룹의 이름입니다. az configure --defaults group=<name>을 사용하여 기본 그룹을 구성할 수 있습니다.

az stream-analytics output list

지정 된 스트리밍 작업의 모든 출력을 나열 합니다.

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

예제

스트리밍 작업의 모든 출력 나열

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

필수 매개 변수

--job-name

스트리밍 작업의 이름입니다.

--resource-group -g

리소스 그룹의 이름입니다. az configure --defaults group=<name>을 사용하여 기본 그룹을 구성할 수 있습니다.

az stream-analytics output show

지정 된 출력에 대 한 세부 정보를 가져옵니다.

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

예제

출력에 대 한 세부 정보 가져오기

az stream-analytics output show --resource-group MyResourceGroup --job-name MyJobName --name \
MyOutputName

필수 매개 변수

--job-name

스트리밍 작업의 이름입니다.

--name -n

출력의 이름입니다.

--resource-group -g

리소스 그룹의 이름입니다. az configure --defaults group=<name>을 사용하여 기본 그룹을 구성할 수 있습니다.

az stream-analytics output test

출력을 테스트 합니다.

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

예제

출력에 대 한 연결 테스트

az stream-analytics output test --resource-group MyResourceGroup --job-name MyJobName --name \
MyOutputName

필수 매개 변수

--job-name

스트리밍 작업의 이름입니다.

--name -n

출력의 이름입니다.

--resource-group -g

리소스 그룹의 이름입니다. az configure --defaults group=<name>을 사용하여 기본 그룹을 구성할 수 있습니다.

선택적 매개 변수

--no-wait

장기 실행 작업이 완료될 때까지 기다리지 마세요.