forked from microsoft/Microsoft365DSC
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementing [SCSensitityLabel] Auto Labeling missing in export micro…
- Loading branch information
Showing
6 changed files
with
1,010 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
625 changes: 616 additions & 9 deletions
625
Modules/Microsoft365DSC/DSCResources/MSFT_SCSensitivityLabel/MSFT_SCSensitivityLabel.psm1
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
146 changes: 146 additions & 0 deletions
146
Modules/Microsoft365DSC/Examples/Resources/SCSensitivityLabel/2-Update.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
<# | ||
This example is used to test new resources and showcase the usage of new resources being worked on. | ||
It is not meant to use as a production baseline. | ||
#> | ||
|
||
Configuration Example | ||
{ | ||
param( | ||
[Parameter(Mandatory = $true)] | ||
[PSCredential] | ||
$Credscredential | ||
) | ||
Import-DscResource -ModuleName Microsoft365DSC | ||
|
||
node localhost | ||
{ | ||
SCSensitivityLabel 'ConfigureSensitivityLabel' | ||
{ | ||
Name = 'DemoLabel' | ||
Comment = 'Demo Label comment' | ||
ToolTip = 'Demo tool tip' | ||
DisplayName = 'Demo Label' | ||
ApplyContentMarkingFooterAlignment = 'Center' | ||
ApplyContentMarkingFooterEnabled = $true | ||
ApplyContentMarkingFooterFontColor = '#FF0000' | ||
ApplyContentMarkingFooterFontSize = 10 | ||
ApplyContentMarkingFooterMargin = 5 | ||
ApplyContentMarkingFooterText = 'Demo footer text' | ||
ApplyContentMarkingHeaderAlignment = 'Center' | ||
ApplyContentMarkingHeaderEnabled = $true | ||
ApplyContentMarkingHeaderFontColor = '#FF0000' | ||
ApplyContentMarkingHeaderFontSize = 10 | ||
ApplyContentMarkingHeaderMargin = 5 | ||
ApplyContentMarkingHeaderText = 'demo header text' | ||
ApplyWaterMarkingEnabled = $true | ||
ApplyWaterMarkingFontColor = '#FF0000' | ||
ApplyWaterMarkingFontSize = 10 | ||
ApplyWaterMarkingLayout = 'Diagonal' | ||
ApplyWaterMarkingText = 'demo watermark' | ||
SiteAndGroupProtectionAllowAccessToGuestUsers = $true | ||
SiteAndGroupProtectionAllowEmailFromGuestUsers = $true | ||
SiteAndGroupProtectionAllowFullAccess = $true | ||
SiteAndGroupProtectionAllowLimitedAccess = $true | ||
SiteAndGroupProtectionBlockAccess = $true | ||
SiteAndGroupProtectionEnabled = $true | ||
SiteAndGroupProtectionPrivacy = 'Private' | ||
LocaleSettings = @( | ||
MSFT_SCLabelLocaleSettings | ||
{ | ||
LocaleKey = 'DisplayName' | ||
LabelSettings = @( | ||
MSFT_SCLabelSetting | ||
{ | ||
Key = 'en-us' | ||
Value = 'English Display Names' | ||
} | ||
MSFT_SCLabelSetting | ||
{ | ||
Key = 'fr-fr' | ||
Value = "Nom da'ffichage francais" | ||
} | ||
) | ||
} | ||
MSFT_SCLabelLocaleSettings | ||
{ | ||
LocaleKey = 'StopColor' | ||
LabelSettings = @( | ||
MSFT_SCLabelSetting | ||
{ | ||
Key = 'en-us' | ||
Value = 'RedGreen' | ||
} | ||
MSFT_SCLabelSetting | ||
{ | ||
Key = 'fr-fr' | ||
Value = 'Rouge' | ||
} | ||
) | ||
} | ||
) | ||
AdvancedSettings = @( | ||
MSFT_SCLabelSetting | ||
{ | ||
Key = 'AllowedLevel' | ||
Value = @('Sensitive', 'Classified') | ||
} | ||
MSFT_SCLabelSetting | ||
{ | ||
Key = 'LabelStatus' | ||
Value = 'Enabled' | ||
} | ||
) | ||
AutoLabelingSettings = MSFT_SCSLAutoLabelingSettings | ||
{ | ||
Operator = 'And' | ||
AutoApplyType = 'Recommend' | ||
PolicyTip = 'My Perfect Test Tip!' | ||
Groups = @( | ||
MSFT_SCSLSensitiveInformationGroup | ||
{ | ||
Name = 'Group1' | ||
Operator = 'Or' | ||
SensitiveInformationType = @( | ||
MSFT_SCSLSensitiveInformationType | ||
{ | ||
name = 'ABA Routing Number' | ||
confidencelevel = 'High' | ||
maxcount = -1 | ||
mincount = 1 | ||
} | ||
) | ||
TrainableClassifier = @( | ||
MSFT_SCSLTrainableClassifiers | ||
{ | ||
name = 'Legal Affairs' | ||
} | ||
) | ||
} | ||
MSFT_SCSLSensitiveInformationGroup | ||
{ | ||
Name = 'Group2' | ||
Operator = 'And' | ||
SensitiveInformationType = @( | ||
MSFT_SCSLSensitiveInformationType | ||
{ | ||
name = 'All Full Names' | ||
confidencelevel = 'High' | ||
maxcount = 100 | ||
mincount = 10 | ||
} | ||
) | ||
TrainableClassifier = @( | ||
MSFT_SCSLTrainableClassifiers | ||
{ | ||
name = 'Threat' | ||
} | ||
) | ||
} | ||
) | ||
} | ||
ParentId = 'Personal' | ||
Ensure = 'Present' | ||
Credential = $Credscredential | ||
} | ||
} | ||
} |
Oops, something went wrong.