azureazure-powershellazure-front-doorazure-private-link

How to disconnect private link from Azure Front Door Origin via Powershell


We have deployed an Azure front door premium instance connecting to an App Service instance over private endpoints using Az powershell, namely New-AzFrontDoorCdnOrigin then approving with Approve-AzPrivateEndpointConnection.
This all works fine.

However, how can this link be removed via preferably Az powershell?

It is as simple as unchecking the "Enable private link service" in the portal, but the Az powershell documentation is unclear to me here.

Things I've tried:

Current workaround is


Solution

  • I know the question is about Az Powershell however if you have stumbled upon this don't waste your time :). The only way I was able to resolve the this was with az cli and the use of az afd origin create and az afd origin update.

    see https://learn.microsoft.com/en-us/cli/azure/afd/origin?view=azure-cli-latest#az-afd-origin-create

    and https://learn.microsoft.com/en-us/cli/azure/afd/origin?view=azure-cli-latest#az-afd-origin-update