Can't delete Certificate. Also can't remove bindings to fix error

Gideon 6 Reputation points
2021-10-28T07:57:36.43+00:00

I deleted my Web App first (including https bindings) and now I receive an error when trying to delete my Certificate:

144264-image.png

The solution is to remove the bindings from the Web App but I can't because I deleted the whole Web App.
I just want to remove everything on Azure. Especially my creditcard information and my domain (so I can buy it somewhere else). Just everything.
Somebody know how to do this without getting errors?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,937 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2021-10-29T07:44:08.497+00:00

    Thanks for reaching here! If you are not able to delete certificate and receiving the following error message:

    "Unable to delete the certificate because it is currently being used in a TLS/SSL binding. The TLS binding must be removed before you can delete the certificate."

    This problem might occur if another app uses the certificate.

    Recommended: Remove the TLS binding for that certificate from the apps. Then try to delete the certificate. If you still can't delete the certificate, clear the internet browser cache and reopen the Azure portal in a new browser window. Then try to delete the certificate.

    You can also use Remove-AzWebAppSSLBinding cmdlet from PowerShell which removes a Secure Sockets Layer (SSL) binding from an Azure Web App.

    Remove-AzWebAppSSLBinding -ResourceGroupName "ContosoResourceGroup" -WebAppName "ContosoWebApp" -Name www.contoso.com  
    

    This command removes the SSL binding for the web app ContosoWebApp. Since the DeleteCertificate parameter is not included, the certificate will be deleted if it no longer has any SSL bindings.

    Check this link: https://learn.microsoft.com/en-us/powershell/module/az.websites/remove-azwebappsslbinding?view=azps-6.5.0#syntax

    Let us know if issue remains or further query on this.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.