question

Gideon-1698 avatar image
0 Votes"
Gideon-1698 asked SnehaAgrawal-MSFT answered

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

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-webapps-ssl-certificates
image.png (8.6 KiB)
5 |1600 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.

1 Answer

SnehaAgrawal-MSFT avatar image
0 Votes"
SnehaAgrawal-MSFT answered

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://docs.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.




5 |1600 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.