MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.09k stars 21.14k forks source link

Automate deployment of a Stream Analytics job to IoT Edge #78670

Closed ckarrasalithya closed 2 years ago

ckarrasalithya commented 2 years ago

I'm using the procedure on https://docs.microsoft.com/en-us/azure/iot-edge/tutorial-deploy-stream-analytics?view=iotedge-2020-11&toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstream-analytics%2Ftoc.json%3Fview%3Diotedge-2020-11&bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fbread%2Ftoc.json%3Fview%3Diotedge-2020-11 to deploy a Stream Analytics job on an IoT Edge device. Every time I modify the query, I need to rebuild a ASAEdgeJobDefinition.zip. I'm currently doing this by manually repeating the steps in the documentation, by using the "Set Modules" interface in the Azure Portal, which is time consuming.

Is there a way to do the same thing automatically using the command line?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

SatishBoddu-MSFT commented 2 years ago

Hello @ckarrasalithya Thanks for the feedback! We are currently investigating and will update you shortly.

SatishBoddu-MSFT commented 2 years ago

Hello @ckarrasalithya

To publish a Stream Analytics job on IoT Edge, call the POST method using the Edge Package Publish API.Publish Edge package

Please refer to this document: Implement CI/CD for Stream Analytics on IoT Edge using APIs

Deploy Azure IoT Edge modules with Azure CLI

ckarrasalithya commented 2 years ago

Thanks, it seems to be what I was looking for. I suggest adding a reference to this page to the tutorial, as a note in the "Deploy the page" section.

SatishBoddu-MSFT commented 2 years ago

Hello @ckarrasalithya Thanks for the feedback, we will consider this with our team.