EmAchieng / azure-networking-management

0 stars 0 forks source link

Lack of Rollback on Failures #13

Closed EmAchieng closed 1 day ago

EmAchieng commented 1 week ago

Description: If resource creation fails midway, the script does not roll back previously created resources, potentially leading to orphaned resources.

Possible Fix: Implement rollback functionality to delete resources if any part of the creation process fails.

EmAchieng commented 1 day ago

Recent update addresses the issue of orphaned resources by introducing a rollback mechanism. If resource creation fails at any stage, the script now attempts to delete previously created resources, ensuring no orphaned resources remain. This significantly improves the reliability of the resource creation process and avoids unnecessary costs associated with leftover resources.

Key Changes

The changes ensures that failures in the middle of resource creation no longer leave behind orphaned resources, improving overall robustness and cost management.