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

FIXES #2671 #2676

Merged
merged 1 commit into from
Dec 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* Ensures all results are returned from the Export scenario. Currently limited at 1,000 results.
FIXES [#2672](https://github.com/microsoft/Microsoft365DSC/issues/2672)
FIXES [#2673](https://github.com/microsoft/Microsoft365DSC/issues/2672)
* MISC
* Added support for the ExcludedProperties parameter in the Assert-M365DSCBlueprint function.
FIXES [#2671](https://github.com/microsoft/Microsoft365DSC/issues/2671)

# 1.22.1214.1

Expand Down
12 changes: 10 additions & 2 deletions Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -2283,6 +2283,9 @@ Specifies the credentials that will be used for authentication.
.Parameter HeaderFilePath
Specifies that file that contains a custom header for the report.

.Parameter ExcludedProperties
Specifies the name of parameters that should not be assessed as part of the report. The names will speficied will apply to all resources where they are encountered.

.Example
Assert-M365DSCBlueprint -BluePrintUrl 'C:\DS\blueprint.m365' -OutputReportPath 'C:\DSC\BlueprintReport.html'

Expand Down Expand Up @@ -2315,7 +2318,11 @@ function Assert-M365DSCBlueprint
[Parameter()]
[System.String]
[ValidateSet('HTML', 'JSON')]
$Type = 'HTML'
$Type = 'HTML',

[Parameter()]
[System.String[]]
$ExcludedProperties
)
$InformationPreference = 'SilentlyContinue'
$WarningPreference = 'SilentlyContinue'
Expand Down Expand Up @@ -2399,7 +2406,8 @@ function Assert-M365DSCBlueprint
-DriftOnly:$true `
-IsBlueprintAssessment:$true `
-HeaderFilePath $HeaderFilePath `
-Type $Type
-Type $Type `
-ExcludedProperties $ExcludedProperties
}
else
{
Expand Down