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