Last Updated on August 3, 2025 by Arnav Sharma
Cancelling an Azure subscription can be done in several ways, depending on your requirements and your access level. Here are different methods you can use to cancel your Azure subscription:
1. Azure Portal:
- Step 1: Sign in to the Azure Portal.
- Step 2: Navigate to “Cost Management + Billing”.
- Step 3: Select “Subscriptions” from the left-hand menu.
- Step 4: Choose the subscription you want to cancel.
- Step 5: Click on “Cancel subscription”.
- Step 6: Follow the prompts to confirm the cancellation.
2. Azure CLI:
- Step 1: Open your command-line interface (CLI).
- Step 2: Log in to Azure using
az login. - Step 3: Use the following command to list your subscriptions:bashCopy code
az account list --output table - Step 4: Set the subscription you want to cancel as your current subscription:bashCopy code
az account set --subscription "SUBSCRIPTION_ID" - Step 5: Cancel the subscription:bashCopy code
az account delete --subscription "SUBSCRIPTION_ID"
3. Azure PowerShell:
- Step 1: Open your PowerShell environment.
- Step 2: Log in to Azure:powershellCopy code
Connect-AzAccount - Step 3: Select the subscription you want to cancel:powershellCopy code
Select-AzSubscription -SubscriptionId "SUBSCRIPTION_ID" - Step 4: Cancel the subscription:powershellCopy code
Stop-AzSubscription -SubscriptionId "SUBSCRIPTION_ID"
4. Azure REST API:
- Step 1: Use the Azure REST API to cancel the subscription.
- Step 2: Send a DELETE request to the following endpoint:arduinoCopy code
DELETE https://management.azure.com/subscriptions/{subscriptionId}?api-version=2021-01-01 - Step 3: Replace
{subscriptionId}with the ID of the subscription you want to cancel.
5. Azure Support Ticket:
- Step 1: Open a support ticket if you need assistance or have a complex scenario.
- Step 2: Go to the Azure Portal and navigate to “Help + support”.
- Step 3: Create a new support request and specify your request to cancel the subscription.
6. Via Billing Account Manager:
- Step 1: Contact your Azure billing account manager if you have one.
- Step 2: They can assist you with cancelling the subscription, especially if it is associated with a complex billing structure or enterprise agreement.
I help organisations secure their cloud infrastructure and stay ahead of evolving cyber threats. Microsoft MVP and Certified Trainer, author of Mastering Azure Security, and founder of arnav.au — a platform for practical Cloud, Cybersecurity, DevOps and AI content.
Frequently Asked Questions
The easiest way is through the Azure Portal. Simply sign in, navigate to Cost Management + Billing, select Subscriptions, choose the subscription you want to cancel, click on Cancel subscription, and follow the prompts to confirm. This method requires minimal technical knowledge and can be completed in just a few steps.
Yes, you can cancel your Azure subscription using both Azure CLI and Azure PowerShell. With Azure CLI, use the `az account delete` command, and with Azure PowerShell, use the `Stop-AzSubscription` command. Both methods require you to log in first and specify the subscription ID you want to cancel.
If you have a complex billing structure or enterprise agreement, you should contact your Azure billing account manager or open a support ticket through Azure Portal's Help + support section. These methods are designed to handle complicated scenarios where standard cancellation methods may not be appropriate.
You can cancel your Azure subscription programmatically using the Azure REST API by sending a DELETE request to the endpoint: `DELETE https://management.azure.com/subscriptions/{subscriptionId}?api-version=2021-01-01`. Replace {subscriptionId} with your actual subscription ID to complete the cancellation.
There are six main methods to cancel an Azure subscription: Azure Portal, Azure CLI, Azure PowerShell, Azure REST API, Azure Support Ticket, and contacting your Billing Account Manager. Choose the method that best fits your technical expertise and specific requirements.