Azure CLI - 删除订阅? [英] Azure CLI - delete subscription?

查看:40
本文介绍了Azure CLI - 删除订阅?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am looking for a way to delete Azure subscription programmatically. I'm mainly interested in Azure CLI but i can not find the way to do that in proper way.

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

By the way there is PowerShell Command which provide exactly needed action. Remove-AzureSubscription

推荐答案

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

there is no way to delete a subscription. the linked cmdlet doesn't do what you think it does:

Remove-AzureSubscription cmdlet 从订阅数据文件中删除 Azure 订阅,因此 Windows PowerShell 找不到它.此 cmdlet 不会从 Microsoft Azure 中删除订阅,也不会以任何方式更改实际订阅.

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 支持可以帮助您,尽管就我而言,他们说无法删除订阅.

only Azure Support might be able to help you, although in my case they said its impossible to delete subscriptions.

这篇关于Azure CLI - 删除订阅?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆