The error you are seeing means that your request to the Azure Batch REST API is missing the required api-version
query parameter. You're using an older version of the Azure Batch SDK. There's a mismatch between the SDK and REST API versions.
You mentioned you're running the C# sample from this repo. This sample uses the Azure.Batch SDK, which internally calls the REST API. But it might be using an outdated or incorrect SDK version, or the environment setup is missing configuration, causing this error when polling for task/job status.
Make sure your Microsoft.Azure.Batch
NuGet package is latest and is stable version.
Check that your batch account and URLs are correct.
Batch Service REST API Versioning
For your reference: https://stackoverflow.com/questions/50413148/http-get-missingrequiredqueryparameter
If you have any further queries, let me know. If the information is helpful, please click on Upvote.