Azure CLI - 删除订阅?

Azure CLI - delete subscription?

我正在寻找一种以编程方式删除 Azure 订阅的方法。我主要对 Azure CLI 感兴趣,但我找不到正确的方法。

顺便说一句,PowerShell 命令提供了完全需要的操作。 Remove-AzureSubscription

无法删除订阅。链接的 cmdlet 与您认为的不同:

The Remove-AzureSubscription cmdlet deletes an Azure subscription from your subscription data file so Windows PowerShell can't find it. This cmdlet does not delete the subscription from Microsoft Azure, or change the actual subscription in any way.

只有 Azure 支持人员可以帮助您,尽管就我而言,他们说无法删除订阅。

REST 中的新功能 API 已作为预览版:

取消订阅的操作

https://docs.microsoft.com/en-us/rest/api/resources/subscriptions%20(preview)/cancel