Skip to content

Commit ebf6d22

Browse files
authored
Merge pull request #2 from paulinbar/painbar-dlp-cmdlets
added documentation and examples for
2 parents 874f670 + 067e321 commit ebf6d22

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

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

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,14 @@ Accept wildcard characters: False
390390
```
391391

392392
### -PowerBIDlpLocation
393-
The PowerBIDlpLocation parameter specifies the Power BI worksapce IDs to include in the DLP policy.
393+
The PowerBIDlpLocation parameter specifies the Power BI workspace IDs to include in the DLP policy. Only workspaces hosted in Premium Gen2 capacities are permitted.
394394

395-
You can enter multiple values separated by commas. If the values contain spaces or otherwise require quotation marks, use the following syntax: `"Value1","Value2",..."ValueN"`.
395+
You can enter multiple workspace IDs separated by commas. If the values contain spaces or otherwise require quotation marks, use the following syntax: `"workspaceID1","workspaceID2",..."workspaceIDN"`.
396+
397+
You can find the workspace ID as follows:
398+
* Admin portal > Workspaces. Select workspace > More options (...) > Details
399+
* From the URL of a selected workpace.
400+
* PowerShell > Get-PowerBIWorkspace
396401

397402
```yaml
398403
Type: MultiValuedProperty
@@ -407,10 +412,22 @@ Accept pipeline input: False
407412
Accept wildcard characters: False
408413
```
409414

415+
#### Example
416+
```powershell
417+
New-DlpCompliancePolicy -Name "PowerBIPolicy" -Comment "Primary policy" -PowerBIDlpLocation "workspaceID1","workspaceID2","workspaceID3" -Mode Enable
418+
```
419+
420+
This example creates a DLP policy named PowerBIPolicy for the specified Power BI workspaces. The new policy has a descriptive comment and will be enabled on creation.
421+
410422
### -PowerBIDlpLocationException
411-
The PowerBIDlpLocationException parameter specifies the Power BI worksapce IDs to exclude when you use the value All for the PowerBIDlpLocation parameter.
423+
The PowerBIDlpLocationException parameter specifies the Power BI workspace IDs to exclude when you use the value All for the PowerBIDlpLocation parameter. Only workspaces hosted in Premium Gen2 capacities are permitted.
412424

413-
You can enter multiple values separated by commas. If the values contain spaces or otherwise require quotation marks, use the following syntax: `"Value1","Value2",..."ValueN"`.
425+
You can enter multiple workspace IDs separated by commas. If the values contain spaces or otherwise require quotation marks, use the following syntax: `"workspaceID1","workspaceID2",..."workspaceIDN"`.
426+
427+
You can find the workspace ID as follows:
428+
* Admin portal > Workspaces. Select workspace > More options (...) > Details
429+
* From the URL of a selected workpace.
430+
* PowerShell > Get-PowerBIWorkspace
414431

415432
```yaml
416433
Type: MultiValuedProperty
@@ -425,6 +442,13 @@ Accept pipeline input: False
425442
Accept wildcard characters: False
426443
```
427444

445+
#### Example
446+
```powershell
447+
New-DlpCompliancePolicy -Name "PowerBIPolicy" -Comment "Primary policy" -PowerBIDlpLocation "All" -PowerBIDlpLocationException "workspaceID1","workspaceID2","workspaceID3" -Mode Enable
448+
```
449+
450+
This example creates a DLP policy named PowerBIPolicy for all qualifying Power BI workspaces (that is, those hosted on Premium Gen2 capacities) except for the specified workspaces. The new policy has a descriptive comment and will be enabled on creation.
451+
428452
### -Priority
429453
The Priority parameter specifies a priority value for the policy that determines the order of policy processing. A lower integer value indicates a higher priority, the value 0 is the highest priority, and policies can't have the same priority value.
430454

0 commit comments

Comments
 (0)