Forum Discussion

PlafoCL's avatar
PlafoCL
Copper Contributor
Mar 06, 2023

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:

 
[2023/3/6 12:58:07 AM] [Info] Job submitting ...
[2023/3/6 12:58:08 AM] [Error] Job 'asa-dlo-test-flatten-1' submitted failed, error detail: Job submission failed: Error: Feature or property 'Parquet' is not supported in API version 2017-04-01-preview. Please use API version 2020-03-01.
 
I have running on the same resource group several other ASA jobs that do similar things (like output to parquet) in brazil-south Zone, however , out of nothing it is now throwing this error and I have no clue on how to set the API version to 2020-03-01 in Visual Studio Code or in the ASA Job itself, 
 
Any ideas?  Many thanks!
Ral
 
 

 

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.

Resources