-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Dev' into Release-1.22.921.1
- Loading branch information
Showing
4 changed files
with
213 additions
and
6 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
73 changes: 73 additions & 0 deletions
73
docs/docs/resources/security-compliance/SCAutoSensitivityLabelPolicy.md
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,73 @@ | ||
# SCAutoSensitivityLabelPolicy | ||
|
||
## Parameters | ||
|
||
| Parameter | Attribute | DataType | Description | Allowed Values | | ||
| --- | --- | --- | --- | --- | | ||
| **Name** | Key | String | The Name parameter specifies the unique name for the sensitivity label. The maximum length is 64 characters. If the value contains spaces, enclose the value in quotation marks. || | ||
| **Ensure** | Write | String | Specify if this label policy should exist or not. |Present, Absent| | ||
| **Comment** | Write | String | The Comment parameter specifies an optional comment. || | ||
| **ApplySensitivityLabel** | Write | String | The ApplySensitivityLabel parameter specifies the label to use for the auto label policy. || | ||
| **ExchangeSender** | Write | StringArray[] | The ExchangeSender parameter specifies which senders to include in the policy. || | ||
| **ExchangeSenderException** | Write | StringArray[] | The ExchangeSenderException parameter specifies which senders to exclude in the policy. || | ||
| **ExchangeSenderMemberOf** | Write | StringArray[] | The ExchangeSenderMemberOf parameter specifies the distribution groups, mail-enabled security groups, or dynamic distribution groups to include in the auto-labeling policy. || | ||
| **ExchangeSenderMemberOfException** | Write | StringArray[] | he ExchangeSenderMemberOf parameter specifies the distribution groups, mail-enabled security groups, or dynamic distribution groups to exclude from the auto-labeling policy. || | ||
| **ExchangeLocation** | Write | StringArray[] | The ExchangeSender parameter specifies which senders to include in the policy. || | ||
| **AddExchangeLocation** | Write | StringArray[] | This AddExchangeLocation parameter specifies new Exchange locations to be added to the policy without affecting the existing ones. || | ||
| **RemoveExchangeLocation** | Write | StringArray[] | The RemoveExchangeLocation parameter removes locations on Exchange from the policy. || | ||
| **Mode** | Write | String | The Mode parameter specifies the action and notification level of the auto-labeling policy. |Enable, Disable, TestWithNotifications, TestWithoutNotifications| | ||
| **OneDriveLocation** | Write | StringArray[] | The OneDriveLocation parameter specifies the OneDrive for Business sites to include. You identify the site by its URL value, or you can use the value. || | ||
| **AddOneDriveLocation** | Write | StringArray[] | The AddOneDriveLocation parameter specifies the OneDrive for Business sites to add to the list of included sites when you aren't using the value All for the OneDriveLocation parameter. || | ||
| **RemoveOneDriveLocation** | Write | StringArray[] | The RemoveOneDriveLocation parameter specifies the OneDrive for Business sites to remove from the list of included sites when you aren't using the value All for the OneDriveLocation parameter. || | ||
| **AddOneDriveLocationException** | Write | StringArray[] | This parameter specifies the OneDrive for Business sites to exclude when you use the value All for the OneDriveLocation parameter. || | ||
| **RemoveOneDriveLocationException** | Write | StringArray[] | This RemoveOneDriveLocationException parameter specifies the OneDrive for Business sites to remove from the list of excluded sites when you use the value All for the OneDriveLocation parameter. || | ||
| **OneDriveLocationException** | Write | StringArray[] | The AddOneDriveLocationException parameter specifies the OneDrive for Business sites to add to the list of excluded sites when you use the value All for the OneDriveLocation parameter. || | ||
| **Priority** | Write | UInt32 | The Priority parameter specifies the priority of the policy. The highest priority policy will take action over lower priority policies if two policies are applicable for a file. || | ||
| **SharePointLocation** | Write | StringArray[] | The SharePointLocation parameter specifies the SharePoint Online sites to include. You identify the site by its URL value, or you can use the value All to include all sites. || | ||
| **SharePointLocationException** | Write | StringArray[] | This parameter specifies the SharePoint Online sites to exclude when you use the value All for the SharePointLocation parameter. || | ||
| **AddSharePointLocationException** | Write | StringArray[] | The AddSharePointLocation parameter specifies the SharePoint Online sites to add to the list of included sites when you aren't using the value All for the SharePointLocation parameter. || | ||
| **RemoveSharePointLocationException** | Write | StringArray[] | The RemoveSharePointLocationException parameter specifies the SharePoint Online sites to remove from the list of excluded sites when you use the value All for the SharePointLocation parameter. || | ||
| **AddSharePointLocation** | Write | StringArray[] | The AddSharePointLocation parameter specifies the SharePoint Online sites to add to the list of included sites when you aren't using the value All for the SharePointLocation parameter. || | ||
| **RemoveSharePointLocation** | Write | StringArray[] | The RemoveSharePointLocation parameter specifies the SharePoint Online sites to remove from the list of included sites when you aren't using the value All for the SharePointLocation parameter. || | ||
| **Credential** | Required | PSCredential | Credentials of the Exchange Global Admin || | ||
|
||
# SCAutoSensitivityLabelPolicy | ||
|
||
### Description | ||
|
||
This resource configures a Auto Sensitivity label policy in Security and Compliance. | ||
|
||
## Examples | ||
|
||
### Example 1 | ||
|
||
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. | ||
|
||
```powershell | ||
Configuration Example | ||
{ | ||
param( | ||
[Parameter(Mandatory = $true)] | ||
[PSCredential] | ||
$Credscredential | ||
) | ||
Import-DscResource -ModuleName Microsoft365DSC | ||
node localhost | ||
{ | ||
SCAutoSensitivityLabelPolicy 'TestPolicy' | ||
{ | ||
ApplySensitivityLabel = "TopSecret"; | ||
Comment = "This is a test"; | ||
Credential = $Credscredential; | ||
Ensure = "Present"; | ||
ExchangeLocation = @("All"); | ||
Mode = "Enable"; | ||
Name = "TestPolicy"; | ||
Priority = 0; | ||
} | ||
} | ||
} | ||
``` | ||
|
Oops, something went wrong.