Set-AdminDlpPolicy
Updates a policy's environment and default API group settings. Upserts the environment list input (doesn't append).
Syntax
TenantPolicy (Default)
Set-AdminDlpPolicy
-PolicyName <String>
[-FilterType <String>]
[-Environments <String>]
[-DefaultGroup <String>]
[-SetNonBusinessDataGroupState <String>]
[-ApiVersion <String>]
[-SchemaVersion <String>]
[<CommonParameters>]
EnvironmentPolicy
Set-AdminDlpPolicy
-PolicyName <String>
-EnvironmentName <String>
[-DefaultGroup <String>]
[-SetNonBusinessDataGroupState <String>]
[-ApiVersion <String>]
[-SchemaVersion <String>]
[<CommonParameters>]
Description
The Set-AdminDlpPolicy cmdlet updates details on the policy, such as environment filter and default API group. Use Get-Help Set-AdminDlpPolicy -Examples for more detail.
Examples
EXAMPLE 1
Set-AdminDlpPolicy -PolicyName 78d6c98c-aaa0-4b2b-91c3-83d211754d8a -FilterType None
Clears the environment filter for the policy 78d6c98c-aaa0-4b2b-91c3-83d211754d8a.
EXAMPLE 2
Set-AdminDlpPolicy -PolicyName 78d6c98c-aaa0-4b2b-91c3-83d211754d8a -FilterType Include -Environments "febb5387-84d7-4717-8345-334a34402f3d,83d98843-bfd7-47ef-bfcd-dc628810ae7b"
Only applies the policy to the environments febb5387-84d7-4717-8345-334a34402f3d and 83d98843-bfd7-47ef-bfcd-dc628810ae7b.
EXAMPLE 3
Set-AdminDlpPolicy -PolicyName 78d6c98c-aaa0-4b2b-91c3-83d211754d8a -FilterType Exclude -Environments "febb5387-84d7-4717-8345-334a34402f3d,83d98843-bfd7-47ef-bfcd-dc628810ae7b"
Applies the policy to all environments except febb5387-84d7-4717-8345-334a34402f3d and 83d98843-bfd7-47ef-bfcd-dc628810ae7b.
EXAMPLE 4
Set-AdminDlpPolicy -PolicyName 78d6c98c-aaa0-4b2b-91c3-83d211754d8a -DefaultGroup hbi
Sets the default data group attribute to be hbi (business data only).
EXAMPLE 5
Set-AdminDlpPolicy -PolicyName 78d6c98c-aaa0-4b2b-91c3-83d211754d8a -SchemaVersion 2018-11-01
Sets the DLP policy to schema version '2018-11-01', allowing for the use of HTTP connectors.
EXAMPLE 6
Set-AdminDlpPolicy -PolicyName 78d6c98c-aaa0-4b2b-91c3-83d211754d8a -SetNonBusinessDataGroupState "Block"
Sets non-business data (lbi) to a block state.
Parameters
-ApiVersion
Specifies the Api version that is called.
Parameter properties
Type: | String |
Default value: | 2016-11-01 |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DefaultGroup
The default group setting, hbi or lbi.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-EnvironmentName
The environment ID.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
EnvironmentPolicy
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Environments
Comma separated string list used as input environments to either include or exclude, depending on the FilterType
.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
TenantPolicy
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-FilterType
Identifies which filter type the policy will have, none, include, or exclude.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
TenantPolicy
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-PolicyName
Policy name that is updated.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-SchemaVersion
Specifies the schema version to use, 2016-11-01-preview or 2018-11-01 (HTTP connectors included).
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-SetNonBusinessDataGroupState
Set non business data group (lbi) to a Block or Unblock state.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.