From 5ac082984646ac367e1bc78ff6857e9e70f1106f Mon Sep 17 00:00:00 2001 From: Danny de Kooker Date: Thu, 18 Jul 2024 10:38:03 +0200 Subject: [PATCH] Remove import-module --- Azure/Azure-Licensing-Report.ps1 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Azure/Azure-Licensing-Report.ps1 b/Azure/Azure-Licensing-Report.ps1 index a624caa..bde34d3 100644 --- a/Azure/Azure-Licensing-Report.ps1 +++ b/Azure/Azure-Licensing-Report.ps1 @@ -113,9 +113,6 @@ Write-Log -Message "The $module module is not installed. Please install it and try again." -Level ERROR exit 1 } - else { - Import-Module $module - } } #Setup MSGraph connection @@ -278,5 +275,5 @@ Write-Summary "Azure Product license report Summary:" Write-Summary "---------------------------" Write-Summary "Report date: $(Get-Date -Format "dd-MM-yyy HH:mm:ss")" - Write-Summary $($licenseUsageData | Sort-Object -Property LicenseDisplayName) + Write-Summary "$($licenseUsageData | Sort-Object -Property LicenseDisplayName)" Write-Summary "---------------------------" \ No newline at end of file