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.

Parameters

-DefaultProfile

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

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-GroupId

The list of group id.

Type:System.String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

The name of private link service.

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

The private link service.

Type:Microsoft.Azure.Commands.Network.Models.PSPrivateLinkService
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-PrivateLinkServiceId

The id of private link service.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-RequestMessage

The request message.

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

Inputs

None

Outputs

Microsoft.Azure.Commands.Network.Models.PSPrivateLinkServiceConnection