Azure / azhpc-images

Azure HPC/AI VM Images
MIT License
95 stars 77 forks source link

`azhpc-build` script fails but resources are created, leading to unintended charges #231

Closed negin513 closed 1 year ago

negin513 commented 1 year ago

I recently encountered an issue while using the AZHPC script (azhpc-build) on Azure. When the script fails to execute due to some error (for example provisioning failed due to invalid parameter), it still creates resources like VM scale sets, vnets, and others. As a result, users are charged for these resources, even though the script execution was unsuccessful. When checking the Azure portal, it does not show any virtual machines running, which can lead users to believe that they are not being charged. As a result, users may incur unexpected costs due to this issue, which can be frustrating and negatively impact their experience.

Expected behavior:

The azhpc-build script should delete the resources created when it fails to execute completely to avoid unintentional charges to the user. The AZHPC script should not create and charge for resources when it fails to execute.