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

Application Groups table missing platform information #88

Closed
3 tasks done
rebelinux opened this issue Mar 6, 2023 · 2 comments · Fixed by #94 or #97
Closed
3 tasks done

Application Groups table missing platform information #88

rebelinux opened this issue Mar 6, 2023 · 2 comments · Fixed by #94 or #97
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rebelinux
Copy link
Collaborator

rebelinux commented Mar 6, 2023

Bug description

The application group table lacks information about platform.

Command-line input

New-AsBuiltReport -Report Veeam.VBR -Target veeam-vbr.pharmax.local -AsBuiltConfigFilePath C:\Users\jocolon\AsBuiltReport\AsBuiltReport.json -OutputFolderPath C:\Users\jocolon\AsBuiltReport\ -Credential $cred -Format HTML -ReportConfigFilePath C:\Users\jocolon\AsBuiltReport\AsBuiltReport.Veeam.VBR_all.json -EnableHealthCheck

Steps to reproduce

  1. Run report

Expected behaviour

That the report produces the correct information

Screenshots

image

Operating System

Windows 10

PowerShell Version

PS C:\Users\jocolon> $PSVersionTable

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


PS C:\Users\jocolon>

PowerShell Modules

PS C:\Users\jocolon> Get-Module -ListAvailable @("AsBuiltReport.Core";"AsBuiltReport.Veeam.VBR";"PScribo") | Select Name, Version

Name                    Version
----                    -------
AsBuiltReport.Veeam.VBR 0.7.1
AsBuiltReport.Core      1.3.0
AsBuiltReport.Veeam.VBR 0.5.4
AsBuiltReport.Veeam.VBR 0.3.0
PScribo                 0.10.0


PS C:\Users\jocolon>

Additional Context

No response

Before submitting

@rebelinux rebelinux added the bug Something isn't working label Mar 6, 2023
@rebelinux rebelinux self-assigned this Mar 6, 2023
@rebelinux
Copy link
Collaborator Author

Partial Code:

$OutObj = @()
try {
    $SureBackupAGs = Get-VBRApplicationGroup
    foreach ($SureBackupAG in $SureBackupAGs) {
        Write-PscriboMessage "Discovered $($SureBackupAG.Name) Application Group."
        $inObj = [ordered] @{
            'Name' = $SureBackupAG.Name
            'Platform' = $SureBackupAG.Platform
            'VM List' = $SureBackupAG.VM -join ", "
        }
        $OutObj += [pscustomobject]$inobj
    }
}
catch {
    Write-PscriboMessage -IsWarning "SureBackup Configuration $($SureBackupAG.Name) Section: $($_.Exception.Message)"
}

@rebelinux
Copy link
Collaborator Author

In v12 platform is removed now vSphere and Hyper-V are supported

PS C:\Users\jocolon> $SureBackupAGs = Get-VBRApplicationGroup
PS C:\Users\jocolon> $SureBackupAGs | fl


VM          : {WIN}
Id          : 3f360704-c14c-4c89-8e23-06b2d97a0500
Name        : HV - APPGroup
Description : Created by PHARMAX\jocolon at 12/25/2021 9:53 PM.

VM          : {smallserver-01v, LINUX-VM}
Id          : 55b3240e-10e7-4dee-8575-4dc9ec2c17a1
Name        : PHARMAX-AG
Description : Created by PHARMAX\administrator at 6/30/2021 6:35 PM.

PS C:\Users\jocolon>

@rebelinux rebelinux added this to the v0.7.1 milestone Mar 6, 2023
rebelinux added a commit to rebelinux/AsBuiltReport.Veeam.VBR that referenced this issue Mar 6, 2023
@rebelinux rebelinux mentioned this issue Mar 6, 2023
7 tasks
This was referenced Mar 7, 2023
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