From 1875a6083e411be9f8901e97a6899c956e88c4d0 Mon Sep 17 00:00:00 2001 From: Danny de Kooker Date: Mon, 17 Feb 2025 18:17:51 +0100 Subject: [PATCH] Fix Email subject calculation --- Azure/Azure-App-Expiration.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Azure/Azure-App-Expiration.ps1 b/Azure/Azure-App-Expiration.ps1 index bcc99ec..117b112 100644 --- a/Azure/Azure-App-Expiration.ps1 +++ b/Azure/Azure-App-Expiration.ps1 @@ -270,7 +270,7 @@ $htmlReport = @" #region send reports and generate summary report # Send the report via email $Status = "OK" - switch ($licenseUsageData | Select-Object -ExpandProperty LicenseStatus) { + switch ($AppClientSecretsDetails.status + $AppCertificateDetails.status) { { $_ -contains "ERROR" } { $Status = "ERROR"; break } { $_ -contains "WARNING" } { $Status = "WARNING"; break } }