How to delete Ddos plan for deleted Virtual network

Pravin Bobade 0 Reputation points
2024-02-14T12:16:00.4766667+00:00

Hi, I wish to delete Ddos plan which are associated with my Virtual network but accidentally I have deleted Vnet, Now I am not able to delete Ddos plan as it is associated with my deleted Virtual network.

Azure DDos Protection
Azure DDos Protection
An Azure service that provides defense against distributed denial-of-service (DDoS) attacks.
71 questions
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.
2,576 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jackson Martins 10,566 Reputation points MVP
    2024-02-14T14:48:25.06+00:00

    Hi @Pravin Bobade
    Is this disassociation due to billing? If yes, just remove the DDoS protection plan, you can do this by deleting the plan as with the command below:

    az network ddos-protection delete --name YourDdosPlanName --resource-group YourResourceGroupName
    

    User's image

    Now if you just want to make sure that there is no association in the Vnet you can use the command below

    az network vnet update --name YourVNetName --resource-group YourResourceGroupName --remove ddosProtectionPlan
    

    User's image

    In my case there is nothing left after I deleted the vnet.
    I did it in my laboratory and I had no problems with having something associated ###DDoS Enable ####User's image

    DDoS Plan

    User's image

    Protected Resource

    User's image

    Get in touch if you need more help with this issue. --please don't forget to "[Accept the answer]" if the reply is helpful--


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.