Azure / Azure/azure-powershell

Get-AzPrivateEndpointConnection: missing support for Azure Data Explorer (Microsoft.Kusto/clusters)

Open
#27,883 2 comments 0 reactions 0 assignees View on GitHub
Azure Data Explorer customer-reported feature-request Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Description

The Az.Network cmdlet `Get-AzPrivateEndpointConnection` returns the following error message when passing a `PrivateLinkResourceId` which points to an Azure Data Explorer resource (`Microsoft.Kusto/clusters`):

```pwsh
PS /home/jtrivett> Get-AzPrivateEndpointConnection -PrivateLinkResourceId '/subscriptions//resourceGroups//providers/Microsoft.Kusto/clusters/'

Get-AzPrivateEndpointConnection: Microsoft.Kusto/clusters doesn't support private endpoint connection.
```

Azure Data Explorer [supports Private Endpoint](https://learn.microsoft.com/en-us/azure/data-explorer/security-network-private-endpoint) and has for at least a year.

### Issue script & Debug output

```PowerShell
DEBUG: 02:10:17 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 02:10:17 - GetAzurePrivateEndpointConnection begin processing with ParameterSet 'ByPrivateLinkResourceId'.
DEBUG: 02:10:17 - using account id ''...
DEBUG: 02:10:17 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [Az.Network], Cmdlet = [Get-AzPrivateEndpointConnection]. Returning default value [True].
DEBUG: 02:10:17 - [ConfigManager] Got nothing from [EnableErrorRecordsPersistence], Module = [Az.Network], Cmdlet = [Get-AzPrivateEndpointConnection]. Returning default value [False].
Get-AzPrivateEndpointConnection: Microsoft.Kusto/clusters doesn't support private endpoint connection.
DEBUG: 02:10:17 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [Az.Network], Cmdlet = [Get-AzPrivateEndpointConnection]. Returning default value [True].
DEBUG: 02:10:17 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 02:10:17 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 02:10:17 - No authentication telemetry is found for the current cmdlet with Id 148d8145-1a5c-4a9d-9de7-ae57ee469f36.
DEBUG: AzureQoSEvent: Module: Az.Network:7.16.2; CommandName: Get-AzPrivateEndpointConnection; PSVersion: 7.4.4; IsSuccess: False; Duration: 00:00:00.0112049; SanitizeDuration: 00:00:00; Exception: Microsoft.Kusto/clusters doesn't support private endpoint connection.;
DEBUG: 02:10:17 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 02:10:17 - GetAzurePrivateEndpointConnection end processing.
```

### Environment data

```PowerShell
Name Value
---- -----
PSVersion 7.4.4
PSEdition Core
GitCommitId 7.4.4
OS Ubuntu 22.04.4 LTS
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
```

### Module versions

```PowerShell
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 5.0.1 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzConte…
Script 7.16.2 Az.Network {Add-AzApplicationGatewayAuthenticationCertificat…
```

### Error output

```PowerShell
DEBUG: 02:15:46 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 02:15:46 - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'.
DEBUG: 02:15:46 - using account id ''...
DEBUG: 02:15:46 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [Az.Accounts], Cmdlet = [Resolve-AzError]. Returning default value [True].
DEBUG: 02:15:46 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].

HistoryId: 3

Message : Microsoft.Kusto/clusters doesn't support private endpoint connection.
StackTrace : at Microsoft.Azure.Commands.Network.PrivateEndpointConnectionBaseCmdlet.BuildProvider(String subscr
iption, String privateLinkResourceType)
at Microsoft.Azure.Commands.Network.GetAzurePrivateEndpointConnection.Execute()
at Microsoft.Azure.Commands.Network.NetworkBaseCmdlet.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.<>c__3`1.b__3_0(T c)
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T]
(T cmdlet, Action`1 executor)
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T]
(T cmdlet)
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : Microsoft.Azure.Commands.Common.Exceptions.AzPSApplicationException
InvocationInfo : {Get-AzPrivateEndpointConnection}
Line : Get-AzPrivateEndpointConnection -PrivateLinkResourceId '/subscriptions//resourceGroups
//providers/Microsoft.Kusto/clusters/'
Position : At line:1 char:1
+ Get-AzPrivateEndpointConnection -PrivateLinkResourceId '/subscription …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 3

DEBUG: 02:15:46 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].

HistoryId: 1

Message : Microsoft.Kusto/clusters doesn't support private endpoint connection.
StackTrace : at Microsoft.Azure.Commands.Network.PrivateEndpointConnectionBaseCmdlet.BuildProvider(String subscr
iption, String privateLinkResourceType)
at Microsoft.Azure.Commands.Network.GetAzurePrivateEndpointConnection.Execute()
at Microsoft.Azure.Commands.Network.NetworkBaseCmdlet.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.<>c__3`1.b__3_0(T c)
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T]
(T cmdlet, Action`1 executor)
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T]
(T cmdlet)
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : Microsoft.Azure.Commands.Common.Exceptions.AzPSApplicationException
InvocationInfo : {Get-AzPrivateEndpointConnection}
Line : Get-AzPrivateEndpointConnection -PrivateLinkResourceId '/subscriptions//resourceGroups
//providers/Microsoft.Kusto/clusters/'
Position : At line:1 char:1
+ Get-AzPrivateEndpointConnection -PrivateLinkResourceId '/subscription …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 1

DEBUG: 02:15:46 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 02:15:46 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 02:15:46 - [ConfigManager] Got nothing from [DisplaySurveyMessage], Module = [Az.Accounts], Cmdlet = [Resolve-AzError]. Returning default value [True].

[Survey] Tell us what you think of Azure PowerShell. This survey should take about 2 minutes. Run 'Open-AzSurveyLink' to open in browser. Learn more at https://go.microsoft.com/fwlink/?linkid=2202892
DEBUG: 02:15:46 - No authentication telemetry is found for the current cmdlet with Id 84fc9c0f-ef2d-4b35-b5af-3f70262ab768.
DEBUG: AzureQoSEvent: Module: Az.Accounts:5.0.1; CommandName: Resolve-AzError; PSVersion: 7.4.4; IsSuccess: True; Duration: 00:00:00.0152165; SanitizeDuration: 00:00:00.0009524
DEBUG: 02:15:46 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 02:15:46 - ResolveError end processing.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.