Hello @Frank van Graafeiland ,
Welcome to Microsoft Q&A Platform. Thanks for posting your query.
There is a known issue with Private Endpoints which is preventing them from being deleted and below is the RCA from the backend team:
Symptom : Delete Private Endpoint call is failing.
Cause : A recent code change introduced a regression which is leading to the inability in deleting private endpoints. We sincerely apologize for the inconvenience caused.
Workaround : No immediate workaround, we are working on deploying the fix.
Backend team is working was on a fix but looks like you have the same issue. I would request you to give the below a try:
Perform "Get-AzPrivateEndpoint", store the output in a variable, and then perform "Set-AzPrivateEndpoint".
Get-AzPrivateEndpoint : https://learn.microsoft.com/en-us/powershell/module/Az.Network/Get-AzPrivateEndpoint?view=azps-4.7.0
Set-AzPrivateEndpoint : https://learn.microsoft.com/en-us/powershell/module/az.network/set-azprivateendpoint?view=azps-4.7.0
And post this check if the Private endpoint provisioning comes back to "Succeeded" state.
If it does, try to delete the Private endpoint first and then Virtual Network and finally Resource group.
If it does not goes back to "Succeeded" state and remains in failed state, you would need to raise a support case. Hence, if you have a support plan, I request you to file a support ticket, else please do let us know, we will try and help you get a one-time free technical support. In this case, do send an email to azcommunity@microsoft.com referencing this thread as well as your subscription ID. Please mention "ATTN gishar" in the subject field.
Hope this helps!
Kindly let us know if the above helps or you need further assistance on this issue.
----------------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.