I have just resolved the issue thanks to Copilot. It was an issue with batch size. The method can only process 64 images at a time.
CustomVisionTrainingClient.CreateImagesFromUrlsAsync returns Bad Request
I am using the method CreateImagesFromUrlsAsync(projectId, new ImageUrlCreateBatch { Images = imagesToUpload }); in the class CustomVisionTrainingClient to upload images from blob storage to azure custom vision AI for training. The projectid is valid and I am also testing to ensure that the there imagesToUpload has files before execution.
The same method works with an instance where both blob storage and custom vision ai are in eastus region. However, it is giving me Bad Request for a scenario where the blob storage is in South Africa North while custom vision is in eastus. I was unable to setup custom vision ai in South Africa North as apparently it is not available.
Any ideas will be appreciated.