Unable to approve a private-endpoint-connection using az network private-endpoint-connection approve Error: 'child_name_1'

See original GitHub issue

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug Unable to approve a private-endpoint-connection using az network private-endpoint-connection approve --id <ID> --description ‘Approved’ it always throw an Error: ‘child_name_1’.

To Reproduce az network private-endpoint-connection approve --id ‘/subscriptions/<subID>/resourceGroups/<RGName>/providers/Microsoft.Network/privateEndpoints/<PEName>’ --description ‘Approved’

Expected behavior To get a Private Endpoint approved in a private link service.

Environment summary Ubuntu 20.04

azure-cli 2.29.0 core 2.29.0 telemetry 1.0.6 Extensions: connectedk8s 1.2.0 Python location ‘/opt/az/bin/python3’ Extensions directory ‘/home/victor/.azure/cliextensions’ Python (Linux) 3.6.10 (default, Oct 8 2021, 09:26:39) [GCC 7.5.0]

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
necusjzcommented, Apr 7, 2022

@Welasco, the thing is current CLI doesn’t support “Microsoft.Network/privateLinkServices” provider, we will support it in the next release.

0reactions
Welascocommented, Apr 7, 2022

@kairu-ms, I tested it today one more time and still the same problem. I’m trying to approve a AFD Premium PE in a PLS.

I tried using both options:

az network private-endpoint-connection approve -g <RGName> -n 8d50911c-b405-4c81-xxxx-xxxxxxxxxxxx-xxxx-xxxx-xxxx-8025eeb83973 --resource-name <Name>-pls --type Microsoft.Network/privateLinkServices

az network private-endpoint-connection approve
–description ‘Approved’
–id “/subscriptions/xxxxxxxxxxx/resourceGroups/xxxxxxxxx/providers/Microsoft.Network/privateLinkServices/aro-pls/privateEndpointConnections/a845698e-704b-4842-ac80-xxxxxxxxxxxx”

In both cases I have this error message:

az network private-endpoint-connection approve: ‘Microsoft.Network/privateLinkServices’ is not a valid value for ‘–type’. Allowed values: Microsoft.Batch/batchAccounts, Microsoft.Automation/automationAccounts, Microsoft.Authorization/resourceManagementPrivateLinks, Microsoft.AppConfiguration/configurationStores, Microsoft.BotService/botServices, Microsoft.Cache/Redis, Microsoft.CognitiveServices/accounts, Microsoft.Compute/diskAccesses, Microsoft.ContainerRegistry/registries, Microsoft.DBforMySQL/servers, Microsoft.DBforMariaDB/servers, Microsoft.DBforPostgreSQL/servers, Microsoft.Devices/IotHubs, Microsoft.DocumentDB/databaseAccounts, Microsoft.DigitalTwins/digitalTwinsInstances, Microsoft.EventGrid/topics, Microsoft.EventGrid/domains, Microsoft.EventHub/namespaces, Microsoft.HDInsight/clusters, Microsoft.HybridCompute/privateLinkScopes, Microsoft.HealthcareApis/services, microsoft.insights/privateLinkScopes, Microsoft.KeyVault/managedHSMs, Microsoft.Keyvault/vaults, Microsoft.MachineLearningServices/workspaces, Microsoft.Media/mediaservices, Microsoft.Network/applicationGateways, Microsoft.Purview/accounts, Microsoft.PowerBI/privateLinkServicesForPowerBI, Microsoft.Search/searchServices, Microsoft.ServiceBus/namespaces, Microsoft.SignalRService/signalr, Microsoft.Sql/servers, Microsoft.Storage/storageAccounts, Microsoft.StorageSync/storageSyncServices, Microsoft.Synapse/workspaces, Microsoft.Web/sites, Microsoft.Web/hostingEnvironments, Microsoft.SignalRService/WebPubSub, Microsoft.DataFactory/factories, Microsoft.Databricks/workspaces, Microsoft.RecoveryServices/vaults.

The required type privateLinkServices is part of the cmd allowed values.

I was able to make it work with PowerShell: Get-AzPrivateEndpointConnection -Name a845698e-xxxxxx -ResourceGroupName xxxxx-aro-rg -ServiceName xxxx-pls Approve-AzPrivateEndpointConnection -Name a845698e-xxxxxxxxx -ResourceGroupName xxxxxx -ServiceName xxx-pls

Read more comments on GitHub >

github_iconTop Results From Across the Web

az network private-endpoint-connection list fails for ... - GitHub
Hi,. I'm encoutering the same problem trying to approve a private endpoint connection into a private link service. I try to associate and ......
Read more >
Approve-AzPrivateEndpointConnection (Az.Network)
This example approves a private endpoint connection. Parameters. -DefaultProfile. The credentials, account, tenant, and subscription used for communication with ...
Read more >
Approving a private endpoint connection with Azure CLI
Automation is possible via a REST API but it is easier via Azure CLI. To do so, first list the private endpoint connections...
Read more >
How to use Terraform to approve a Managed Private Endpoint ...
To do it manually I need to go to the Storage account -> Networks -> Private Endpoints, selected the ones to be "Approved"...
Read more >
Creating an Azure Private Endpoint Connection ... - YouTube
In this video, we are creating an Azure Private Endpoint connection with Azure Storage Account. We begin by discussing the scenario that we ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found