【问题标题】:remove azure storage account with powershell使用 powershell 删除 azure 存储帐户
【发布时间】:2017-06-20 04:12:02
【问题描述】:

我正在寻找一种使用 powershell 删除 azure 存储帐户的方法。

有powershell命令可以删除blob、container、table、queue、filed、目录。但我没有看到任何使用 powershell 删除/删除 azure 存储帐户的方法。

通过portal我可以做到,但需要通过powershell做到。

有人知道怎么做吗?

【问题讨论】:

    标签: powershell azure azure-storage powershell-4.0 azure-powershell


    【解决方案1】:

    您是否尝试过Remove-AzureRmStorageAccountRemove-AzureStorageAccount,具体取决于您使用的部署模型?

    要找到那些你可以随时使用Get-Command remove-azure*storage*

    【讨论】:

    • 此外,通用的 Remove-AzureRmResource cmdlet 适用于任何资源,因为有些资源没有明确的删除命令。
    【解决方案2】:

    这篇文章可能对你有所帮助 -> scroll down to- To remove the whole storage account

    这是powershell命令-

    Remove-AzureRmResourceGroup -Name resourceGrouptest
    

    其中 resourceGrouptest 是资源组的名称。 您还需要先使用 -

    登录您的帐户
    Login-AzureRmAccount
    

    【讨论】:

      猜你喜欢
      • 2021-09-21
      • 2020-01-13
      • 2016-07-30
      • 1970-01-01
      • 1970-01-01
      • 2017-06-28
      • 1970-01-01
      • 2023-03-23
      • 2021-05-12
      相关资源
      最近更新 更多