Add a Remove-AzureRmWebAppCertificate cmdlet
There is no PowerShell cmdlet for Remove-AzureRmWebAppCertificate. This would be really useful to enable cleanup of old certificates that are no longer used.
(Note: I'm aware that using Remove-AzureRmWebAppSSLBinding will clean up a certificate if it's not referenced anymore. However, in production applications we don't want to use that cmdlet when updating an SSL certificate - we instead use New-AzureRmWebAppSSLBinding to overwrite the existing binding to the new certificate. The New-AzureRmWebAppSSLBinding cmdlet doesn't clean up the unused old certificate.)
Thanks for your suggestion, we will review this suggestion.
App Service Team
Alexey Melezhik commented
Yes, it would be useful!
Mukul Srivastava commented
We can't use remove-AzurermWebappSSLBinding in production. Instead we used to update the SSL binding using New-AzureRmWebappSSLBinding.
There must be cmdlet to remove Obsolete certificate .