skip to Main Content

I am trying to retrieve app service certificate details , but it only retrieves for the entire ResourceGroup using powershell as follows:

az webapp config ssl list --resource-group  "TestResourceGroup" | ConvertFrom-Json

There are a number of app services in this resource group. I want the certificate details for a certain app service not all .

How can i get the details for a particular app service ?

2

Answers


  1. You can try using az webapp config ssl show --resource-group <RG_val> --certificate-name <naked_FQDN> (not sure what you need to return). Or alternatively use a JMESPath on the az webapp config list to control what you are returning.

    Login or Signup to reply.
  2. Thanks @mklement0, I have reproduced in my environment and got expected results as below and I followed Microsoft-Document:

    $r=az webapp config ssl list --resource-group XX
    $r.WebAppName.Certificate
    $r | ConvertFrom-Json                                              
    

    XX- Name of the resource group

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search