尝试创建Azure函数输出时New-AzureRmStreamAnalyticsOutput返回无效的json错误 [英] New-AzureRmStreamAnalyticsOutput returning invalid json error when trying to create Azure function output

查看:68
本文介绍了尝试创建Azure函数输出时New-AzureRmStreamAnalyticsOutput返回无效的json错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个事件中心和一个流分析作业.创建了一个以事件中心为源的输入,并创建了一个查询.现在,当我尝试创建Azure函数作为此作业的输出时-我收到以下错误:

I have created an event hub and a stream analytics job. Have created an input whose source is the event hub and created a query. Now when I am trying to create an Azure Function as an output to this job - I am getting the following error:

New-AzureRmStreamAnalyticsOutput:HTTP状态代码:BadRequest
错误代码:BadRequest
错误消息:请求正文中提供的JSON无效.在JSON中找不到必需的属性"properties".路径",第1行,位置2.
请求ID:98d152af-83a5-4fc4-8e05-b4284ccab957
时间戳(UTC):08/29/2018 08:06:27

New-AzureRmStreamAnalyticsOutput : HTTP Status Code: BadRequest
Error Code: BadRequest
Error Message: The JSON provided in the request body is invalid. Required property 'properties' not found in JSON. Path '', line 1, position 2.
Request Id: 98d152af-83a5-4fc4-8e05-b4284ccab957
Timestamp (Utc):08/29/2018 08:06:27

我的输出json模板是这样的:

My output json template is this:

{
名称":"AzureFunctionOutput",
属性":{
数据源":{
类型":"Microsoft.AzureFunction",
属性":{
"functionAppName":",
"functionName":",
"maxBatchSize":100,
"apiKey":",
"maxBatchCount":100
}
}

},
序列化":{
属性":{
编码":"UTF8"
},
类型":"Json"
},
类型":流"
}

{
"Name": "AzureFunctionOutput",
"Properties": {
"datasource": {
"type": "Microsoft.AzureFunction",
"properties": {
"functionAppName": "",
"functionName": "",
"maxBatchSize": 100,
"apiKey": "",
"maxBatchCount": 100
}
}

},
"Serialization": {
"Properties": {
"Encoding": "UTF8"
},
"Type": "Json"
},
"Type": "Stream"
}

有人可能在这里帮助我吗?

Could anyone help me out here as what might be the issue?

另外,有没有人尝试过通过Powershell创建具有天蓝色功能作为输出的流分析作业?

Also on side note, has anyone has tried creating a stream analytics job with azure function as output via powershell? 

非常感谢!

推荐答案

我们正在跟踪一侧的错误,该错误在写入Azure函数时最新版本的TLS设置(1.2)导致失败.请将TLS设置更新为1.0/1.1并尝试.我希望它能工作.
We are tracking a bug on our side where latest version of TLS setting (1.2) is causing failures while writing to Azure functions. Please update the TLS setting to 1.0 / 1.1 and try it. I am hoping it should work.


这篇关于尝试创建Azure函数输出时New-AzureRmStreamAnalyticsOutput返回无效的json错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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