You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PACKER ERR ==> azure-arm: The resource group was not created by Packer, not deleting ...
252
256
```
253
257
## Tips for troubleshooting script/inline customization
254
258
- Test the code before supplying it to Image Builder
@@ -574,6 +578,24 @@ The `buildTimeoutInMinutes` value in the template is set to between 1 and 5 minu
574
578
#### Solution
575
579
As described in [Create an Azure Image Builder template](./image-builder-json.md), the timeout must be set to 0 to use the default or above 5 minutes to override the default. Change the timeout in your template to 0 to use the default or to a minimum of 6 minutes.
576
580
581
+
### Resource deletion errors
582
+
583
+
#### Error
584
+
Intermediate resources are cleaned up toward the end of the build and the customization log may show several resource deletion errors:
585
+
586
+
```text
587
+
PACKER OUT ==> azure-arm: Error deleting resource. Will retry.
588
+
...
589
+
PACKER OUT ==> azure-arm: Error: network.PublicIPAddressesClient#Delete: Failure sending request: StatusCode=0 -- Original Error: Code="PublicIPAddressCannotBeDeleted" Message=...
These error log messages are mostly harmless because resource deletions are retried several times and they, in general, eventually succeed. This can be verified by continuing to follow the deletion logs until a success message is observed. Alternatively, the staging resource group can be inspected to confirm if the resource has been deleted or not.
596
+
597
+
_[This is especially important in case of build failures where these error messages may cause the observer to conclude them to be the reason for failure while the actual error is elsewhere.]_
0 commit comments