Reputation: 646
Is there a Visual Studio template for Stream Analytics job? i.e. a concept of develop and publish from Visual Studio to Azure.
If not how do we develop a application lifecycle for Stream analytics?
For example like Azure Data Factory have json templates to create its objects, likewise do Stream analytics have one?
Upvotes: 2
Views: 742
Reputation: 279
Steam Analytics has sample json template in ARM template (Azure Resource Manager). You could use it in VisualStudio maybe.
Reference the template from azure documents: https://learn.microsoft.com/en-us/azure/templates/microsoft.streamanalytics/streamingjobs
If you need to define the inputs and outputs of the stream analytics job, you may also need to reference the create input/output rest api, since the document lack of this kind of information.
Upvotes: 0
Reputation: 646
Currently, the way I'm authoring Stream Analytics jobs and job objects (i.e. Inputs, Outputs, Transformations) is using 'hand-made' JSON (i.e. no Intellisense support in Visual Studio) refer here for JSON schema reference https://msdn.microsoft.com/library/dn835031.aspx And execute them using Stream Analytics PowerShell cmdlets refer https://msdn.microsoft.com/library/mt270341.aspx
We could use a simple console application project or PowerShell project in Visual Studio and bring it under source control.
Upvotes: 0
Reputation: 1523
There are couple tutorials from Microsoft:
MyDriving solution that has a full ARM template and it does include few ASA jobs in it: https://github.com/Azure-Samples/MyDriving/blob/master/scripts/ARM/scenario_complete.json#L266
OnClick PowerShell sample with scripts to deploy ASA job: https://github.com/Azure/azure-stream-analytics/tree/master/Samples/ASAOneClick
Upvotes: 1