Skip to content

Commit cb8fd8e

Browse files
committed
Merge branch 'main' into dev
2 parents f92aaa5 + 40b0cba commit cb8fd8e

4 files changed

Lines changed: 26 additions & 15 deletions

File tree

src/powershell/assets/ReportTemplate.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/powershell/public/Invoke-ZtAssessment.ps1

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,6 @@ function Invoke-ZtAssessment {
430430

431431
# Collect data
432432
if ($Resume) {
433-
if (-not (Test-Path $dbPath -PathType Leaf)) {
434-
throw "Resume requested, but no existing database was found at '$dbPath'. Run without -Resume first, or restore the previous export/database."
435-
}
436-
437433
# Guard: verify the requested pillar is compatible with the exported data
438434
$exportedPillar = Get-ZtConfig -ExportPath $exportPath -Property Pillar
439435
if ($exportedPillar -and $exportedPillar -ne $Pillar) {
@@ -444,15 +440,12 @@ function Invoke-ZtAssessment {
444440
throw "Resume requested with -Pillar $Pillar, but the existing export was created with -Pillar $exportedPillar. Run without -Resume or use -Pillar $exportedPillar."
445441
}
446442
}
447-
448-
Write-PSFMessage -Message "Stage 1: Reusing Existing Export and Database" -Tag stage
449-
$database = Connect-Database -Path $dbPath -Transient
450-
}
451-
else {
452-
Write-PSFMessage -Message "Stage 1: Exporting Tenant Data" -Tag stage
453-
Export-ZtTenantData -ExportPath $exportPath -Days $Days -MaximumSignInLogQueryTime $MaximumSignInLogQueryTime -Pillar $Pillar -ThrottleLimit $ExportThrottleLimit
454-
$database = Export-Database -ExportPath $exportPath -Pillar $Pillar
455443
}
444+
445+
Write-PSFMessage -Message "Stage 1: Exporting Tenant Data" -Tag stage
446+
Export-ZtTenantData -ExportPath $exportPath -Days $Days -MaximumSignInLogQueryTime $MaximumSignInLogQueryTime -Pillar $Pillar -ThrottleLimit $ExportThrottleLimit
447+
$database = Export-Database -ExportPath $exportPath -Pillar $Pillar
448+
456449
try {
457450
# Run the tests
458451
Write-PSFMessage -Message "Stage 2: Running Tests" -Tag stage

src/report/src/pages/Data.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,16 @@ export default function Data() {
1414
<CardHeader>
1515
<CardTitle className="mb-3">Assessment results</CardTitle>
1616
<CardDescription>
17-
The results presented below are based on data protection principles.
17+
The results presented below are based on the security principles detailed in the{" "}
18+
<a
19+
href="https://learn.microsoft.com/en-us/purview/configure-security"
20+
target="_blank"
21+
rel="noopener noreferrer"
22+
className="text-primary font-medium underline underline-offset-4 hover:underline"
23+
>
24+
Configuring Microsoft Purview for increased security
25+
</a>
26+
{" "}guide.
1827
</CardDescription>
1928
</CardHeader>
2029
<CardContent className="gap-4 px-4 pb-4 pt-1">

src/report/src/pages/Network.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,16 @@ export default function Network() {
1414
<CardHeader>
1515
<CardTitle className="mb-3">Assessment results</CardTitle>
1616
<CardDescription>
17-
The results presented below are based on network security principles.
17+
The results presented below are based on the security principles detailed in the{" "}
18+
<a
19+
href="https://learn.microsoft.com/en-us/entra/fundamentals/configure-security"
20+
target="_blank"
21+
rel="noopener noreferrer"
22+
className="text-primary font-medium underline underline-offset-4 hover:underline"
23+
>
24+
Configuring Microsoft Entra and Azure for increased security
25+
</a>
26+
{" "}guide.
1827
</CardDescription>
1928
</CardHeader>
2029
<CardContent className="gap-4 px-4 pb-4 pt-1">

0 commit comments

Comments
 (0)