Skip to content

Commit d3aa52c

Browse files
authored
Merge branch 'DLP-chrisda' into patch-1
2 parents 0a9b5a1 + fdd1765 commit d3aa52c

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

exchange/exchange-ps/exchange/New-DlpCompliancePolicy.md

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -96,26 +96,14 @@ This example creates a DLP policy named PowerBIPolicy for all qualifying Power B
9696
### Example 4
9797
```powershell
9898
Get-Label | Format-List Priority,ContentType,Name,DisplayName,Identity,Guid
99-
```
100-
101-
This example creates a DLP policy for Microsoft 365 Copilot (Preview) in several steps.
10299
103-
This first command returns information about all sensitivity labels. Select the GUID value of the sensitivity label that you want to use. For example, `e222b65a-b3a8-46ec-ae12-00c2c91b71c0`.
104-
105-
```powershell
106100
$guidVar = "e222b65a-b3a8-46ec-ae12-00c2c91b71c0"
107-
```
108-
109-
This second command stores the GUID value of the sensitivity label in the variable named $guidVar.
110101
111-
```powershell
112102
$loc = "[{"Workload":"Applications","Location":"470f2276-e011-4e9d-a6ec-20768be3a4b0","Inclusions":[{Type:"Tenant", Identity:"All"}]}]"
113-
```
114103
115-
This third command creates the DLP policy. The Location value 470f2276-e011-4e9d-a6ec-20768be3a4b0 is Microsoft 365 Copilot. The $loc value needs to be updated depending on what Inclusions/Exclusions scoping you want to provide.
104+
New-DLPCompliancePolicy -Name "Copilot Policy" -Locations $loc
116105
117-
```powershell
118-
$advrule = @{
106+
$advRule = @{
119107
"Version" = "1.0"
120108
"Condition" = @{
121109
"Operator" = "And"
@@ -142,15 +130,23 @@ $advrule = @{
142130
)
143131
}
144132
} | ConvertTo-Json -Depth 100
133+
134+
New-DLPComplianceRule -Name "Copilot Rule" -Policy "Copilot Policy" -AdvancedRule $advrule -RestrictAccess @(@{setting="ExcludeContentProcessing";value="Block"})
145135
```
146136

147-
The advanced rule needs to be updated depending on the grouping of labels you want to provide as input.
137+
This example creates a DLP policy for Microsoft 365 Copilot (Preview) in several steps:
148138

149-
```powershell
150-
New-DLPComplianceRule -Policy "Policy Name" -Name "Rule Name" -AdvancedRule $advrule -RestrictAccess @(@{setting="ExcludeContentProcessing";value="Block"}) -Locations $loc
151-
```
139+
- The first command returns information about all sensitivity labels. Select the GUID value of the sensitivity label that you want to use. For example, `e222b65a-b3a8-46ec-ae12-00c2c91b71c0`.
140+
141+
- The second command stores the GUID value of the sensitivity label in the variable named $guidVar.
142+
143+
- The third command stores the Microsoft 365 Copilot location (470f2276-e011-4e9d-a6ec-20768be3a4b0) in the variable named $loc. Update the $loc value based on the Inclusions/Exclusions scoping that you want to provide.
144+
145+
- The fourth command creates the DLP policy using the $loc variable for the value of the Locations parameter, and "Copilot Policy" as the name of the policy (use any unique name).
146+
147+
- The fifth command creates the variable named $advRule. The advanced rule needs to be updated depending on the grouping of labels you want to provide as input.
152148

153-
In this command, replace "Policy Name" and "Rule Name" with the values you want to use.
149+
- The last command creates the DLP rule with the name "Copilot Rule" (use any unique name). Use the name of the DLP policy from step four as the value of the Policy parameter.
154150

155151
## PARAMETERS
156152

0 commit comments

Comments
 (0)