An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
Hello @Nur Hafizah Binti Musa ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
Even when the listener is deleted, the ssl certificate may exist unassigned in the backend, so I would request you to run the Get-AzApplicationGatewaySslCertificate PowerShell command to get the list of all ssl certificates for your application gateway:
https://learn.microsoft.com/en-us/powershell/module/az.network/get-azapplicationgatewaysslcertificate?view=azps-6.1.0#example-2--get-a-list-of-ssl-certificates
If you find the old ssl certificate in the list, try to remove it using the Remove-AzApplicationGatewaySslCertificate PowerShell command:
https://learn.microsoft.com/en-us/powershell/module/az.network/remove-azapplicationgatewaysslcertificate?view=azps-6.1.0
Post that you should be able to update the new ssl certificate from keyvault.
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.