Cannot delete subnet delegated to Microsoft.PowerPlatform/vnetaccesslinks

Ian Coetzer 86 Reputation points
2023-05-24T15:00:57.9+00:00

Hi

I am trying to delete a virtual network.

however, there is one subnet that is delegated to " Microsoft.PowerPlatform/vnetaccesslinks" which I cannot undelegate.

How do I delete the virtual network if the subnet cannot be undelegated?

I also tried via CLI:

az network vnet subnet update --resource-group xxx --name dhpowerbisubnet --vnet-name xxx --remove delegations

And received the same error message:

(SubnetMissingRequiredDelegation) Subnet /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Network/virtualNetworks/xxx/subnets/dhpowerbisubnet requires any of the following delegation(s) [Microsoft.PowerPlatform/vnetaccesslinks] to reference service association link /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Network/virtualNetworks/xxx/subnets/dhpowerbisubnet/serviceAssociationLinks/PowerPlatformSAL.

Code: SubnetMissingRequiredDelegation

Message: Subnet /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Network/virtualNetworks/xxx/subnets/dhpowerbisubnet requires any of the following delegation(s) [Microsoft.PowerPlatform/vnetaccesslinks] to reference service association link /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Network/virtualNetworks/xxx/subnets/dhpowerbisubnet/serviceAssociationLinks/PowerPlatformSAL.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 27,506 Reputation points Microsoft Employee Moderator
    2023-05-24T16:12:25.91+00:00

    @Ian Coetzer

    Thank you for posting a detailed question here.

    Based on the error above I think the deletion blocked in backend and a support request will be required here to remove the subnet delegation and to delete the Virtual Network.
    If you have a support plan you may file a support ticket, else could you please send an email to xxxxxxx@microsoft.com with the below details so that I can enable a one-time free support ticket for you in this case.

    Subject : Attn Chaitanya

    Thread URL: Link to this thread.

    Subscription ID

    Please let me know once you have done the same.

    EDIT:

    Another likely cause of this issue might be "When you remove the last gateway associated to a gateway/subnet, it might take up to 48-72 hours before you can delete the subnet or VNet." This is documented here
    User's image


    ​​Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


1 additional answer

Sort by: Most helpful
  1. Jeremy White 0 Reputation points
    2024-01-08T14:46:43.2966667+00:00

    I'm having the same issue when trying to delete a tenant that we no longer use. I tried to email the address shown in the solution but get a bounce. Can anyone offer any other solutions?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.