Cancel Azure Subscription ========================= Cancels an azure subscription connected to an azure plan. Prerequisites ^^^^^^^^^^^^^ - This is only for accounts that have transfered over to Azure Plan. If Azure plan is not used for account, then look at suspend subscription documentation instead: :doc:`/scenarios/subscription-update` (For non azure plan subscriptions) - Find a customer tenant that is connected to Azure Plan :doc:`/scenarios/customertenants-get` - Find your azure plan id *GET https://api.crayon.com/api/v1/customertenants/{customerTenantId}/azureplan/* - You need to have signed the Microsoft Customer Agreement. :doc:`/scenarios/customertenantagreement-create` Limits ^^^^^^ - It can take a few seconds for the azure subscription to transition to cancelled after request. Request ^^^^^^^ Request Syntax: +---------+--------------------------------------------------------------------------------------------+ | Method | Request URI | +=========+============================================================================================+ | POST | *https://api.crayon.com/api/v1/azureplans/{azurePlanId}/azuresubscriptions/{id}/cancel/* | +---------+--------------------------------------------------------------------------------------------+ Request Example: :: POST $"https://api.crayon.com/api/v1/azureplans/{azurePlanId:int}/azuresubscriptions/{id:int}/cancel/" Accept: application/json Content-Type: application/json Authorization: Bearer < Token > Request Body: Empty Response ^^^^^^^^ If successful, this method returns the Microsoft azure subscription id in the response body. Response Body: .. literalinclude:: /resources/_static/AzureSubscriptionUpdated.json :language: json