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

Error running report when license don't support Protection Group #146

Closed
3 tasks done
rebelinux opened this issue Mar 11, 2024 · 0 comments · Fixed by #147
Closed
3 tasks done

Error running report when license don't support Protection Group #146

rebelinux opened this issue Mar 11, 2024 · 0 comments · Fixed by #147
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rebelinux
Copy link
Collaborator

Bug description

Veeam Community post

WARNING: [ 14:12:40:402 ] [ Document ] - Inventory Summary Section: Current license does not allow this operation
New-AsBuiltReport : Current license does not allow this operation
At line:1 char:15
+ New-AsBuiltReport -Report Veeam.VBR -Target veeam-backup -Username '. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-AsBuiltReport
PS C:\Users\Administrator> Connect-VBRServer -Server veeam-backup -User "xxx" -Password "xxx"

PS C:\Users\Administrator> Get-VBRNASServer
WARNUNG: This cmdlet is obsolete, use Get-VBRUnstructuredServer instead.

PS C:\Users\Administrator> Get-VBRUnstructuredServer

PS C:\Users\Administrator> Get-VBRProtectionGroup
Get-VBRProtectionGroup : Current license does not allow this operation
In Zeile:1 Zeichen:1
+ Get-VBRProtectionGroup
+ ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-VBRProtectionGroup], LicenseException
    + FullyQualifiedErrorId : System.ComponentModel.LicenseException,Veeam.Backup.PowerShell.Cmdlets.GetVBRProtectionGroup

Command-line input

New-AsBuiltReport -Report Veeam.VBR -Target veeam-backup -Username '.\xxxxxx' -Password 'xxxxxxxx' -Format Html,Word -OutputFolderPath 'G:\Report' -Timestamp

Steps to reproduce

  1. run report with a veeam vbr license with no protection group support

Expected behaviour

The code must have the ability to handle errors and continue with the rest of the report.

Screenshots

No response

Operating System

Windows 10

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.19041.3803
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.3803
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

PowerShell Modules

Name                    Version
----                    -------
AsBuiltReport.Veeam.VBR 0.8.5
AsBuiltReport.Core      1.4.0
PScribo                 0.10.0

Additional Context

No response

Before submitting

@rebelinux rebelinux added the bug Something isn't working label Mar 11, 2024
@rebelinux rebelinux self-assigned this Mar 11, 2024
@rebelinux rebelinux added this to the v0.8.5 milestone Mar 11, 2024
rebelinux added a commit to rebelinux/AsBuiltReport.Veeam.VBR that referenced this issue Mar 11, 2024
@rebelinux rebelinux mentioned this issue Mar 15, 2024
7 tasks
@rebelinux rebelinux mentioned this issue Mar 16, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant