Κοινή χρήση μέσω


Add-CustomConnectorToPolicy

Adds a custom connector to the given group.

Syntax

Add-CustomConnectorToPolicy
   [-PolicyName] <String>
   [-ConnectorName] <String>
   [-GroupName] <String>
   [-ConnectorId] <String>
   [-ConnectorType] <String>
   [[-EnvironmentName] <String>]
   [[-ApiVersion] <String>]
   [<CommonParameters>]

Description

The Add-CustomConnectorToPolicy adds a custom connector to a specific group of a DLP policy depending on parameters. Use Get-Help Add-CustomConnectorToPolicy -Examples for more detail.

Examples

EXAMPLE 1

Add-CustomConnectorToPolicy -PolicyName 7b914a18-ad8b-4f15-8da5-3155c77aa70a -ConnectorName BloopBlop -ConnectorId /providers/Microsoft.PowerApps/apis/BloopBlop -ConnectorType Microsoft.PowerApps/apis -GroupName hbi

Adds the custom connector 'BloopBlop' to BusinessData group of policy name 7b914a18-ad8b-4f15-8da5-3155c77aa70a.

EXAMPLE 2

Add-CustomConnectorToPolicy -EnvironmentName Default-02c201b0-db76-4a6a-b3e1-a69202b479e6 -PolicyName 7b914a18-ad8b-4f15-8da5-3155c77aa70a -ConnectorName BloopBlop -ConnectorId /providers/Microsoft.PowerApps/apis/BloopBlop -ConnectorType Microsoft.PowerApps/apis -GroupName hbi

Adds the custom connector 'BloopBlop' to BusinessData group of policy name 7b914a18-ad8b-4f15-8da5-3155c77aa70a in environment Default-02c201b0-db76-4a6a-b3e1-a69202b479e6.

Parameters

-ApiVersion

The api version to call with. Default 2018-01-01.

Type:String
Position:7
Default value:2018-01-01
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ConnectorId

The custom connector's ID.

Type:String
Position:4
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ConnectorName

The custom connector's name.

Type:String
Position:2
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ConnectorType

The custom connector's type.

Type:String
Position:5
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-EnvironmentName

The environment's identifier.

Type:String
Position:6
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-GroupName

The name of the group to add the connector to, lbi or hbi.

Type:String
Position:3
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-PolicyName

The policy name's identifier.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False