Skip to content

Commit

Permalink
Health Check - Validate if Self-Service restore portal is implemented A…
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelinux committed May 25, 2024
1 parent f0f9f58 commit 6d72319
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Src/Private/Get-AbrVb365ServerRestorePortal.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function Get-AbrVb365ServerRestorePortal {
Section -Style Heading3 'Restore Portal' {
$RestorePortalInfo = @()
$inObj = [ordered] @{
'Is Restore Portal Enable' = ConvertTo-TextYN $RestorePortal.IsServiceEnabled
'Is Restore Portal Enabled' = ConvertTo-TextYN $RestorePortal.IsServiceEnabled
'Region' = ConvertTo-EmptyToFiller $RestorePortal.Region
'Application Id' = ConvertTo-EmptyToFiller $RestorePortal.ApplicationId
'Portal URI' = ConvertTo-EmptyToFiller $RestorePortal.PortalUri
Expand All @@ -45,6 +45,8 @@ function Get-AbrVb365ServerRestorePortal {
if ($HealthCheck.Infrastructure.ServerConfig) {
$RestorePortalInfo | Where-Object { $_.'Issued By' -eq 'CN=Veeam Software, O=Veeam Software, OU=Veeam Software' } | Set-Style -Style Warning -Property 'Issued By'
$RestorePortalInfo | Where-Object { ((Get-Date).AddDays(+90)).Date.DateTime -gt $_.'Expiration Date' } | Set-Style -Style Critical -Property 'Expiration Date'
$RestorePortalInfo | Where-Object { $_.'Is Restore Portal Enabled' -eq 'No' } | Set-Style -Style Warning -Property 'Is Restore Portal Enabled'

}

$TableParams = @{
Expand Down

0 comments on commit 6d72319

Please sign in to comment.