Azure-Samples / azure-batch-samples

Azure Batch and HPC Code Samples
Other
261 stars 487 forks source link

Updated Pool creation to use VirtualMachineConfiguration #318

Closed arocho032 closed 1 year ago

arocho032 commented 1 year ago

Modified the way Pools are created in the CSharp samples. The current samples use CloudServiceConfiguration, which will be retired and currently are not supported in some batch regions (see https://azure.microsoft.com/en-us/updates/azure-batch-cloudserviceconfiguration-pools-will-be-retired-on-29-february-2024/).

Instead, the new version uses VirtualMachineConfiguration, with some backed-in settings. Sometimes, these are located in the sample-specific settings.json, while others they are in the code files themselves.

Another small change is using standard_d2_v3 instead of standard_d1_v2, as I found that new accounts might not have standard_d1_v2 quota by default.