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:
Update subscription (For non azure plan subscriptions)
Find a customer tenant that is connected to Azure Plan
Find your azure plan id
GET https://api.crayon.com/api/v1/customertenants/{customerTenantId}/azureplan/
You need to have signed the Microsoft Customer Agreement.
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:
{
"AzureSubscriptionId": "c7e0f1fb-bfa3-478f-9d0f-b2c687628f76"
}