When no NSG exists, all rules have failed

This commit is contained in:
Michael Barry
2019-05-20 14:30:28 -04:00
parent b27b484d70
commit 78ff1d07f8
@@ -460,6 +460,9 @@ function VerifyNSG {
}
$result['success'] = $result['failedSecurityRules'].Count -eq 0
}
Else {
$result['failedSecurityRules'] = DefineSecurityRules
}
If($true -eq $result['success'])
{
Write-Host "Passed Validation - Network security group." -ForegroundColor Green