Skip to content

Commit f72128a

Browse files
committed
Update New-DlpCompliancePolicy.md
1 parent bb2e6af commit f72128a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ $guidVar = "e222b65a-b3a8-46ec-ae12-00c2c91b71c0"
101101
102102
$loc = "[{"Workload":"Applications","Location":"470f2276-e011-4e9d-a6ec-20768be3a4b0","Inclusions":[{Type:"Tenant", Identity:"All"}]}]"
103103
104+
New-DLPCompliancePolicy -Name "Policy Name" -Locations $loc
105+
104106
$advRule = @{
105107
"Version" = "1.0"
106108
"Condition" = @{
@@ -129,7 +131,7 @@ $advRule = @{
129131
}
130132
} | ConvertTo-Json -Depth 100
131133
132-
New-DLPComplianceRule -Policy "Policy Name" -Name "Rule Name" -AdvancedRule $advrule -RestrictAccess @(@{setting="ExcludeContentProcessing";value="Block"})
134+
New-DLPComplianceRule -Name "Rule Name" -Policy "Policy Name" -AdvancedRule $advrule -RestrictAccess @(@{setting="ExcludeContentProcessing";value="Block"})
133135
```
134136

135137
This example creates a DLP policy for Microsoft 365 Copilot (Preview) in several steps:
@@ -138,11 +140,13 @@ This example creates a DLP policy for Microsoft 365 Copilot (Preview) in several
138140

139141
- The second command stores the GUID value of the sensitivity label in the variable named $guidVar.
140142

141-
- The 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.
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. Replace "Policy Name" with the name you want to use.
142146

143-
- The fourth 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.
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.
144148

145-
- The last command creates the DLP rule. Replace "Policy Name" and "Rule Name" with the values you want to use.
149+
- The last command creates the DLP rule. Replace "Rule Name" with the name you want to use. Replace "Policy Name" with the name value from the fourth step.
146150

147151
## PARAMETERS
148152

0 commit comments

Comments
 (0)