Forum Discussion
how to set API version in Visual Studio code for Azure Stream Analytics Jobs
Hi Community!
Please your advise, I've been struggling to publish an ASA job from Visual Studio Code, that , out of nowhere begun to issue the following error:
1 Reply
Take this:
1. Check Your *.asa.json File
In your ASA project folder, locate the job definition file (e.g. asa-job.asa.json).
Look for the "apiVersion" field, if it’s missing or set to "2017-04-01-preview", update it to:"apiVersion": "2020-03-01"
2. Update Your Output Configuration
If you're using Parquet output, make sure your output target (e.g., Blob Storage or Data Lake) is configured correctly in the job's output section. The newer API supports Parquet only for certain output types.3. Use the Latest ASA Tools Extension
Make sure you have the latest version of the Azure Stream Analytics Tools extension installed in VS Code. You can update it from the Extensions pane.4. Re-authenticate and Re-deploy
After updating the API version, sign out and back into Azure in VS Code:-
- Press Ctrl+Shift+P → type Azure: Sign Out
- Then sign back in and try submitting the job again.
-