Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HealthCheck if license usage has exceeded limit #24

Closed
2 tasks done
rebelinux opened this issue May 5, 2024 · 2 comments · Fixed by #32
Closed
2 tasks done

Add HealthCheck if license usage has exceeded limit #24

rebelinux opened this issue May 5, 2024 · 2 comments · Fixed by #32
Assignees
Labels
change request New feature or request

Comments

@rebelinux
Copy link
Collaborator

Veeam Backup for Microsoft 365 version

7

Description

Add HealthCheck if license usage has exceeded limit

Additional Context

No response

Before submitting

  • I have read the documentation, and referred to the known issues before submitting this change request.
  • I have checked for previously opened & closed issues before submitting this change request.
@rebelinux rebelinux added the change request New feature or request label May 5, 2024
@rebelinux rebelinux self-assigned this May 5, 2024
@rebelinux
Copy link
Collaborator Author

VeeamCommunity/veeamcommunity-2023-Team-4#15

$vbolicense = Get-VBOLicense
if ($vbolicense.usednumber -gt $vbolicense.TotalNumber) {
write-host "VBO license exceeds limit" -ForegroundColor Red
}
else
{
write-host "VBO Licensed : OK" -ForegroundColor Green
}

@rebelinux
Copy link
Collaborator Author

Code:

if ($OutObj) {
    Section -Style Heading2 'Licenses' {
        Paragraph "The following table summarizes the licensing information within $VeeamBackupServer backup server."
        BlankLine
        if ($chartFileItem -and ($sampleData.Values | Measure-Object -Sum).Sum -ne 0) {
            Image -Text 'License Usage - Chart' -Align 'Center' -Percent 100 -Base64 $chartFileItem
        }
        BlankLine
        $OutObj | Table @TableParams
        if ($HealthCheck -and ($Licenses.UsedNumber -gt $Licenses.TotalNumber)) {
            Paragraph "Health Check:" -Bold -Underline
            BlankLine
            Paragraph {
                Text "Best Practice:" -Bold
                Text "Warning: Your license has exceeded its user limit."
            }
            BlankLine
        }

        # Per user license information
        if ($InfoLevel.Infrastructure.License -ge 2) {
            Get-AbrVB365InstalledLicenseUser
        }
    }
}

rebelinux added a commit to rebelinux/AsBuiltReport.Veeam.VB365 that referenced this issue May 24, 2024
@rebelinux rebelinux mentioned this issue May 25, 2024
7 tasks
@rebelinux rebelinux mentioned this issue May 25, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant