Skip to content

Commit

Permalink
Merge branch 'Dev' into Release-1.22.921.1
Browse files Browse the repository at this point in the history
  • Loading branch information
NikCharlebois authored Sep 21, 2022
2 parents 958cece + 6e99962 commit 131f1d7
Show file tree
Hide file tree
Showing 4 changed files with 213 additions and 6 deletions.
5 changes: 0 additions & 5 deletions Modules/Microsoft365DSC/Dependencies/Manifest.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@
RequiredVersion = '1.3.0.6'
},
@{
<<<<<<< Updated upstream
ModuleName = 'ExchangeOnlineManagement'
RequiredVersion = '2.0.5'
=======
ModuleName = "ExchangeOnlineManagement"
RequiredVersion = "3.0.0"
>>>>>>> Stashed changes
},
@{
ModuleName = 'Microsoft.Graph.Applications'
Expand Down
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;
}
}
}
```

Loading

0 comments on commit 131f1d7

Please sign in to comment.