Skip to content

Commit 0a4c3cd

Browse files
Merge pull request #246882 from ericd-mst-github/erd-aib-troubleshoot
Updating troubleshoot doc
2 parents 3b5bc4f + eb7c4c4 commit 0a4c3cd

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

articles/virtual-machines/linux/image-builder-troubleshoot.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: This article helps you troubleshoot common problems and errors you
44
author: kof-f
55
ms.author: kofiforson
66
ms.reviewer: erd
7-
ms.date: 06/07/2023
7+
ms.date: 07/31/2023
88
ms.topic: troubleshooting
99
ms.service: virtual-machines
1010
ms.subservice: image-builder
@@ -756,6 +756,32 @@ These error log messages are mostly harmless, because resource deletions are ret
756756

757757
Making these observations is especially important in build failures, where these error messages might lead you to conclude that they're the reason for the failures, even when the actual errors might be elsewhere.
758758

759+
#### Error
760+
761+
When images are stuck in template deletion, the customization log may show the below error:
762+
763+
```output
764+
error deleting resource id /subscriptions/<subscriptionID>/resourceGroups/<rgName>/providers/Microsoft.Network/networkInterfaces/<networkInterfacName>: resources.Client#DeleteByID: Failure sending request: StatusCode=400 --
765+
Original Error: Code="NicInUseWithPrivateEndpoint"
766+
Message="Network interface /subscriptions/<subscriptionID>/resourceGroups/<rgName>/providers/Microsoft.Network/networkInterfaces/<networkInterfacName> cannot be deleted because it is currently in use with an private endpoint (/subscriptions/<subscriptionID>/resourceGroups/<rgName>/providers/Microsoft.Network/privateEndpoints/<pIname>)." Details=[]
767+
```
768+
769+
#### Cause
770+
771+
The error occurs because the network interface is currently in use with a private endpoint.
772+
773+
#### Solution
774+
775+
To resolve the issue, delete the below resources one by one in the specific order:
776+
777+
1. Private endpoint connection. You can find this in the private link service resource by going to the "private endpoint connections" tab on the private link service resource page.
778+
1. Private link service.
779+
1. Network interface and load balancer.
780+
1. Resource Group.
781+
1. Image template.
782+
783+
For additional assistance, you can [contact Azure support](/azure/azure-portal/supportability/how-to-create-azure-support-request) to resolve the stuck deletion error.
784+
759785
## DevOps tasks
760786

761787
### Troubleshoot the task

0 commit comments

Comments
 (0)