Unable to delete the DDoS protection plan

Prem Kulkarni 0 Reputation points
2025-03-04T15:27:55.9633333+00:00

I am using MSDN subscription and I created DDOS protection plan on a vnet, after my demo, I deleted the resouce group but the ddos plan is stuck and not getting deleted.

How can I get rid of it as it is charging a lot ? The subscription is in disabled state and all other resources are already deleted

Azure DDos Protection
Azure DDos Protection
An Azure service that provides defense against distributed denial-of-service (DDoS) attacks.
76 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rohith Vinnakota 3,000 Reputation points Microsoft External Staff
    2025-03-04T20:53:27.5466667+00:00

    Hi @Prem Kulkarni

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    Firstly, you have to enable the subscription
    Refer this document how to reactive the subscription:
    https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/subscription-disabled#the-subscription-was-canceled

    If there is no reactive option in the subscription you have to raise the Azure Billing support.

    1. Go to Azure Cost Management Overview Page in Azure Portal.
    2. Click on Help and then New Support Request
    3. Fill out the required details (Issue Type should be Billing)

    After the subscription is enabled, please follow these steps:

    DDoS protection plans cannot be deleted if they are associated with a virtual network. So the first step is to disassociate both objects. Although the VNET is deleted, I think it is still worth a try and see if you can still try to diss-associate the DDOS plan from the Virtual Network using Azure CLI as shown here and see if that helps in deletion.

    # Gets the most updated version of the virtual network 
    $vnet = Get-AzVirtualNetwork -Name MyVnet -ResourceGroupName MyResourceGroup $vnet.DdosProtectionPlan = $null 
    $vnet.EnableDdosProtection = $false 
    $vnet | Set-AzVirtualNetwork
    
    
    

    Follow this command if it is DDOS IP Protection plan.

    If not tried already another approach you can take here is to try and remove the DDOS plan using PowerShell Command shown here.

    Remove-AzDdosProtectionPlan -ResourceGroupName ResourceGroupName -Name DdosProtectionPlan
    

    If you are still unable to delete the DDOS plan, I think a support ticket will be required in this case as a support engineer can involve backend team to help resolve this issue.

    Kindly let us know if the above helps or you need further assistance on this issue.


    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    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.