How to remove the expired certificated from Azure App gateways listners

Girish Prajwal 706 Reputation points
2024-01-12T14:38:24.2266667+00:00

Hi Team, We want to remove the Azure appgateway listener expired certificates using powershell. There are about 6 to 7 certificates to be removed. How can it be done on multiple Appgateways in a subscription We have multiple subscriptions where this cleanup has to be done.

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,217 questions
{count} votes

Accepted answer
  1. Priya Kumar 1,096 Reputation points Microsoft Employee
    2024-01-14T16:54:17.03+00:00

    Hello, @Girish Prajwal ,

    Thanks for reaching to Microsoft Q and A platform.

    1. There is a Microsoft Preview Portal, where you could see the list of the Certificate and delete which is not needed.
    2. Main step is to disassociate the SSL Cert from the Listener and Associate the Listener to the New Valid certificate.
    3. Now we have two option to delete Certs from the Application Gateway. Either using Portal, or via the PowerShell.

    - Using Portal

    -Using PowerShell

    • Get the name of all the Expired cert with the Application Gateway, post running all the remove command perform the SET command.
    • To delete using Powershell

    --Please don't forget to "[Accept the answer]" and “[Upvote]” if the reply is helpful--

    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    Regards Priya Kumar

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.