azure-stream-analytics

Stream Analytics Job deployed as Azure Resource Manager (ARM) template

瘦欲@ 提交于 2021-02-10 18:49:29
问题 I am trying to setup an output EventHub for a Stream Analytics Job defined as a JSON template. Without the output bit the template is successfully deployed, however when adding the output definition it fails with: Deployment failed. Correlation ID: <SOME_UUID>. { "code": "BadRequest", "message": "The JSON provided in the request body is invalid. Property 'eventHubName' value 'parameters('eh_name')' is not acceptable.", "details": { "code": "400", "message": "The JSON provided in the request

Azure Stream Analytics 'TimeStamp By' in query doesn't works on job but works fine on test

馋奶兔 提交于 2021-02-08 04:49:20
问题 I'm working on a IoT project. I've a Raspberry pi which send data to an IoTHub on Azure. That Hub forwards that data to an Azure Stream Analytics Job. In my query I try to aggregate(here an average) all the data in a TumblingWindow of 1 minute but as a Timestamp I use a custom datetime sent in the data. I've tried many things but nothing seemed to work. the stream job seems to ignore the datetime I provide and just aggregate everything based on the arrival time. Only when using the "Test"

Application Insights and Azure Stream Analytics Query a custom JSON property

谁都会走 提交于 2021-02-06 13:58:06
问题 I am trying to read my Application Insights export into a SQL Table using stream analytics. These are Custom and Metric events I'm trying to capture so part of the JSON is the "name" of the custom or metric event (e.g. TestMethod1) and the JSON looks like this: { "metric": [ ], "internal": .. host of other json data... "context": { "custom": { "metrics": [ { "TestMethod1": { "value": 42.8207, "count": 1.0, "min": 42.8207, "max": 42.8207, "stdDev": 0.0 } } ] } } } Using analytics Sql like