Deny-AzPrivateEndpointConnection

denies a private endpoint connection.

Syntax

Deny-AzPrivateEndpointConnection
    -ResourceId <String>
    [-Description <String>]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]
Deny-AzPrivateEndpointConnection
    -Name <String>
    -ServiceName <String>
    -ResourceGroupName <String>[-PrivateLinkResourceType <string>]
    [-Description <String>][-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

The Deny-AzPrivateEndpointConnection cmdlet denies a private endpoint connection.

Examples

Example 1

Deny-AzPrivateEndpointConnection -Name TestPrivateEndpointConnection -ResourceGroupName TestResourceGroup -ServiceName TestPrivateLinkService

This example denies a private endpoint connection.

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
-Description

The reason of action.

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

The resource name.

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

The private link resource type.

Type:String
Position:Named
Default value:'Microsoft.Network/privateLinkServices'
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

The resource group name.

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

The Azure resource manager id of the private endpoint connection.

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

The name of service that private endpoint connection belong to.

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

Inputs

String

Outputs

Microsoft.Azure.Commands.Network.Models.PSPrivateLinkService