CmdID / az / az image / az image builder / az image builder error-handler
az image builder error-handler add
Add error handler to an existing image builder template. Azure CLI reference
2 options Its page in the Azure CLI reference
Options
--on-customizer-errorIf there is a customizer error and this field is set to "cleanup", the build VM and associated network resources will be cleaned up.--on-validation-errorIf there is a validation error and this field is set to "cleanup", the build VM and associated network resources will be cleaned up.