以编程方式创建流分析输出到Data Lake [英] Programmatically creating a Stream Analytics Output to Data Lake

查看:128
本文介绍了以编程方式创建流分析输出到Data Lake的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个Powershell脚本,该脚本将自动创建并授权流分析输出到Data Lake.我遵循了此页面上的JSON模板: 

I am writing a powershell script that will automatically create and authorize a stream analytics output to data lake. I followed the JSON template from this page: 

https://docs.microsoft.com/zh-cn/azure/templates/microsoft.streamanalytics/streamingjobs#MicrosoftDataLakeAccountsOutput.

https://docs.microsoft.com/en-us/azure/templates/microsoft.streamanalytics/streamingjobs#MicrosoftDataLakeAccountsOutput.

我运行了脚本,但出现以下错误:

I ran the script and I got the following error:

New-AzureRmStreamAnalyticsOutput:HTTP状态代码:BadRequest
错误代码:BadRequest
错误消息:请求正文中提供的JSON无效.找到无效的输出数据源类型:
OutputDataSource.
请求ID:8043c909-8882-4166-b9bc-e018a1b6c628
时间戳(UTC):08/02/2018 15:07:56
在C:\ Users \ harsh.jain \ Desktop \ AuthorizationAutomation.ps1:17 char:1
+ New-AzureRmStreamAnalyticsOutput -JobName"harshteststream" -资源...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo          :CloseError:(:) [New-AzureRmStreamAnalyticsOutput],CloudException
  + FullyQualifiedErrorId:Microsoft.Azure.Commands.StreamAnalytics.NewAzureStreamAnalyticsOutputCommand

New-AzureRmStreamAnalyticsOutput : HTTP Status Code: BadRequest
Error Code: BadRequest
Error Message: The JSON provided in the request body is invalid. Invalid output data source type found:
OutputDataSource.
Request Id: 8043c909-8882-4166-b9bc-e018a1b6c628
Timestamp (Utc):08/02/2018 15:07:56
At C:\Users\harsh.jain\Desktop\AuthorizationAutomation.ps1:17 char:1
+ New-AzureRmStreamAnalyticsOutput -JobName "harshteststream" -Resource ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [New-AzureRmStreamAnalyticsOutput], CloudException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.StreamAnalytics.NewAzureStreamAnalyticsOutputCommand

该脚本适用于表存储输出,但不适用于数据湖或powerbi.我不知道为什么会出现此错误,因为输出的类型为"Microsoft.DataLake/Accounts".不是"OutputDataSource".

The script works for a table storage output, but it doesn't work for data lake nor powerbi. I do not know why this error is showing up because the output is of type "Microsoft.DataLake/Accounts" not "OutputDataSource".

推荐答案

哈莎,

   在掩盖任何敏感细节之后,您可以为我们提供JSON吗?

    Can you provide us with your JSON after masking any sensitive details?


这篇关于以编程方式创建流分析输出到Data Lake的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆