question

FrankvanGraafeiland-8014 avatar image
0 Votes"
FrankvanGraafeiland-8014 asked ·

Cannot delete private endpoint connection

Hi guys,

I've created a private endpoint for a recovery services vault and now I want to delete both of these resources, but I'm not able to. First I tried to delete the two resource groups that these resources are in, but this failed.

When I try to delete the recovery services vault, I get an error message saying I need to delete all private endpoints associated with this vault first. However, the private endpoint connection doesn't show up under private endpoint connections in the Azure portal.

When I try to delete the private endpoint itself (which has a provisioning state of Failed), I just get the "An error occured" message without any further explanation.

When I try to delete the Network Interface that is created for the private endpoint connection on the private subnet, I get the message that it cannot be deleted because it is in use with a private endpoint.

Lastly, the subnet cannot be deleted because the Network Interface is still attached to it.


Does anyone have experience with this issue or does anyone know what I haven't tried yet?


Thanks in advance.

Frank

azure-private-link
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

<<UPDATE on this thread>>

We have successfully created a support request and are awaiting resolution.

Thanks,
Gita

0 Votes 0 ·
GitaraniSharmaMSFT-4262 avatar image
0 Votes"
GitaraniSharmaMSFT-4262 answered ·

Hello @FrankvanGraafeiland-8014 ,

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://docs.microsoft.com/en-us/powershell/module/Az.Network/Get-AzPrivateEndpoint?view=azps-4.7.0
Set-AzPrivateEndpoint : https://docs.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.

· 5 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Gitarani,

Thank you for the swift and elaborate response.

I've tried the Set-AzPrivateEndpoint cmdlet with the private endpoint as a variable; the command runs for about a minute and then returns the same error message: "An error occured". The provisioning state is still on Failed, unfortunately.

We do not have a support plan included in our subscription, but I assume this support plan is meant for technical issues that are caused by a lack of Azure knowledge as opposed to errors on Microsoft's end. In the past a Microsoft employee advised me to create a Billing-related support request for a technical issue and I was eventually helped with that technical issue, without a support plan. So i'll try that as well.

I will also gladly take you up on your offer of trying to get us one-time free technical support :).

Thanks once more for the help.

0 Votes 0 ·

Hello @FrankvanGraafeiland-8014 ,

Thank you for the update. We have received your email and will be responding shortly.

Thanks,
Gita

0 Votes 0 ·

Hi Gitarani

It seems Microsoft has resolved the errors in its code which caused the error message when deleting a private endpoint. I successfully deleted the private endpoint with the Remove-AzPrivateEndpoint cmdlet and I’m sure that could have also been done via the Azure portal. Thank you for your assistance.

0 Votes 0 ·

Hello @FrankvanGraafeiland-8014 ,

Glad to hear that.

I checked with the backend team and it looks like the fix code deployment was deployed in all regions today (16th Oct 2020) and hence the customers can now delete the Private endpoints which were causing issues.

Kindly let us know if the above helps or you need further assistance on this issue.


Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

0 Votes 0 ·
miqbalb avatar image miqbalb FrankvanGraafeiland-8014 ·

Still have same problem in my subscription while deleting the private end point
email: miqbalb@gmail.com

0 Votes 0 ·
PranoteeDhamapurkar-7447 avatar image
0 Votes"
PranoteeDhamapurkar-7447 answered ·

Hi team,
Please help to resolve below error.
all resources are deleted -still getting same error.
Vault cannot be deleted as there are existing resources within the vault. : vm01,LAPTOP-S30N73R4.
Please ensure all containers have been unregistered from the vault and all private endpoints associated with the vault have been deleted, and retry operation. For more details, see https://aka.ms/AB-AA4ecq5 (Code: ServiceResourceNotEmptyWithBackendMessage)
See less

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GauravSharma-7918 avatar image
0 Votes"
GauravSharma-7918 answered ·

Try to remove the entries from private dns zones first and then delete endpoints..

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.