How to correctly delete a storage account only used for logs

Hector Caicedo 26 Reputation points
2021-11-24T00:46:46.663+00:00

In the previous administration of my company they decided to configure 2 storage accounts in the azure portal

1 account to store the .vhds of the virtual machines and more
1 account for everything related to azure logs

I want to delete the storage account related to the logs since it has a history of many years and they are not necessary at this time, all in addition to having a high consumption in my billing.

Please please, could someone help me to find the right way to do it.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,360 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
661 questions
{count} votes

Accepted answer
  1. Sumarigo-MSFT 47,476 Reputation points Microsoft Employee
    2021-11-26T06:13:19.3+00:00

    @Hector Caicedo Adding more information to the above response! You can also check the capacity, usage, Metrics Classic( Total request Incoming and outgoing in last days or hours) this shows the activity of the Storage account. Based on that you can decided which storage account you need to delete.

    152768-image.png

    Calculate the size/capacity of storage account and it services

    Check space used in azure storage accounts in my subscription

    Storage insights provides comprehensive monitoring of your Azure Storage accounts by delivering a unified view of your Azure Storage services performance, capacity, and availability. You can observe storage capacity, and performance in two ways, view directly from a storage account or view from Azure Monitor to see across groups of storage accounts: https://learn.microsoft.com/en-us/azure/storage/common/storage-insights-overview

    Additional information: After deleting the storage account there are few option to recover the delete Storage account, please refer to the below mentioned suggestions.

    A deleted storage account may be recovered in some cases from within the Azure portal. To recover a storage account, the following conditions must be true:https://learn.microsoft.com/en-us/azure/storage/common/storage-account-recover

    Enable and manage soft delete for containers : Container soft delete protects your data from being accidentally or erroneously modified or deleted. When container soft delete is enabled for a storage account, a container and its contents may be recovered after it has been deleted, within a retention period that you specify. For more details about container soft delete, see Soft delete for containers.

    Please let us know if you have any further queries. I’m happy to assist you further.

    ----------

    Please do not forget to 152699-image.png and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 14,981 Reputation points MVP
    2021-11-24T02:42:12.033+00:00

    Hi @Hector Caicedo

    Follow the below steps.

    1. To delete your storage account, you need to delete the container which has an active disk artifact from the repository.
    2. Blob soft delete is disabled by default for a new storage account. You can enable or disable soft delete for a storage account at any time by using the Azure portal, PowerShell, or Azure CLI.
    3. Delete a blob container
      Open Storage Explorer.
      In the left pane, expand the storage account containing the blob container you wish to view.
      Expand the storage account’s Blob Containers.
      Right-click the blob container you wish to delete, and – from the context menu – select Delete.
      Select Yes to the confirmation dialog.

    refer-
    Easily delete all files in an Azure Storage container

    If the Answer is helpful, please click Accept Answer and up-vote, so that it can help others in the community looking for help on similar topics.

    0 comments No comments

  2. Hector Caicedo 26 Reputation points
    2021-11-26T17:28:35.62+00:00

    @Sumarigo-MSFT

    Thank you very much for your answer, the information you put here was very helpful, in fact I was able to observe my storage in detail and proceed to delete it.

    I am very grateful for the important and effective information that you gave me, I will proceed to mark the case as closed.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.