1

How to get the list of certificates under an Azure App service using either Azure CLI or REST API with thumbprint and expiration details?

enter image description here

ntn
  • 330
  • 2
  • 3
  • 10
  • Is this what you are looking for: `az webapp config ssl list` - https://learn.microsoft.com/en-us/cli/azure/webapp/config/ssl?view=azure-cli-latest#az-webapp-config-ssl-list – Gaurav Mantri Mar 15 '22 at 06:23

1 Answers1

1

Using Azure CLI

List SSL certificates for web applications.

To build a list of SSL certificates in Azure CLI.

az webapp config ssl list --resource-group MyResourceGroup

enter image description here

To display the details of a web app's SSL certificate.

az webapp config ssl show --resource-group MyResourceGroup --certificate-name cname.mycustomdomain.com

enter image description here

Using REST API

Get all certifications for a subscription

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Web/certificates?api-version=2021-02-01

enter image description here

and with optional parameters

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Web/certificates?api-version=2021-02-01&$filter={$filter}
Harshitha Veeramalla
  • 1,515
  • 2
  • 10
  • 11