Skip to content

Commit

Permalink
Merge pull request #46 from DMoenks/runtime-fixes
Browse files Browse the repository at this point in the history
Fixed usage report and SKU details query errors
  • Loading branch information
DMoenks authored May 6, 2024
2 parents 2d6f844 + c4f89e7 commit 414bb22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

| Version | Supported |
| ------- | ------------------ |
| 1.3.1.1 | :heavy_check_mark: |
| 1.3.1 | :heavy_check_mark: |
| < 1.3.1 | :x: |

Expand Down
2 changes: 1 addition & 1 deletion azure-ad-license-status.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
RootModule = 'azure-ad-license-status.psm1'

# Version number of this module.
ModuleVersion = '1.3.1'
ModuleVersion = '1.3.1.1'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
4 changes: 2 additions & 2 deletions azure-ad-license-status.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function Initialize-Module {
$script:nestingLevel = 0
$script:outputs = [System.Text.StringBuilder]::new()
$script:results = @{}
$script:skuTranslate = [string]::new([char[]]((Invoke-WebRequest -Uri 'https://download.microsoft.com/download/e/3/e/e3e9faf2-f28b-490a-9ada-c6089a1fc5b0/Product%20names%20and%20service%20plan%20identifiers%20for%20licensing.csv' -UseBasicParsing).Content)) | ConvertFrom-Csv
$script:skuTranslate = [System.Text.Encoding]::UTF8.GetString((Invoke-WebRequest -Uri 'https://download.microsoft.com/download/e/3/e/e3e9faf2-f28b-490a-9ada-c6089a1fc5b0/Product%20names%20and%20service%20plan%20identifiers%20for%20licensing.csv' -UseBasicParsing).Content) | ConvertFrom-Csv
$script:appUsage = @{}
$script:mailboxUsage = @{}
$script:driveUsage = @{}
Expand Down Expand Up @@ -661,7 +661,7 @@ function Get-AzureADLicenseStatus {
})
}
else {
Write-Message -Message "Found duplicate user name $($entry.'User Principal Name') in OneDrive usage reports" -Type Error
Write-Message -Message "Found duplicate user name $($entry.'Owner Principal Name') in OneDrive usage reports" -Type Error
}
}
if ($appUsage.Keys.Count -gt 0 -and
Expand Down

0 comments on commit 414bb22

Please sign in to comment.