简体   繁体   中英

remove azure storage account with powershell

I was looking a way to delete azure storage account using powershell.

There are powershell command to remove blob,container,table,queue, filed, directory. But I don't see any way to remove/delete azure storage account using powershell.

Through portal I can do it, but need to do it through powershell.

Anyone knows how to do this ?

Have you tried Remove-AzureRmStorageAccount or Remove-AzureStorageAccount depending on the deployment model you are using?

To find those you can always use Get-Command remove-azure*storage*

This article may help you -> scroll down to- To remove the whole storage account

This is the powershell command-

Remove-AzureRmResourceGroup -Name resourceGrouptest

where resourceGrouptest is the name of the resource group. you also need to first login into your account using-

Login-AzureRmAccount

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM