Share via

Azure subscription is deactivated due to spending limit and ddos protection

Anonymous
2025-04-29T10:12:16.2233333+00:00

Hello, I am having an issue with my Microsoft Azure subscription. It says I have past my spending limit (which may have been done by leaving my ddos protection plan running.

I am trying to delete my ddos and reactivate my subscription but I cannot as it is connected to my Virtual Network and is running so it will not be deleted. I require my subscription to be activated for a university assignment. Thank you.

Azure DDos Protection
Azure DDos Protection

An Azure service that provides defense against distributed denial-of-service (DDoS) attacks.


Answer accepted by question author
  1. Anonymous
    2025-05-02T11:45:16.3466667+00:00

    Hi@SAM POPLE

    Kindly check your invoice and confirm when your subscription was disabled. Also, check whether the charges are calculated only up to the date the subscription was disabled or if they are still being calculated after the subscription was disabled.

    User's image

    Even if charges are still being applied after the subscription is disabled, open a support request by navigating to the Subscription Overview ,You can follow the MS DOC for more details

    If your subscription is disabled, you won't be able to deactivate or delete the DDoS protection plan. Please reactivate your subscription by following the Msdoc, and then proceed to remove the DDoS protection plan associated with the virtual network using the below script.

    $vnet = Get-AzVirtualNetwork -Name <Vnet-Name>-ResourceGroupName <RG-Name>
    $vnet.DdosProtectionPlan = $null 
    $vnet.EnableDdosProtection = $false 
    $vnet | Set-AzVirtualNetwork
    

    Reference: Remove a DDoS protection plan associated with a virtual network
    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    I really appreciate your feedback. It’s valuable to us. Please click Accept Answer on this post to assist other community members facing similar issues in finding the correct solution.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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