summary import { WebSiteManagementClient } from "@msinternal/web-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function listAppServiceCertificateDetectorResponse ( ) { const subscriptionId = "5700fc96-77b4-4f8d-afce-c353d8c443bd" ; const resourceGroupName = "Sample-WestUSResourceGroup" ; const certificateOrderName = "SampleCertificateOrderName" ; const credential = new DefaultAzureCredential ( ) ; const client = new WebSiteManagementClient ( credential , subscriptionId ) ; const resArray = new Array ( ) ; for await ( let item of client . certificateOrdersDiagnostics . listAppServiceCertificateOrderDetectorResponse ( resourceGroupName , certificateOrderName ) ) { resArray . push ( item ) ; } console . log ( resArray ) ; } listAppServiceCertificateDetectorResponse ( ) . catch ( console . error ) ;