Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that Application gateway has reference to deleted certificates from KeyVault and this in turn preventing you to perform any CRUD operations on the App Gateway.
I suggested,
- Open Azure Preview Portal : https://preview.portal.azure.com/#home
- Go to the App Gateway and open Listeners
- You should see a "Listener TLS certificates (Preview)" tab
-
- From here, select the certificate that is causing the issue
- In your case, it should be "certificate-preprod-202309261522pfx"
- You will see that certain certificates will have "Associated Listeners" as 0
- Use the ellipsis and click "Delete" to delete the reference in all such entries with 0 Associated Listeners one by one.
-
You informed us that there were some issues with Portal but however, you were able to do the same with Powershell.
Remove-AzApplicationGatewaySslCertificate
Thanks,
Kapil
Please Accept an answer as this helps the community find answers faster by identifying the correct answer.