Get-AzPrivateEndpointConnection: Microsoft.Sql/managedInstances doesn't support private endpoint connection. #27081
Labels
customer-reported
feature-request
This issue requires a new behavior in the product in order be resolved.
Service Attention
This issue is responsible by Azure service team.
SQL
Tracking
We will track status and follow internally
Description
Hi,
I'm trying to retrieve the list of private endpoints that belongs to an Azure SQL Managed Instance.
To achieve that, I'm using the cmdlet
Get-AzPrivateEndpointConnection
:Get-AzPrivateEndpointConnection -PrivateLinkResourceId '/subscriptions/MySubscription/resourceGroups/MyResourceGroup/providers/Microsoft.Sql/managedInstances/MyManagedInstance'
The cmdlet is returning an error:
Get-AzPrivateEndpointConnection: Microsoft.Sql/managedInstances doesn't support private endpoint connection.
However, SQL MI supports Private endpoint since early 2023.
Also, the list of private endpoints that belongs to an Azure SQL Managed Instance is retrievable through the REST API.
So there is probably an update needed to the cmdlet
Get-AzPrivateEndpointConnection
to add the support of SQL Managed Instance.In the mean time, I'll use the REST API to cover my use case.
Thank you for your support and feedback.
Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: