You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example creates a DLP policy for Microsoft 365 Copilot (Preview) in several steps.
102
-
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
99
105
-
```powershell
106
100
$guidVar = "e222b65a-b3a8-46ec-ae12-00c2c91b71c0"
107
-
```
108
101
109
-
This second command stores the GUID value of the sensitivity label in the variable named $guidVar.
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.
116
103
117
-
```powershell
118
-
$advrule = @{
104
+
$advRule = @{
119
105
"Version" = "1.0"
120
106
"Condition" = @{
121
107
"Operator" = "And"
@@ -142,15 +128,21 @@ $advrule = @{
142
128
)
143
129
}
144
130
} | ConvertTo-Json -Depth 100
145
-
```
146
-
147
-
The advanced rule needs to be updated depending on the grouping of labels you want to provide as input.
In this command, replace "Policy Name" and "Rule Name" with the values you want to use.
135
+
This example creates a DLP policy for Microsoft 365 Copilot (Preview) in several steps:
136
+
137
+
- 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`.
138
+
139
+
- The second command stores the GUID value of the sensitivity label in the variable named $guidVar.
140
+
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.
142
+
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.
144
+
145
+
- The last command creates the DLP rule. Replace "Policy Name" and "Rule Name" with the values you want to use.
0 commit comments