summary import { WebSiteManagementClient } from "@msinternal/web-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getAppServiceCertificateOrderDetectorResponse ( ) { const subscriptionId = "5700fc96-77b4-4f8d-afce-c353d8c443bd" ; const resourceGroupName = "Sample-WestUSResourceGroup" ; const certificateOrderName = "SampleCertificateOrderName" ; const detectorName = "AutoRenewStatus" ; const credential = new DefaultAzureCredential ( ) ; const client = new WebSiteManagementClient ( credential , subscriptionId ) ; const result = await client . certificateOrdersDiagnostics . getAppServiceCertificateOrderDetectorResponse ( resourceGroupName , certificateOrderName , detectorName ) ; console . log ( result ) ; } getAppServiceCertificateOrderDetectorResponse ( ) . catch ( console . error ) ;