편집

다음을 통해 공유


New-AzPrivateLinkServiceConnection

Creates a private link service connection configuration.

Syntax

New-AzPrivateLinkServiceConnection
   -Name <String>
   -PrivateLinkService <PSPrivateLinkService>
   [-GroupId <String[]>]
   [-RequestMessage <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzPrivateLinkServiceConnection
   -Name <String>
   -PrivateLinkServiceId <String>
   [-GroupId <String[]>]
   [-RequestMessage <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The New-AzPrivateLinkServiceConnection cmdlet creates a private link service connection configuration.

Examples

Example 1

New-AzPrivateLinkServiceConnection -Name MyPLSConnection -PrivateLinkServiceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestResourceGroup/providers/Microsoft.Network/privateLinkServices/privateLinkService" -RequestMessage "Please Approve my request"

This example create a private link service connection object in memory for using in creating private endpoint.

Example 2

Creates a private link service connection configuration. (autogenerated)

New-AzPrivateLinkServiceConnection -GroupId <String[]> -Name 'MyPLSConnections' -PrivateLinkServiceId '/subscriptions/00000000-0000-0000-0000-00000000000000000/resourceGroups/TestResourceGroup/providers/Microsoft.Network/privateLinkServices/privateLinkService'

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-GroupId

The list of group id. You can use '(Get-AzPrivateLinkResource -PrivateLinkResourceId ${privateLinkResourceId}).GroupId' to get the supported group ids.

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

The name of private link service.

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

-PrivateLinkService

The private link service.

Type:PSPrivateLinkService
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-PrivateLinkServiceId

The id of private link service.

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

-RequestMessage

The request message.

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

Inputs

None

Outputs

PSPrivateLinkServiceConnection