This article explains how to work with existing resource management private links. It shows API operations for getting and deleting existing resources.
# Login first with az login if not using Cloud Shellaz resourcemanagement private-link show --resource-group PrivateLinkTestRG --name NewRMPL
Example
Azure PowerShell
# Login first with Connect-AzAccount if not using Cloud ShellGet-AzResourceManagementPrivateLink -ResourceGroupName PrivateLinkTestRG -Name NewRMPL
REST call
HTTP
GET https://management.azure.com/subscriptions/{subscriptionID}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/resourceManagementPrivateLinks/{rmplName}?api-version=2020-05-01
# Login first with az login if not using Cloud Shellaz resourcemanagement private-link list
Azure PowerShell
# Login first with Connect-AzAccount if not using Cloud ShellGet-AzResourceManagementPrivateLink
REST call
HTTP
GET
https://management.azure.com/subscriptions/{subscriptionID}/providers/Microsoft.Authorization/resourceManagementPrivateLinks?api-version=2020-05-01
# Login first with az login if not using Cloud Shellaz private-link association show --management-group-id fc096d27-0434-4460-a3ea-110df0422a2d --name1d7942d1-288b-48de-8d0f-2d2aa8e03ad4
Example
Azure PowerShell
# Login first with Connect-AzAccount if not using Cloud ShellGet-AzPrivateLinkAssociation -ManagementGroupId fc096d27-0434-4460-a3ea-110df0422a2d -Name1d7942d1-288b-48de-8d0f-2d2aa8e03ad4 | fl
REST call
HTTP
GET
https://management.azure.com/providers/Microsoft.Management/managementGroups/{managementGroupID}/providers/Microsoft.Authorization/privateLinkAssociations?api-version=2020-05-01
# Login first with az login if not using Cloud Shellaz private-link association delete --management-group-id24f15700-370c-45bc-86a7-aee1b0c4eb8a --name1d7942d1-288b-48de-8d0f-2d2aa8e03ad4
Example
Azure PowerShell
# Login first with Connect-AzAccount if not using Cloud ShellRemove-AzPrivateLinkAssociation -ManagementGroupId24f15700-370c-45bc-86a7-aee1b0c4eb8a -Name1d7942d1-288b-48de-8d0f-2d2aa8e03ad4